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

[Solved] How to update my initial static partial view using Grid and Chart data via AJAX? (based on Telerik demo)

0 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Max
Top achievements
Rank 1
Max asked on 22 Nov 2011, 02:10 AM

hi all,

I hope I can explain my issue. I have built a web page following exactly this demo:

http://demos.telerik.com/aspnet-mvc/razor/grid/selectionclientside?theme=vista

So, when the server-bind occurs first, I pass via Viewbag my model to the grid, so far so good.
I also create a Chart based on the same model and use the Dialog control to display it via a button, i.e:

@{ Html.Telerik().Window()
        .Name("WindowGraph")
        .Visible(false)
        .blah blah blah some code here       
        .Content(@<text>
            <p style="text-align: center">                           
            @Html.Partial("_ChartOrders", (IEnumerable<AllOrdersPerCust>)ViewData["AllOrdersPerCust"])
            </p>
        </text>)
        .Render();
}

When you select another customer on master Grid, the data in Orders change which is the behaviour.
I would like to update the partial data I created above but with the NEW Orders data.

How do I do that? I am a beginner and am struggling with all these new stuff: jQuery, JSON, MVC3, etc...

Thank you

Tags
Grid
Asked by
Max
Top achievements
Rank 1
Share this question
or