
RadComboBox1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("Value 1 - 1", "1")); RadComboBox1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("Value 1 - 2", "1")); RadComboBox1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("Value 1 - 3 ", "1")); RadComboBox1.Items.Add(new Telerik.Web.UI.RadComboBoxItem("Value 2", "2"));As can be see, three items have the same value (1). The problem is, in the client side, I select a item, for exemple, "Value 1 - 3", so, when the combobox last the focus, the item will be automatic set to "Value 1 - 1".
Why this happen? Is there a way to stop this?
Thanks.
<telerik:RadGrid id="{@id}" runat="server" AutoGenerateColumns="True" AllowMultiRowSelection="True" AllowMultiRowEdit="True" MasterTableView-EditMode="InPlace" Skin="Windows7"Width="50%"> <HeaderContextMenu EnableAutoScroll="True"/> <MasterTableView DataSourceID="{@id}_" HorizontalAlign="NotSet"> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"> <ItemStyle CssClass="MyImageButton" /> </telerik:GridEditCommandColumn> </Columns> <EditFormSettings ColumnNumber="2" InsertCaption="New"> <FormTableItemStyle Wrap="False" /> <FormCaptionStyle CssClass="EditFormHeader" /> <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White" Width="100%" /> <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" /> <FormTableAlternatingItemStyle Wrap="False" /> <EditColumn ButtonType="ImageButton" InsertText="Insert record" UpdateText="Update record" UniqueName="EditCommandColumn1" CancelText="Cancel edit" /> <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow" /> </EditFormSettings> </MasterTableView> <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="false"> <Selecting AllowRowSelect="True" EnableDragToSelectRows="false"/> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> </ClientSettings></telerik:RadGrid>protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e){ if (e.Column is GridBoundColumn) { (e.Column as GridBoundColumn).DataFormatString = "<nobr>{0}</nobr>"; }}
function ShowSuccessNotificationMessage(title, message) { var notifObject = $find("<%=RadNotification.ClientID %>"); notifObject.set_title(title); notifObject.set_text(message); notifObject.show();I would like to know the best way to utilise a radwindow for the following scenario.
in my application im setting a link to allow a user to mark where their location is on google maps. the google map is being loaded in a radwindow, im currently passing the record id and postcode to the map page via a querystring. is this the best way or is there an alternative?
where im having a problem is i want to include a button whereby the user clicks after moving the marker and this function will close the window and pass the parameters for id, postcode, lat + lng coordinates to the calling page.
the samples ive found are client side but i need the parameter values server side as i want to update a database record with the coorinates related to the location set by the user.
i also need a way to deal with the user closing the window via the x in the corner rather than my button. maybe a prompt?
so the main issue is, once the user clicks the button to close the window how do i get the values in my code-behind module?