Hello:
I have a WebDataGrid which has a column I've defined as a TemplateDataField. I have an asp:DropDown control placed inside it.
I want to enable & Disable certain fileds for that row, depending on the DropDown Selection made.
Would that be possible. please help me with my syntax.
How would I grab the row id, using JavaScript or JQuery?
<
script type="text/javascript">
function drpChange(sender) {
var
GtinChBtn = document.getElementById('<%= WebDataGrid1.ClientID %>');
alert(
);
}
<ig:WebDataGrid ID="WebDataGrid1" DataKeyFields="RowNumber" runat="server" AutoGenerateColumns="False" AutoCRUD="true" Height="320px" StyleSetPath="~/Styles"StyleSetName="Office2007Silver"><AjaxIndicator Enabled="False" />
<Columns><ig:TemplateDataField Key="Action" Header-Text="Action" Width="60px" ><ItemTemplate>
<asp:DropDownList ID="drpAction" onchange="BLOCKED SCRIPTdrpChange(this);" runat="server"><asp:ListItem Text="Upd" Value="Update"></asp:ListItem><asp:ListItem Text="Del" Value="Delete"></asp:ListItem></asp:DropDownList>
</ItemTemplate><Header Text="Action"></Header></ig:TemplateDataField ><ig:BoundDataField DataFieldName="CustomerName" Key="CustomerName" DataType="System.String" Width="75px"><Header Text="Name" /></ig:BoundDataField><ig:BoundDataField DataFieldName="Address" Key="Address" DataType="System.String" Width="310px"><Header Text="Address" /></ig:BoundDataField></Columns>
Thank you,
Sushma
Hi Sushma,
It has been a while since your post, however in case you still need assistance I would be glad to help.
I suggest you take a look at the following discussion:
http://blogs.infragistics.com/forums/p/50066/263551.aspx
Similarly to the scenario described in the above thread you can cancel the EnteringEditMode event based on the value in your dropdown.
Please let me know if you have any questions.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support