Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development | Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
Author | Forum: PowerWEB LiveControls for ASP.NET Topic: LiveDataGrid and custom JavaScript var... |
oliver0303 From: Hjørring, Denmark Posts: 58 Member Since: 04/15/05 |
posted February 6, 2007 4:20 PM I am having an issue with the Dart LiveDataGrid when trying to call a custom JavaScript variable which is written to a LiveTemplateColumn on postback/callback. Please download two samples which demonstrate from here http://www.safetrack.dk/samples.zip First sample (LiveDataGrid.aspx) demonstrates using the LiveDataGrid; which does not work. The second (DataGrid.aspx) demonstrates the same technique using the ASP.NET DataGrid control (works). Basically the samples attempt to write/register a new JavaScript var called 'temp' inside the EditItemTemplate. Then I alert() the value of 'temp' when you click the 'Click Me' button. You should be able to see in the samples attached that the LiveDataGrid throws a JavaScript error when the "Click Me" link is clicked. The error does not occur in the asp:DataGrid sample. In the LiveDataGrid sample we call the BufferedScript Method to execute the JavaScript. We have simplified these samples to the most basic functionality. This functionality is required when using some 3rd party JavaScript rich controls like http://www.basicdatepicker.com/. So, my question is... Is there anyway to get my LiveDataGrid.aspx sample working so that it will alert() the value of 'temp' when the "Click Me" hyperlink is clicked? Same as what happens in the DataGrid.aspx sample? |
oliver0303 From: Hjørring, Denmark Posts: 58 Member Since: 04/15/05 |
posted February 6, 2007 4:22 PM Farpoint has a grid http://fpoint.com/netproducts/spreadweb/spread.aspx They have a JavaScript Event you can call after the CallBack executes. In that event you can fire your own custom JavaScript. This is what's missing from the Dart controls. The JavaSript var must be added after the Callback. The javascript can not be added to the parent Page. |
oliver0303 From: Hjørring, Denmark Posts: 58 Member Since: 04/15/05 |
posted February 7, 2007 5:02 AM Anyone from Dart reading this ?? I need a datepicker/calender to work with this grid, and have tried 4 different 3rdparty controls, and not anyone of them works with your grid. I cannot use the regular asp.net calendar control as it renders a complete calendar, and not just a datepicker as i would like. Please get back to me on this ! |
jczimmer From: La Crosse, WI USA Posts: 17 Member Since: 05/18/05 |
posted February 7, 2007 9:53 AM I have been using Peter's Date Package (http://www.peterblum.com/DateControls/Home.aspx) with the LiveDataGrid without any problems. |
giovanni.gomez ggomez@alum.syracuse.edu From: Orlando, FL USA Posts: 52 Member Since: 07/06/05 |
posted February 15, 2007 1:47 PM Is it possible to use the http://www.basicdatepicker.com/ inside a LiveDataGrid. My grid loads fine, but all the data is lost when I try to sort. |
jorlowski From: McHenry, IL USA Posts: 1 Member Since: 04/27/07 |
posted May 1, 2007 11:56 AM I see that jczimmer was able to use Peter's Date Picker with the LiveDataGrid without any problems. I have tried 5 different Date Pickers with the Dart LiveDataGrid and have no success with any of them. I was hoping somebody might have some sample code or help using this control or any other Date Picker. I really need to find a Date Picker control to work with the live controls and have not found any thus far. |
Reply | PowerWEB LiveControls for ASP.NET Topics | Forums |
This site is powered by
![]() |