Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
571 views

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,

Shinu
Top achievements
Rank 2
 answered on 07 Oct 2013
4 answers
322 views
Hi,

I have an issue with the datakey that I'm trying to get from my code behind in the SelectedIndexChanged event (I want to update a panel above the Radgrid when a row is selected).

I saw in the documentation that you recommend to use the following in SelectedIndexChanged 

Dim MyId As Integer = (DirectCast(RadGrid1.SelectedItems(0), GridDataItem)).GetDataKeyValue("MessageId").ToString()


My probleme is that I get the following error:

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: 

My Ragrid is inpired from the Outlook grid:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/webmail/defaultvb.aspx

and in my opinion most important resizing in radsplitter:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandsplitterresizing/defaultvb.aspx?product=grid
regarding to the ajax it contains.

Here is the ajax manager I use:

<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>

I have noticed that if I invert AjaxUpdatedControl ControlID="LitMessage" and ControlID="RadGrid1" the height of the grid is less of 100px height.

Also resizing in rad splitter seems to be a problem for groupong the colomns but this his another story.

I thank you in advance for you help.
Best regards


Princy
Top achievements
Rank 2
 answered on 07 Oct 2013
0 answers
175 views

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

Aram
Top achievements
Rank 1
 asked on 07 Oct 2013
3 answers
122 views
I am looking for step by step procedure to add telerik to Global Application Cache in windows 7 home professional and visual studio 2008.

I cannot run the .net application using telerik in debug mode from visual studio on different PC other than it was developed on.

I know I have to add telerik controls to visual studio, but not sure how to do it.

Here is the error I get:
Could not load file or assembly 'Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

TELERIK VERSION INSTALLED ON DEVELOPMENT COMPUTER IS DIFFERENT FROM MY TESTING COMPUTER.
Shevki
Top achievements
Rank 1
 answered on 05 Oct 2013
7 answers
247 views
Hello ,

I want to enable/disable rad ribbon applicationmenu items. I tried .Enabled property.but not working.
Please provide me a solution.

Thanks
Abhi
Abhilash
Top achievements
Rank 1
 answered on 05 Oct 2013
3 answers
1.1K+ views
When running my ASP.NET webforms app in the Visual Studio 2012 debugger using IIS Express and a localhost URL I'm getting the following error:

JavaScript runtime error: 'WebForm_InitCallback' is undefined

however when I deploy the app and run under IIS I do not get the error.  I've tried everything and can't resolve this.  Any suggestions?


Aniello
Top achievements
Rank 1
 answered on 05 Oct 2013
4 answers
111 views
Hiwhen I select a row, the columns change size.
Column Status is radcombobox.
I put two images before and after.

If
you have an idea.

Thank you very much ..
Sylvain Guay
Top achievements
Rank 1
 answered on 05 Oct 2013
6 answers
753 views
Hi,

I have several RadGrid in my application with lots of data in it. 

I wanted to know why the scrolling go back to the top of the grid after a postback from edit or cancel edit.

Example:

I click on a row to edit it. At this point, the scrolling is ok. But when I click on Update or Cancel, the scroll go back to the top of the grid after the postback. Is it possible to keep the scroll or set the scroll to the top of the page and instead of the grid?

Thanks,

Jocelyn
Jocelyn
Top achievements
Rank 1
 answered on 04 Oct 2013
2 answers
114 views
Hi,

I have a grid bound to a list and I want to disable the enter key when it is pressed anywhere in the grid.

I have already followed this article and it did not work. I also tried setting the form's default button to an invisible button that doesn't do anything, but it's still not working.


This grid is always in edit mode (multi row edit).

Any ideas?
Garrett
Top achievements
Rank 1
 answered on 04 Oct 2013
2 answers
99 views
I created a Hierarchy grid in my page with object data sources.. calling some static methods in the code behind..
When i run the code.. i see the little arrow indicating the rows are expandable.. but when i click on it .. it wont expands..
I did see the call being made to the selectmethod in ods2 (see below) with the proper parentid value..
(select method prototype is .. List<...> SelectDataForODS2(int ParentId) {} ).. there was even values returned .. but the rows wont expand.

What am i missing?

<telerik:RadGrid ID="....... DataSourceID="ods1">
<MasterTableView AutoGenerateColumns="False" DataSourceID="ods1" DataKeyNames="parentid"
                            EditMode="EditForms" AllowFilteringByColumn="False" AllowMultiColumnSorting="True">
            <DetailTables>
                                <telerik:GridTableView Name="..." runat="server" AutoGenerateColumns="False"
                                    DataKeyNames="childid" DataSourceID="ods2" Width="100%">
                                    <ParentTableRelation>
                                        <telerik:GridRelationFields DetailKeyField="parentid"
                                            MasterKeyField="parentid" />
                                    </ParentTableRelation>
                                    <Columns>........
........................................


Chris
Top achievements
Rank 1
 answered on 04 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?