UltraWebGrid - Filter not working for Column with hyperlink

Answered (Not Verified) This post has 0 verified answers | 2 Replies | 1 Follower Thread's RSS feed.

Points 55
Replied On: Mon, Jun 11 2012 1:35 AM Reply

Hi Team,

Version been used : Infragistics35.WebUI.UltraWebGrid.v10.1

1. I am binding the data to UltrawebGrid with one column having hyperlink. i am setting this link dynamically.my problem is filterting is not working for this column.Please suggest.

2. Another issue is, i want ot format the amount through javascript. At the time of binding format is working firn as i have set Format="###,##0.0000". But that column is editable amount. so on chage of amount i.e on onAfterExitEditMode, i want to set the format to the changed amount.

3. Another functionality is like, i am binding the data to the grid with the checkboxes.User will select the checkboxes and will click on some Button, which the complete details of that selected checkboxes should be shown on Modal window.My issue is, I want to pass the selected checkboxes values, which are string with spaces.So i can't pass that many checked values as parameter through javascript. so i am opening the Modal window thoroug code behind after clicming on the Button.But when i close the Modal window, i am loosing the checked boxes status.



  • Post Points: 20

All Replies

Alex E
Points 15,979
Infragistics Employee
Answered (Not Verified) Replied On: Thu, Jun 14 2012 9:06 AM Reply
Suggested by Alex E

Hello Kishore,

Answers to your questions are as follows:

1.      If the hyperlink column is made with Template Column then sorting of this column type is not supported by default and you should implement your own custom sorting - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.1/CLR4.0/html/WebGrid_Overriding_Default_Column_Sort.html

2.      You can refer to the following thread showing how to do this with “setValue” method - http://community.infragistics.com/forums/p/28602/120427.aspx

3.      This depends on the type of checkbox column used - grid column with type “checkbox” (http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.1/CLR4.0/html/Infragistics4.WebUI.UltraWebGrid.v11.1~Infragistics.WebUI.UltraWebGrid.ColumnType.html) or Template Column with checkboxes inserted in it. In the following link one of the possible approaches is shown - http://community.infragistics.com/forums/p/1540/31541.aspx

If you need further clarifications let me know.

  • Post Points: 20
Points 55
Replied On: Wed, Jun 20 2012 8:57 AM Reply




igtbl:UltraGridColumn Key="columnname" BaseColumnName="columnname" IsBound="true" Width="180px" AllowUpdate="No"><Header Caption="Hyperlink Column" /><CellStyle HorizontalAlign="Left" /></igtbl:UltraGridColumn>

in code behind in am assigning the value as

 protected void UltraWebGrid1_InitializeRow(object sender, RowEventArgs e)

        string script = string.Format("openDetails(\"{0}\",\"{1}\");", e.Row.Cells.FromKey("SNO").Value.ToString(), UltraWebGrid1.ClientID);
        e.Row.Cells.FromKey("columnname").Value = string.Format("<a style='text-decoration:underline;color:blue;cursor:hand;' onclick={0}>{1}</a>", script, e.Row.Cells.FromKey("columnname").Value);



  • Post Points: 5
Page 1 of 1 (3 items) | RSS