[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Opening row templates in Infragistics UltraWebGrid with double click.

Posted on 2004-10-06
6
Medium Priority
?
6,605 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
Independent Software Vendors: 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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 …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

649 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