<telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" GridLines="None" |
Skin="Forest" AutoGenerateColumns="False" GroupingEnabled="False" ShowStatusBar="True" |
Width="100%" Height="300px" EnableViewState="False"> |
<MasterTableView ClientDataKeyNames="bl_id,fl_id,rm_id" TableLayout="Fixed" EnableViewState="False" |
AllowNaturalSort="True" AllowFilteringByColumn="false"> |
<RowIndicatorColumn> |
<HeaderStyle Width="20px"></HeaderStyle> |
</RowIndicatorColumn> |
<ExpandCollapseColumn> |
<HeaderStyle Width="20px"></HeaderStyle> |
</ExpandCollapseColumn> |
<Columns> |
<telerik:GridBoundColumn AllowFiltering="False" DataField="bl_id" AllowSorting="false" |
HeaderText="Building" ReadOnly="True" ShowFilterIcon="False" UniqueName="bl_id"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn AllowFiltering="False" DataField="fl_id" AllowSorting="false" |
HeaderText="Floor" ReadOnly="True" ShowFilterIcon="False" UniqueName="fl_id"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn AllowFiltering="False" DataField="rm_id" SortExpression="rm_id" |
HeaderText="Room" ReadOnly="True" ShowFilterIcon="False" UniqueName="rm_id"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn AllowFiltering="False" DataField="name" SortExpression="name" |
HeaderText="Name" ReadOnly="True" ShowFilterIcon="False" UniqueName="name"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn AllowFiltering="False" DataField="use" SortExpression="rm_use" |
HeaderText="Use" ReadOnly="True" ShowFilterIcon="False" UniqueName="use"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn AllowFiltering="False" DataField="rmtype" SortExpression="rmtype" |
HeaderText="Type" ReadOnly="True" ShowFilterIcon="False" UniqueName="rmtype"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn AllowFiltering="False" DataField="capacity" SortExpression="capacity" |
HeaderText="Capacity" ReadOnly="True" ShowFilterIcon="False" UniqueName="capacity"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn AllowFiltering="False" DataField="area" SortExpression="rm.area" |
HeaderText="Area" ReadOnly="True" ShowFilterIcon="False" UniqueName="area"> |
</telerik:GridBoundColumn> |
</Columns> |
</MasterTableView> |
<ClientSettings> |
<DataBinding CountPropertyName="" MaximumRowsParameterName="" |
StartRowIndexParameterName="" SelectMethod="GetRoomList" |
Location="services/SjeccdSpaceWebService.asmx" FilterParameterName="filter" |
FilterParameterType="Linq" SortParameterName="sort" SortParameterType="Linq"> |
</DataBinding> |
<Selecting EnableDragToSelectRows="False" AllowRowSelect="True" /> |
<ClientEvents OnCommand="CheckStuff" /> |
<Scrolling AllowScroll="True" UseStaticHeaders="True" EnableVirtualScrollPaging="false" /> |
</ClientSettings> |
</telerik:RadGrid> |
<script id="sample" language="javascript" type="text/javascript"> |
function CheckStuff(sender, args) { |
//cancel the default command to prevent postback/ajax request |
//var sortExpressions = sender.get_masterTableView().get_sortExpressions(); |
if (args.get_commandName() == 'Sort'){ |
args.set_cancel(true); |
//get data and update grid; |
} |
alert(args.get_cancel()); //+ sortExpressions.toString()); |
} |
</script> |
_b2 is
null
addExternalHandler()Script...e6098e2 (line 697)
_b2 =
null
_b3 =
"keydown"
_b4 =
function
()
_registerGlobalBodyEventHandlers()Script...e6098e2 (line 3487)
_PopupController()Script...e6098e2 (line 3456)
createEditorPopupController()Script...e6098e2 (line 3547)
[Break On This Error]
if
(_b2.addEventListener){
<
telerik:RadGrid
runat
=
"server"
ID
=
"rgArtikelSuche"
AllowSorting
=
"false"
AllowFilteringByColumn
=
"false"
AutoGenerateColumns
=
"false"
AllowMultiRowSelection
=
"true"
Visible
=
"false"
OnNeedDataSource
=
"rgArtikelSuche_NeedDataSource"
>
<
ClientSettings
AllowKeyboardNavigation
=
"true"
AllowExpandCollapse
=
"true"
>
<
Selecting
AllowRowSelect
=
"true"
UseClientSelectColumnOnly
=
"true"
/>
</
ClientSettings
>
<
MasterTableView
HierarchyLoadMode
=
"Client"
HierarchyDefaultExpanded
=
"true"
DataKeyNames
=
"Key, GroupKey"
>
<
SelfHierarchySettings
ParentKeyName
=
"Parent"
KeyName
=
"GroupKey"
/>
</
MasterTableView
>
</
telerik:RadGrid
>
I am using RadCombo box for my Asp.net Application.
On the page load data is being bound to the combobox. Now there is an option to edit the data in the Combo box by clicking on a link that is beside the combobox which brings a popup window where we edit the data and Update. On Updating the value the popup window is closed thereby refreshing the Combobox (client side).
For that i am using the following code.
cboCases.clearItems();
cboCases.requestItems(sel, false); //Here value of sel is the selected index’s value.
After the request_Items fires the sever side event is called to bind the combobox.
The server side code is
cboCases.DataSource = listObjects;
cboCases.DataBind();
cboCases.SelectedIndex = int.Parse(sel); //sel is the values passed from Request_Items
My Issue is that even though we are setting the selected index value, what is being reflected in the UI is the same old value.But once we change the index of the combobox manually from the UI the data is the updated value.