or
protected void RCB1_Selectedindexchanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) { RadComboBox rcb = (RadComboBox)sender; // combobox that fires event string hi = rcb.SelectedValue; // combobox value, always old value string ha = rcb.Text; // combobox text, always text from newly selected item string hu = e.OldValue; // working correctly always value of previously selected item string ho = e.OldText; //working correctly always text of previously selected item string he = e.Value; // not working as one would expect it to work, always OLD value string hy = e.Text; // working as expected always NEW text string hiy = rcb.SelectedItem.Value; // Always old value string hyi = rcb.SelectedItem.Text; // always old value DataView dv = (DataView)SqlDataSource2.Select(new DataSourceSelectArguments()); string huu; // correct value after looping through intire datasource, would like to avoid this foreach (DataRowView row in dv) { if (row["Naambedrtot"].ToString() == rcb.Text) { huu = row["klantnummer"].ToString(); } } if (e.OldValue != e.Value) // always the same so selected value never gets changed { rcb.SelectedValue = e.Value; } }Hi,
ich have trouble with the RadRibbonBar and the RadSplitter. It seems to me that the combination of both is a little bit tricky.
When I use the RadRibbonBar above the RadSplitter on the MasterPage with 100% height to the RadSplitter the the RadSplitter will use more than 100% of the window size. It looks like the RadSplitter use exactly 100% of the window height plus the height of the RadRibbonBar.
When I put the RadRibbonBar into the RadSplitter (in another RadPade) the height Problem is solved bit I have problems with the RibbonBarMenuItem. When I open a Menue from the RadRibbonBar the MenueItems are behind the lower RadPade of the RadSplitter.
How Can I solve this?
Cheers
Carsten
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1" runat="server"></head><body class="BODY"> <form runat="server" id="mainForm" method="post"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> <br /> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="CheckBox1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="CheckBox2"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="CheckBox3"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="CheckBox4"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="DropDownList1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" ShowFooter="True" GridLines="None" AllowSorting="True" Width="750px" Height="100%" runat="server" AutoGenerateColumns="false"> <PagerStyle Mode="NumericPages" /> <MasterTableView Width="100%"> <Columns> <telerik:GridBoundColumn UniqueName="ProductID" DataField="ProductID" HeaderText="ProductID" SortExpression="ProductID" Aggregate="Count" /> <telerik:GridBoundColumn UniqueName="ProductName" DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName" Aggregate="None" /> <telerik:GridBoundColumn UniqueName="QuantityPerUnit" DataField="QuantityPerUnit" HeaderText="Quantity Per Unit" SortExpression="QuantityPerUnit"/> <telerik:GridNumericColumn Aggregate="Avg" DataField="UnitPrice" HeaderText="Unit price" SortExpression="UnitPrice" UniqueName="UnitPrice" DataFormatString="{0:C}" FooterAggregateFormatString="Avg: {0:C}" /> <telerik:GridNumericColumn Aggregate="Sum" DataField="UnitsInStock" HeaderText="In Stock" SortExpression="UnitsInStock" UniqueName="UnitsInStock" /> <telerik:GridNumericColumn Aggregate="Max" DataField="UnitsOnOrder" HeaderText="Units On Order" SortExpression="UnitsOnOrder" UniqueName="UnitsOnOrder" /> </Columns> </MasterTableView> <HeaderStyle Width="200px" /> <ClientSettings> <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"> </Scrolling> </ClientSettings> </telerik:RadGrid> <br /> <asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="System.Data.SqlClient" SelectCommand="SELECT TOP 20 ProductID, ProductName, QuantityPerUnit, UnitPrice, UnitsInStock, UnitsOnOrder FROM Products" runat="server"></asp:SqlDataSource> </form></body></html>ShowHeadersWhenNoRecords
="true"
in my masterTableView.

<telerik:RadGrid runat="server" ID="gvTable" AllowPaging="True" Skin="Vista" PageSize="100" AllowSorting="True" ClientSettings-DataBinding-EnableCaching="true" GridLines="None" AutoGenerateEditColumn="True" AutoGenerateDeleteColumn="True" AllowAutomaticUpdates="False" OnUpdateCommand="gvTable_UpdateCommand" OnInsertCommand="gvTable_InsertCommand" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" onneeddatasource="gvTable_NeedDataSource"> <ExportSettings FileName="Order Details" IgnorePaging="True" ExportOnlyData="true"> </ExportSettings> <ClientSettings EnableRowHoverStyle="True" Selecting-AllowRowSelect="true"> <DataBinding EnableCaching="True"> </DataBinding> <Selecting AllowRowSelect="True"></Selecting> </ClientSettings> <MasterTableView InsertItemPageIndexAction="ShowItemOnCurrentPage" EnableHeaderContextMenu="True" CommandItemDisplay="Top" EditMode="InPlace" DataKeyNames=""> <CommandItemSettings ShowExportToExcelButton="true" AddNewRecordText="" ShowAddNewRecordButton="False" /> <Columns> </Columns> <HeaderStyle Font-Bold="False" /> </MasterTableView> <PagerStyle Mode="NextPrevAndNumeric" /> </telerik:RadGrid>protected void gvTable_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e){ DataTable dt = this.GridSource; this.gvTable.DataSource = dt; this.gvTable.MasterTableView.DataKeyNames = GetColNames(dt);}protected void gvTable_UpdateCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) { GridEditableItem editedItem = e.Item as GridEditableItem; DataTable ordersTable = this.GridSource; //Locate the changed row in the DataSource DataRow[] changedRows = ordersTable.Select("col1 = " + editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["col1"].ToString()); //editedItem["Item"].Controls[0] if (changedRows.Length != 1) { this.Label1.Text += "Unable to locate the Order for updating."; e.Canceled = true; return; } //Update new values Hashtable newValues = new Hashtable(); e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem); changedRows[0].BeginEdit(); try { foreach (DictionaryEntry entry in newValues) { changedRows[0][(string)entry.Key] = entry.Value; } changedRows[0].EndEdit(); Label1.Text = "Successfully updated"; } catch (Exception ex) { changedRows[0].CancelEdit(); Label1.Text += "Unable to update Orders. Reason: " + ex.Message; e.Canceled = true; } }