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
225
How tot set value in the dropdown provider of webdatagrid version 11.1
posted

Hi Sir,

I wanted to set dropdown value on client JavaScript event (I am using click event of javascript - webdatagrid) on some condition basis.

so I am using below code but when I set  this I am getting 2 (as value) in the dropdowlist it should display text (like  2 is for 'Include' in my case).

var newSelectedCell = e.get_item().get_row().get_index().toString();

if (sender.get_rows().get_row(newSelectedCell).get_cellByColumnKey("WithInPolicy").get_value() == false)

{

sender.get_rows().get_row(newSelectedCell).get_cellByColumnKey("TransitCoverAdditionalOptionChargeId").set_value(2);

}

Please provide me some steps how I can set the value to the dropdown provider of webdatagrid (Ideally it should not display value it should display text in the dropdown list).

Please note that I am using webdatagrid version 11.1.

Regards,

Mahesh Pol