Afternoon Telerik Team,
I have a need to update telerik radgrid specific columns in a row client side.
I set my events in the item created event as shown below (simplified version) and that works as expected.
I then get the client value also correctly, now I need to update this value...there is not SetDataKeyValue of the item available and I cannot find a method on the object (client side) to achieve this.
Should I perhaps use the DataItem client side that I send when attaching the attributes server side to the object to achieve this, if so, then how ?
Can you please assist in the matter ?
Your help is much appreciated.
function Validate(control, denominator) { |
var firstDataItem = $find("<%=rgCoinBox.ClientID %>").get_masterTableView().get_dataItems()[0]; |
alert(firstDataItem.getDataKeyValue("Heading")); |
} |
protected void rgCoinBox_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) |
{ |
if (e.Item is GridEditableItem) |
{ |
//(e.Item as GridEditableItem).Edit = true; |
switch (e.Item.RowIndex) |
{ |
case 3: |
e.Item.Attributes.Add("onFocusout", "return Validate('" + e.Item.UniqueID + "','1')"); |
break; |
default: |
break; |
} |
} |
} |