Hi All,
I am using the RadAsyncUpload in my app. So what I need as follows whenever we select any attachment to upload how to add the duplicate file checking from the client side, and that to while picking the attachments itself.
Anybody knows how to do this?.
Thanks,
Dim MyId As Integer = (DirectCast(RadGrid1.SelectedItems(0), GridDataItem)).GetDataKeyValue("MessageId").ToString()System.ArgumentOutOfRangeException was unhandled by user code<br> HResult=-2146233086<br> Message=L'index était hors limites. Il ne doit pas être négatif et doit être inférieur à la taille de la collection.<br>Nom du paramètre : index<br> ParamName=index<br> Source=mscorlib<br> StackTrace:<br> à System.Collections.ArrayList.get_Item(Int32 index)<br> à Telerik.Web.UI.GridItemCollection.get_Item(Int32 index)<br> à messages_messages.RadGrid1_SelectedIndexChanged(Object sender, EventArgs e) dans E:\Visual Studio 2012\WebSites\Hotlinexxx\messages\messages.aspx.vb:ligne 34<br> à System.EventHandler.Invoke(Object sender, EventArgs e)<br> à Telerik.Web.UI.GridBaseDataList.OnSelectedIndexChanged(EventArgs e)<br> à Telerik.Web.UI.RadGrid.RaisePostDataChangedEvent()<br> à Telerik.Web.UI.RadCompositeDataBoundControl.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent()<br> à System.Web.UI.Page.RaiseChangedEvents()<br> à System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)<br> InnerException: <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxSettingCreated="RadAjaxManager1_AjaxSettingCreated"<br> OnAjaxRequest="RadAjaxManager1_AjaxRequest"><br> <AjaxSettings><br> <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"><br> <UpdatedControls><br> <telerik:AjaxUpdatedControl ControlID="RadGrid1"></telerik:AjaxUpdatedControl><br> </UpdatedControls><br> </telerik:AjaxSetting><br> <telerik:AjaxSetting AjaxControlID="RadGrid1"><br> <UpdatedControls><br> <telerik:AjaxUpdatedControl ControlID="LitMessage"></telerik:AjaxUpdatedControl><br> <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl> <br> </UpdatedControls><br> </telerik:AjaxSetting><br> </AjaxSettings><br> </telerik:RadAjaxManager>Hello,
I have a radcombobox control that gets filled with data on page load ( at code behind ) and I have a rad button on the page, that has a clientclicking event on it, inside this event, I read the selected value of the radcombobox , using jquery selector, and do some validation on it.
The problem is happening whenever I start typing (filtering) inside the radcombobox then pressing the enter key to select the item, it is clearing the selected value of the control, so whenever I read the selected value of the radcombobox after pressing the enter key to select the item, the value gets displayed as empty string. It is working fine if I select an item using a normal mouse click.
The markup for the radcombobox is:
<rad:RadComboBox ID="lstEntity" runat="server" Width="95"></rad:RadComboBox>The code used to fill the radcombobox is:
With lstEntity .Items.Clear() .DataSource = _Entities.EntityCodes.OrderBy(Function(o) o) .DataBind() .Items.Insert(0, New Telerik.Web.UI.RadComboBoxItem("- Select -", "0"))End With
The code used in the rad button's ClientClicking event to read the selected value of the radcombobox is:
var selectedEntity = $find($("[id$='lstEntity']")[0].id).get_value();Therefore, the selectedEntity is being filled with an empty string, whenever I select an item from the radcombobox through an enter key. As a note, the get_text() function always returns the correct selected text, regardless of the way I use to select the item (mouse click or Enter key).
So I am not sure if this is an issue with the control itself, or it is in the way I am binding the data with control or even reading the selected value. I would appreciate it if someone can help me.
Regards