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
Solved

Opening row templates in Infragistics UltraWebGrid with double click.

Posted on 2004-10-06
6
6,553 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expression Evaluater 3 37
FInd Image Control Gridview 3 21
Finding Events logs for IIS website that restarts 2 14
C# MVC Insert Multiple Row into DB 2 30
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

840 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