guillaume.lebel
Top achievements
Rank 1
Iron
Iron
guillaume.lebel
asked on 20 May 2009, 08:02 PM
Hi,
I have a grid that i created dynamicly everyting i mean my datasource, my grid structure and every item in my grid are create in code behind for specific need. Everything is working fine when i load my grid.
The thing is i've created by code behind 2 other control that i add in my header item (imagebutton and a textbox).
I've add a javascript on my image button that is suppose to copy in all my item the value entered before in the header textbox.
But i'm not getting a radtextbox but simply an imput. When i click in any cell that i changed the value before, it change back to the first value.
| function OnCopyResult(textBoxId, columnIndex) |
| { |
| var grid = $find("<%= RadGridLocalTraining.ClientID %>"); |
| var masterTable = grid.get_masterTableView(); |
| var headerTextBox = masterTable.HeaderRow.cells[columnIndex].firstChild.nextSibling.nextSibling.firstChild; |
| var value = headerTextBox.value; |
| var itemsCount = grid.get_masterTableView().get_dataItems().length; |
| for(i = 0; i < itemsCount; i++) |
| { |
| cell = masterTable.getCellByColumnUniqueName(masterTableView.get_dataItems()[i],masterTableView._columnsInternal[columnIndex].get_uniqueName()); |
| var cellTextBox = cell.firstChild.firstChild; |
| cellTextBox.value = value; |
| } |
| } |
Thanks for you help!
Guillaume
10 Answers, 1 is accepted
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 21 May 2009, 02:56 PM
I've tried to get the input with
cell.getElementsByTagName('input').item()
instead of
cellTextBox = cell.firstChild.firstChild;
I'm able to get the value but i can't change it i've tried to say
cellTextBox.value = x;
But when i click in the cell the value is going back to his old one. I forgot to mention that i'm using radMaskedTextBox and RadNumericTextBox in my grid. Both control having the same problem.
Thanks for your help!
Guillaume
cell.getElementsByTagName('input').item()
instead of
cellTextBox = cell.firstChild.firstChild;
I'm able to get the value but i can't change it i've tried to say
cellTextBox.value = x;
But when i click in the cell the value is going back to his old one. I forgot to mention that i'm using radMaskedTextBox and RadNumericTextBox in my grid. Both control having the same problem.
Thanks for your help!
Guillaume
0
Accepted
Hello Guillaume,
Please, review the attached sample for an example of how to implement this functionality and let us know if you need further assistance.
Best Regards,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Please, review the attached sample for an example of how to implement this functionality and let us know if you need further assistance.
Best Regards,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 26 May 2009, 12:37 PM
Thx Tsvetoslav for you response it works rly well.
But i'm having an other problem regarding the renderring when the page load. With all these items template the page take a rly long time for the page to finish loading. I've tried with 15 rows and 10 columns for approximatly 150 radMaskedTextBox or NumericTextBox. The page i showing up correctly but the thing is i can't do anything in it cause the radcontrol aren't all render. It take atleast 5 min for the page to be load.
When i tried with normal asp textbox take less than 10 sec to load.
Most of the times the grid will have between 100 and 250 items. Is there a way to have the page loading faster with the control??
Thx again for your time!
But i'm having an other problem regarding the renderring when the page load. With all these items template the page take a rly long time for the page to finish loading. I've tried with 15 rows and 10 columns for approximatly 150 radMaskedTextBox or NumericTextBox. The page i showing up correctly but the thing is i can't do anything in it cause the radcontrol aren't all render. It take atleast 5 min for the page to be load.
When i tried with normal asp textbox take less than 10 sec to load.
Most of the times the grid will have between 100 and 250 items. Is there a way to have the page loading faster with the control??
Thx again for your time!
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 26 May 2009, 07:35 PM
I've tried to use a radInputManager and attach each textbox in the itemCreated event, but i'm having a problem when i'm trying to execute an event on item click of the toolbar, my browser stop running and i can't do anything else.
Also forgot to mention i'm using an excel-like grid.
Thx again!!
Guillaume
Also forgot to mention i'm using an excel-like grid.
Thx again!!
Guillaume
0
Hello Guillaume,
If you are using an excel like grid, it means that you are putting all rows in edit mode. Under this circumstance, there will be a lot of controls loading on initial page load which considerably increase the mark-up rendered in your browser. This is especially true if the controls rendered are our rad controls since they are richer in functionality and necessarily produce more mark-up on the client.
I'd suggest that you review the following links on how to optimize the performance of RadGrid:
http://www.telerik.com/products/aspnet-ajax/resources/top-performance.aspx
http://www.telerik.com/help/aspnet-ajax/grdviewstatereductiontechniques.html
http://www.telerik.com/help/aspnet-ajax/grdsavinggridviewstateinsession.html
http://www.telerik.com/help/aspnet-ajax/grdiememoryleaks.html
as well as the online examples from the 'Performance' section of the RadGrid QSF which demonstrate how to realize in practice the above-mentioned optimization techniques.
As for your second question, could you give more details on the issue (what kind of toolbar are you trying to click) and even send us a test project which will give us the opportunity to take a closer look at the problem.
Thank you.
Best regards,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
If you are using an excel like grid, it means that you are putting all rows in edit mode. Under this circumstance, there will be a lot of controls loading on initial page load which considerably increase the mark-up rendered in your browser. This is especially true if the controls rendered are our rad controls since they are richer in functionality and necessarily produce more mark-up on the client.
I'd suggest that you review the following links on how to optimize the performance of RadGrid:
http://www.telerik.com/products/aspnet-ajax/resources/top-performance.aspx
http://www.telerik.com/help/aspnet-ajax/grdviewstatereductiontechniques.html
http://www.telerik.com/help/aspnet-ajax/grdsavinggridviewstateinsession.html
http://www.telerik.com/help/aspnet-ajax/grdiememoryleaks.html
as well as the online examples from the 'Performance' section of the RadGrid QSF which demonstrate how to realize in practice the above-mentioned optimization techniques.
As for your second question, could you give more details on the issue (what kind of toolbar are you trying to click) and even send us a test project which will give us the opportunity to take a closer look at the problem.
Thank you.
Best regards,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 28 May 2009, 03:53 PM
Hi Tsvetoslav,
First of all thx for your response. About the toolbar i talked earlier, i'm using a RadToolBar, but... i also try to launch the event on other control like asp:button and it does the same thing; my browser freeze and stop running. when there's no record my event is launching correctly.
I've tried to debug my script line by line and the application stop working right after the post back event i called.
Thx again!!
Guillaume
First of all thx for your response. About the toolbar i talked earlier, i'm using a RadToolBar, but... i also try to launch the event on other control like asp:button and it does the same thing; my browser freeze and stop running. when there's no record my event is launching correctly.
I've tried to debug my script line by line and the application stop working right after the post back event i called.
Thx again!!
Guillaume
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 28 May 2009, 06:29 PM
Hi,
I've sent a suport ticket reproducing the problem i talked earlier the id is :215776.
Thx again!!
Guillaume
I've sent a suport ticket reproducing the problem i talked earlier the id is :215776.
Thx again!!
Guillaume
0
Hi Guillaume,
Please, refer to my answer in the support ticket. For the benefit of other people that might find their way to this forum thread, I'd like to point out that indeed the problem is reproducible and the solution to it involves upgrading to the latest version of the controls since it involves some important fixes and optimizations to the RadInputManager.
I am also attaching the sample sent through the support ticket.
All the best,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Please, refer to my answer in the support ticket. For the benefit of other people that might find their way to this forum thread, I'd like to point out that indeed the problem is reproducible and the solution to it involves upgrading to the latest version of the controls since it involves some important fixes and optimizations to the RadInputManager.
I am also attaching the sample sent through the support ticket.
All the best,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 16 Jun 2009, 02:07 PM
I'm having an other problem with the excel-like grid. The thing is i might have more than 50 rows in same times and for now i can't use paging. Is there anyway to increase the performance???
Thx Again!!
Guillaume
Thx Again!!
Guillaume
0
Hi Guillaume,
I am afraid the paging is obligatory in this scenario given the considerable number of rows in the grid.
Best Regards,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I am afraid the paging is obligatory in this scenario given the considerable number of rows in the grid.
Best Regards,
Tsvetoslav
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.