This is a migrated thread and some comments may be shown as answers.

RadAsyncUpload is duplicated into 2 control when put into RadGrid

4 Answers 124 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Nguyen Quyet
Top achievements
Rank 1
Nguyen Quyet asked on 25 Apr 2015, 05:58 AM

Dear Supporters !

 Have a nice day.

Currently, I have using RadControl for ASP.NET to develop any systems.

I have used RadAsyncUpload control in RadGrid. No problems.

However, when RadAsyncUpload control in RadGrid, it it duplicated into 2 controls that the same in EditMode (Insert and Upload mode).

+ The first control: after select files, these files are not displayed. (I think this no right)

+ The second control: it is OK.

More defails about designer screen and actual problem screen is stored in attachment files.

Thanks in advanced !

tienit

4 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 29 Apr 2015, 11:32 AM
Hello,

Please, find attached a sample project, which demonstrates how to properly add the RadAsyncUpload to the RadGrid's InsertItemTemplate and the EditItemTemplate.

The Telerik .dll files are removed from the Bin folder in order not to exceed the maximum allowed attachment size.

Regards,
Ivan Danchev
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Nguyen Quyet
Top achievements
Rank 1
answered on 04 May 2015, 01:47 AM

Hello Mr Ivan !

I have fixed the above issue.

After any hours for finding solution for Auto Synchronous in RadGrid, I have added following code before Telerik:RadGrid

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="radgrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="radgrid"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>

<telerik:RadGrid ID="radgrid" ShowFooter="False" GridLines="None" Skin="Office2010Blue" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true"
AllowSorting="True" Width="100%" Height="630" runat="server" AutoGenerateColumns="false" AllowPaging="True" PageSize="10" CssClass="radgridClass">
<PagerStyle Mode="NextPrevAndNumeric" Position="Bottom"></PagerStyle>
<MasterTableView EditMode="EditForms" DataKeyNames="ID" CommandItemDisplay="Top"> .................

 

If we remove following code :

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="radgrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="radgrid"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>

 

before the Telerik RadGrid, this problem will be resolved.

Once again, thank for quick and strongly support from Mr Ivan and Telerik Support Team.

 

Thanks and Best Regards !

tienit

Freelancer.

0
Ivan Danchev
Telerik team
answered on 04 May 2015, 03:54 PM
Hello,

I am glad you managed to find a solution to the problem.

In this case the RadAjaxManager should not be causing issues unless other controls with similar functionality (RadAjaxPanel, asp:UpdatePanel) are used on the same page to update the same controls, which may cause conflicts and unpredictable behavior.

Regards,
Ivan Danchev
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Nguyen Quyet
Top achievements
Rank 1
answered on 05 May 2015, 04:56 AM

Dear Ivan Danchev san !

Exactly as all the above code, I have put into asp:UpdatePanel control and may be the reason for this issues.

Thanks and Best Regards!

tienit

Tags
AsyncUpload
Asked by
Nguyen Quyet
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Nguyen Quyet
Top achievements
Rank 1
Share this question
or