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
230
enable & Disable certain fileds for that row, depending on the DropDown Selection
posted

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(

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

Parents
No Data
Reply Children
No Data