?
Solved

Opening row templates in Infragistics UltraWebGrid with double click.

Posted on 2004-10-06
6
Medium Priority
?
6,594 Views
Last Modified: 2008-01-09
Is there a way that the template screen can be opened up on the double click event after user selects a row in the UltraWebGrid? We are facing a problem when we are trying to do multi row select after we select a particular row and try to drag down and select others. The template screen opens up in between and prevents the selection of the other rows.
0
Comment
Question by:sujata_majumder
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 10

Accepted Solution

by:
jnhorst earned 1500 total points
ID: 12241239
You can enter edit mode as follows:

<script language="javascript">
function dblClickHandler(gn, id)
{
      var row = igtbl_getActiveRow(gn);
      row.editRow();
}
</script>

You'll have to make sure your grid is set to allow updates and allow multiple row selection.

John
0
 

Author Comment

by:sujata_majumder
ID: 12241680
Can I somehow disable the opening of the template screen on single click after the row is selected?
0
 
LVL 10

Expert Comment

by:jnhorst
ID: 12242015
How did you configure the grid to do multiple row selections, and how are you actually selecting the rows? (mouse drag? any keyboard keys being pressed?)

When I configured the grid's AllowUpdateDefault to RowTemplateOnly, I had to double click a row to show the template by default, without using the JavaScript call.  Give me your grid settings that allow you to select multiple rows and I will try to replicate your problem.

John
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:sujata_majumder
ID: 12242615
The rows are being selected using mouse drag.

The display layout is as below
UltraWebGrid1.DisplayLayout.AllowUpdateDefault = Infragistics.WebUI.UltraWebGrid.AllowUpdate.Yes;

And the template screen is being configured using

private void UltraWebGrid1_InitializeLayout(object sender, Infragistics.WebUI.UltraWebGrid.LayoutEventArgs e)
{
  e.Layout.Bands[0].RowEditTemplate = new TemplateScreen(ruleSetName);
....
}
0
 
LVL 10

Expert Comment

by:jnhorst
ID: 12242794
What setting enables multiple rows to be selected?  Is it SelectTypeRowDefault in DisplayLayout?  My sample page does not allow it by default.

John
0
 

Author Comment

by:sujata_majumder
ID: 12242830
Yes using
UltraWebGrid1.DisplayLayout.SelectTypeRowDefault = Infragistics.WebUI.UltraWebGrid.SelectType.Extended;
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question