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

Grid with TextBox column - updating at Client side - how?

4 Answers 147 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Grzesiek
Top achievements
Rank 2
Iron
Grzesiek asked on 10 Nov 2009, 05:54 PM
Hello!

I want to make similar effect with RadGrid like here:
http://www.egobba.de/company.htm

Type "180280" in Company ID for example.

I don't how to make that if I enter some value in one textbox, then it's multiplying with value from other cell (in the same row) and showing in another cell of the same row.

--- value --- textbox --- result  

value*textbox = result

I want to do it without postbacks, just JS on client side.


4 Answers, 1 is accepted

Sort by
0
Grzesiek
Top achievements
Rank 2
Iron
answered on 10 Nov 2009, 09:25 PM
No ideas?
0
Sebastian
Telerik team
answered on 13 Nov 2009, 10:04 AM
Hello Grzesiek,

I think that you can use the following integration demo of RadGrid and RadInput as a starting point for your implementation:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandinput/defaultcs.aspx?product=grid

The idea is to utilize the client API of RadInput to calculate the values in the footer when the user changes some numbers in the column cells. Feel free to port the solution to perform changes on a per row basis instead of column footer.

Best regards,
Sebastian
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
Grzesiek
Top achievements
Rank 2
Iron
answered on 13 Nov 2009, 11:19 AM
I was trying to use something like here:

http://blogs.telerik.com/VladimirEnchev/Posts/08-09-19/How_To_Telerik_RadGrid_client-side_caching_with_client-side_binding_to_web_services_using_LINQ_to_SQL.aspx

But I think while converting it to VB and setting for my eCompanyDataContext I made some mistake.

It seems to sorting, but only the GridBoundColumn - the Template or Numeric Columns are not sorting and I don't know why ...
0
Vlad
Telerik team
answered on 16 Nov 2009, 06:52 AM
Hello,

This functionality is already part of the grid. You can check this demo for more info:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/caching/defaultcs.aspx

Here is also an example of client-side binding + sorting on template column:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/databinding/defaultcs.aspx

Sincerely yours,
Vlad
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.
Tags
Grid
Asked by
Grzesiek
Top achievements
Rank 2
Iron
Answers by
Grzesiek
Top achievements
Rank 2
Iron
Sebastian
Telerik team
Vlad
Telerik team
Share this question
or