Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
320
Compare two cell value like compare field validator in ultrawebgrid.
posted

Hello,

I have one issue in ultrawebgrid describe below.

In ultrawebgrid i have two Columns in ultrawebgrid.

Column 1 Type = Dropdownlist

Column 2 Type = Dropdownlist

I need to compare Column 1 value and Column 2 Value in ultrawebgrid.

is there possible to use asp:Compare field validator in ultrawebgird?

if Yes then pls tell me how it is possible?

if Not then please provide any other solution through Javascript.

Thanks in Advance,

Sonu.

 

Parents
  • 28464
    posted

    Hello,

    There is no easy way to do it with built-in functionality of the UltraWebGrid control per se. Most probably you will need to implement a custom validator (documented in MSDN here)

    http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.customvalidator.aspx

    and then use the client-side object model of the grid (CSOM) to get the values of both cells and compare them using the cell .getValue method documented here:

    http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/WebGrid_cell_Object_CSOM.html

Reply Children
No Data