Solved

Opening row templates in Infragistics UltraWebGrid with double click.

Posted on 2004-10-06
6
6,544 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
  • 3
  • 3
6 Comments
 
LVL 10

Accepted Solution

by:
jnhorst earned 500 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

810 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