For my internship I have to work with Telerik which is going great since the forums is up to date and I can find many tutorials.
I started to combine tricks etc for the better effect.
For the project I have to do, I have to change the values in a dropdownlist whenever the values of the other dropdownlist is changed.
Not that difficult normally.
However I am trying to do this when both dropdownlists are in the editmode(batch) of a radgrid, which is in a radpanel. I can't figure out how to acces the changeselectedvalue event
Now my question is, is it possible to trigger this event while the dropdownlists is in a Radgrid in editmode batch?
In the first attachment is a part of my code with both the columns selected.
In the second is how my page looks right now (all data from 'Eenheid'). I wanna change the databound of 'Eenheid' whenever I change the value of 'Vector'
I started to combine tricks etc for the better effect.
For the project I have to do, I have to change the values in a dropdownlist whenever the values of the other dropdownlist is changed.
Not that difficult normally.
However I am trying to do this when both dropdownlists are in the editmode(batch) of a radgrid, which is in a radpanel. I can't figure out how to acces the changeselectedvalue event
Now my question is, is it possible to trigger this event while the dropdownlists is in a Radgrid in editmode batch?
In the first attachment is a part of my code with both the columns selected.
In the second is how my page looks right now (all data from 'Eenheid'). I wanna change the databound of 'Eenheid' whenever I change the value of 'Vector'
<
telerik:RadPanelBar
runat
=
"server"
ID
=
"RadPanelBar1"
ExpandMode
=
"MultipleExpandedItems"
Width
=
"80%"
>
<
Items
>
<
telerik:RadPanelItem
Expanded
=
"True"
Text
=
"Verbruik"
runat
=
"server"
Selected
=
"true"
>
<
Items
>
<
telerik:RadPanelItem
Value
=
"Verbruik"
runat
=
"server"
>
<
ItemTemplate
>
<
div
>
<!--radgrid + datasource Verbruik-->
<
div
id
=
"radgridVerbruik"
>
<
telerik:RadAjaxPanel
ID
=
"RadAjaxPanel1"
runat
=
"server"
Width
=
"100%"
>
<
telerik:RadGrid
ID
=
"RadGridVerbruik"
runat
=
"server"
AllowAutomaticDeletes
=
"True"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
AutoGenerateColumns
=
"False"
DataSourceID
=
"SqlDataSourceInstallatieJaarVectorVerbruik"
>
<
MasterTableView
AutoGenerateColumns
=
"False"
DataKeyNames
=
"ID"
DataSourceID
=
"SqlDataSourceInstallatieJaarVectorVerbruik"
EditMode
=
"Batch"
CommandItemDisplay
=
"Top"
CommandItemSettings-ShowSaveChangesButton
=
"false"
CommandItemSettings-AddNewRecordText
=
"Nieuwe vector"
CommandItemSettings-CancelChangesText
=
"Annuleer"
>
<
BatchEditingSettings
EditType
=
"Row"
/>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"ID"
FilterControlAltText
=
"Filter ID column"
HeaderText
=
"ID"
ReadOnly
=
"True"
SortExpression
=
"ID"
UniqueName
=
"ID"
Visible
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
DataField
=
"vectorID"
FilterControlAltText
=
"Filter Vector column"
HeaderText
=
"Vector"
SortExpression
=
"Vector"
UniqueName
=
"vectorID"
>
<
ItemTemplate
>
<%# Eval("Vector") %>
</
ItemTemplate
>
<
EditItemTemplate
>
<
telerik:RadDropDownList
ID
=
"RadDropDownList2"
runat
=
"server"
DataSourceID
=
"SqlDataSourceVectorenVerbruik"
DataTextField
=
"omschrijving"
DataValueField
=
"vectorID"
>
</
telerik:RadDropDownList
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
DataField
=
"eenheidID"
FilterControlAltText
=
"Filter Eenheid column"
HeaderText
=
"Eenheid"
SortExpression
=
"Eenheid"
UniqueName
=
"eenheidID"
>
<
ItemTemplate
>
<%# Eval("Eenheid") %>
</
ItemTemplate
>
<
EditItemTemplate
>
<
telerik:RadDropDownList
ID
=
"RadDropDownList3"
runat
=
"server"
DataSourceID
=
"SqlDataSourceEenheden"
DataTextField
=
"omschrijving"
DataValueField
=
"eenheidID"
>
</
telerik:RadDropDownList
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>