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

Client dataBind and repaint not working

3 Answers 113 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dick
Top achievements
Rank 1
Dick asked on 11 Dec 2009, 03:10 PM
Hi
I am using VS 2008 with your latest release and .net 3.5 and C#.  I have a radgrid whith data columns defined using templates as follows:

<

 

telerik:GridTemplateColumn   

 

        <ItemTemplate>

 

 

            <asp:Label ID="ShortActivityDescription"

 

 

                runat="server"

 

 

               Text='<%# Eval("ShortActivityDescription")%>'>

 

 

            </asp:Label>

 

 

        </ItemTemplate>

 

 

</telerik:GridTemplateColumn>

I originally load the grid (server side) during page load using the OnNeedDatasouce method defined in the RadGrid definition.  Thereafter, I am using javascript and webservice(s) to do the insert, update, and delete logic and database IO.  The webservice returns a list of data records to the calling javascript function.  the successful completion method then does the following code (exactly like your demo example):

 

 

function Get_West_Activity_Grid_Complete(result)

 

{

 

if (result != null)

 

    {

 

 

    var tableView = $find("<%= Grid_West.ClientID %>").get_masterTableView();

 

    tableView.set_dataSource(result);

    tableView.dataBind();

 

 


    var
grid = $find("<%= Grid_West.ClientID %>");

 

    grid.repaint();

 

    }

}

 

The data gets added, changed, or deleted to/from the database but the grid does not refresh reflecting the changed data.  The data properties in the web service result list contain the correct data and number of list objects are correct.  The List properties identifiers(names) match the label id in the item template.  The grid has the EnableAJAX property set to true.

I have researched the Forum material, user documentation and clientside api material and cannot see what I am doing wrong.  I have read thru the following sources:

Grid / WebService Binding
Grid / .NET 3.5 Client-side Data Binding - automatic binding to WCF and ADO.NET services
Grid / Declarative Binding
Grid / Programmatic Binding
Grid / Client-side Binding and Caching

Please help

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 15 Dec 2009, 06:56 PM
Hello Dick,

Could you please check your Telerik account - I already answered to your support ticket.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Gotcha
Top achievements
Rank 1
answered on 26 Nov 2012, 04:13 AM
can you post your solution here... coz i think im having the same problem...

thanks
0
Daniel
Telerik team
answered on 28 Nov 2012, 09:35 AM
Hello,

For some reason I'm unable to find the support ticket mentioned in my previous answer. Maybe Dick will remember what was the reason for the problem.
Either way, you could submit a new support ticket (preferably with a runnable demo attached) and my colleagues will help you address it.

Kind regards,
Daniel
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
Grid
Asked by
Dick
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Gotcha
Top achievements
Rank 1
Share this question
or