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

Update controls outside of RadGrid

10 Answers 161 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 16 Apr 2008, 12:31 PM
Hello,

Is it possible to capture an Ajax callback from a rowclick, and then update a part of the web page completely outside of the Grid.  I have a Dundas chart in a panel, and I need to capture the value in the selected row and then rebind the dundas chart using Ajax.  I have tried using AjaxManager to get the RadGrid to update the ASP:PANEL the Dundas chart resides in, but the chart doesnt get redrawn - nor does a loading panel cover the dundas chart.

I know the event is being fired and captured as I have traced it.

Forgetting the Dundas piece...how would you update a control outside of the Grid without using the Literal control I have seen in the documentation?

Thanks

10 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Apr 2008, 01:08 PM
Hello Stephen,

Updating controls outside of the was challenge with our old "Classic" RadGrid where the grid native ajax was designed to limit updates to the grid itself. With RadAjaxManger you can do this very easily and you can find small example attached.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Stephen
Top achievements
Rank 1
answered on 16 Apr 2008, 02:48 PM
Hi,

Thanks, but I have follwed these instructions and although the postback is occuring, the panel I have specified to update in AjaxManager is not updating, nor is the loading panel appearing.

The code I have here binds new data to the Dundas chart.  After the callback the asp:Panel that contains the chart is not updating. 

Does it matter that this is in a content page at all?  Also, my AjaxRad Manager document outline doesnt seem to mirror the document structure.  It shows the panel I want to update as being outside of the MultiPage, when it isnt.

Protected Sub grdStudyCycles_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles grdStudyCycles.ItemCommand

If (e.CommandName = "RowClick" AndAlso TypeOf e.Item Is GridDataItem) Then

e.Item.Selected =

True

Dim text As String = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("MEASURE")

Session(

"ddStudyCycles_Measure") = text

Call Bind_chtStudyCycles()

End If

End Sub

0
Vlad
Telerik team
answered on 16 Apr 2008, 02:50 PM
Hello Stephen,

Please send us small example which demonstrates this and I will gladly help you.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Stephen
Top achievements
Rank 1
answered on 16 Apr 2008, 02:53 PM
Hi,

In the meantime  - can you anser the question on if the fact this is in a content page matters?

Regards

0
Stephen
Top achievements
Rank 1
answered on 16 Apr 2008, 04:10 PM
Hi Vlad,

I have a sample project..who can I email it to, or can I attach it on the forum?

Regards

Stephen
0
Stephen
Top achievements
Rank 1
answered on 16 Apr 2008, 04:26 PM
Sample submitted - ticket number 132431
0
Stephen
Top achievements
Rank 1
answered on 16 Apr 2008, 04:31 PM
Sample submitted - ticket number 132431
0
Konstantin Petkov
Telerik team
answered on 17 Apr 2008, 06:09 AM
Hello Stephen,

Thank you for sending a sample project.

You have to disable the Grid built-in AJAX mode to allow the manager to ajaxify the Grid. Please, remove EnableAJAX="true" Grid setting, add the Grid as updated control as well and let us know if you need further assistance.

Sincerely yours,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Stephen
Top achievements
Rank 1
answered on 17 Apr 2008, 08:27 AM
Hi,

OK thanks.  Does this mean I have to select the radgrid as an initiator and receiver of ajax updates in ajax manager if I want ajax to work within the radgrid, such as when paging and sorting?

Thanks again

Stephen

0
Sebastian
Telerik team
answered on 17 Apr 2008, 08:35 AM
Hello Stephen,

Yes, your assumption is correct.

Best,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Stephen
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Stephen
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Sebastian
Telerik team
Share this question
or