Solved

Opening row templates in Infragistics UltraWebGrid with double click.

Posted on 2004-10-06
6
6,521 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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 Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
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.
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now