Skip to content

Replies

0
[Infragistics] David Young
[Infragistics] David Young answered on Jul 9, 2012 7:32 PM

Hi Ranganathan,

OnCheckChanged is actually the server checked event.  Why not just define the checkbox as <input type="checkbox" onclick="test()" />?

regards,
David Young 

0
[Infragistics] David Young
[Infragistics] David Young answered on May 11, 2012 2:29 PM

Hi NewbApps,

You could try upgrading to the latest service release for your version to see if that resolves the issue.  Otherwise, we'd need a workbook that reproduces this problem.

regards,
David Young 

0
[Infragistics] David Young
[Infragistics] David Young answered on May 1, 2012 8:13 PM

Hi aschoi,

The objects are not the same on the client and the server.  On the client you should do the following

$util.addCompoundClass(currentRow.get_element(), "hiderow");

instead of 

currentRow.CssClass = "hiderow";

Your line of code just makes a property on the javascript object, but does not actually change the DOM element's className property.

regards,
David Young 

0
[Infragistics] David Young
[Infragistics] David Young answered on Apr 19, 2012 9:33 PM

Hi,

In this case, you may need to call whdg1.GridView.ClearDataSource() before applying the data source.

regards,
David Young 

0
[Infragistics] David Young
[Infragistics] David Young answered on Mar 19, 2012 4:27 PM

Well, if you have not created any columns in your code behind or defined them in the aspx, the Columns collection will be empty.  You'll need to define columns to access them in this way.  Another option would be to access the column (our internally stored one) off a cell of that column.  For example. 
grid.Rows[0].Items[0].Column.

-Dave 

0
[Infragistics] David Young
[Infragistics] David Young answered on Mar 19, 2012 2:46 PM

HI,

If you were only autogenerating columns, you would have gotten a null ref exception or index out of bounds.  The problem is you did not type cast.  The indexer for Columns returns a GridField.  DataFormatString does not exist on this class.  You need to typecast to BoundDataField, UnboundField (if it actually is one) or the super class of both, FormattedGridField.

regards,

David Young

0
[Infragistics] David Young
[Infragistics] David Young answered on Mar 19, 2012 2:32 PM

Hi whanes,

In the WebDataGrid, BoundDataField and UnboundField both have a DataFormatString that can be used to format how data is displayed.  For example:
this.WDG1.Columns[0].DataFormatString= "{0:c}";

Be warned that if you autogenerate columns, those are not available in the Columns collection.

regards,

David Young