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

radgid1.Databind();

2 Answers 13 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ashraf
Top achievements
Rank 2
Ashraf asked on 22 Aug 2012, 05:36 PM

i have RadAsyncUpload that upload multi files when files uploaded complete in

FileUploaded event should rebind radgrid which display the files

the problem is radgid1.Databind(); dosen't fire

here is my code

this ajaxmanger code

<telerik:RadAjaxManager ID="RadAjaxManagerFileUpload" runat="server">

        <AjaxSettings >

            <telerik:AjaxSetting AjaxControlID="tlkasycupMultipleFile">

                <UpdatedControls>

                    <telerik:AjaxUpdatedControl ControlID="tlkasycupMultipleFile" />

                    <telerik:AjaxUpdatedControl ControlID="radgSupAcctFileUploads"  />

                </UpdatedControls>

            </telerik:AjaxSetting>

            <telerik:AjaxSetting AjaxControlID="radgSupAcctFileUploads">

                <UpdatedControls>

                    <telerik:AjaxUpdatedControl ControlID="radgSupAcctFileUploads" />

                </UpdatedControls>

            </telerik:AjaxSetting>

        </AjaxSettings>

    </telerik:RadAjaxManager>

Here is code behind

protected  void tlkasycupMultipleFile_FileUploaded(object sender, Telerik.Web.UI.FileUploadedEventArgs e)

    {

//here code to save files in DB and its works fine

// after that bind the RadGrid

  radgSupAcctFileUploads.DataSourceID = odsFileUploads.ID;

                    radgSupAcctFileUploads.DataBind();

}

This is my scenario 

2 Answers, 1 is accepted

Sort by
0
Ashraf
Top achievements
Rank 2
answered on 23 Aug 2012, 11:42 AM
when i use 
<telerik:AjaxSetting AjaxControlID="RadAjaxManagerFileUpload">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="radgSupAcctFileUploads"  LoadingPanelID="RadAjaxLoadingPanelFileUpload"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>
its work fine but this update other controls thus i don't make better performance
0
Tsvetina
Telerik team
answered on 27 Aug 2012, 10:29 AM
Hi,

After we cleared this scenario out in your support ticket, I am posting here in case anyone else has the same scenario:
When the grid is updated as a result of code ran after an ajaxRequest() call has been made, the setting is correct and all controls that are expected to be updated during this request should be listed as updated controls.
This setting does not mean that each request in the page will update the grid, as the targets of requests are the actual controls that do the postback. This setting applies only to requests where the RadAjaxManager is a target.


Greetings,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Ashraf
Top achievements
Rank 2
Answers by
Ashraf
Top achievements
Rank 2
Tsvetina
Telerik team
Share this question
or