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
215
BLOCKED SCRIPT Changing value in DropDownList in UltraWebGrid according to another ddl value in UltraWebGrid
posted

 

 

 

 

Hi,

I am looking for how to change the value in the "Medical" dropDown inside the UltraWebGrid according to the value selected in the "dep" dropdown using javaScript, i.e. to make the value in Medical reflect the value selected in Dep.

Promp help greatly appreciate by both me and users :)

<

 

igtbl:UltraWebGrid ID="ugrdApplicants" runat="server" Width="325px" OnSortColumn="ugrdApplicants_SortColumn" Height="200px">

<Bands>

 

 

<igtbl:UltraGridBand Key="Applicants" RowSelectors="No" AllowAdd="No" AllowDelete="Yes" AllowUpdate="Yes" AllowColumnMoving="None" AllowSorting="Yes" CellClickAction="Edit" SelectTypeCell="Single" SelectTypeRow ="Single">

<Columns>

<

 

igtbl:UltraGridColumn AllowUpdate="Yes" BaseColumnName="Dep" EditorControlID="" HeaderText="Dep" Key="Dep" Type="DropDownList" Width="50px">

<ValueList>

 

<Style CssClass="comboBox"></Style>

 

<ValueListItems>

 

<igtbl:ValueListItem DataValue="EE" DisplayText="EE" />

 

<igtbl:ValueListItem DataValue="ES" DisplayText="ES" />

 

<igtbl:ValueListItem DataValue="1C" DisplayText="1C" />

 

<igtbl:ValueListItem DataValue="+C" DisplayText="+C" />

 

<igtbl:ValueListItem DataValue="FA" DisplayText="FA" />

 

</ValueListItems>

 

</ValueList>

 

<Header Caption="Dep">

 

<RowLayoutColumnInfo OriginX="6" />

 

</Header>

 

<Footer>

 

<RowLayoutColumnInfo OriginX="6" />

 

</Footer>

 

</igtbl:UltraGridColumn>

 

<igtbl:UltraGridColumn BaseColumnName="Medical" DataType="System.Boolean" HeaderClickAction="Select"

 

HeaderText="Medical" Key="Medical" Type="DropDownList" Width="50px">

 

<ValueList>

 

<Style CssClass="comboBox"></Style>

 

<ValueListItems>

 

<igtbl:ValueListItem DataValue="EE" DisplayText="EE" />

 

<igtbl:ValueListItem DataValue="ES" DisplayText="ES" />

 

<igtbl:ValueListItem DataValue="1C" DisplayText="1C" />

 

<igtbl:ValueListItem DataValue="+C" DisplayText="+C" />

 

<igtbl:ValueListItem DataValue="FA" DisplayText="FA" />

 

<igtbl:ValueListItem DataValue="W" DisplayText="W" />

 

</ValueListItems>

 

</ValueList>

 

<Header Caption="Medical" ClickAction="Select" Title="Medical">

 

<RowLayoutColumnInfo OriginX="11" />

 

</Header>

 

<Footer>

 

<RowLayoutColumnInfo OriginX="11" />

 

</Footer>

 

</igtbl:UltraGridColumn>

 

 

</igtbl:UltraGridBand>

 

</Bands>

 

<DisplayLayout AutoGenerateColumns="False">

 

<EditCellStyleDefault CssClass="comboBox"></EditCellStyleDefault>

 

<ClientSideEvents AfterRowInsertHandler="ugrdApplicants_AfterRowInsertHandler"

 

EditKeyDownHandler="ugrdApplicants_EditKeyDownHandler"

 

AfterSortColumnHandler="ugrdApplicants_AfterSortColumnHandler"

 

AfterCellUpdateHandler="ugrdApplicants_AfterCellUpdateHandler"

 

ClickCellButtonHandler="ugrdApplicants_ClickCellButtonHandler" />

 

</DisplayLayout>

 

</igtbl:UltraWebGrid>