473,396 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

datagrid enableViewState question

i would like my datagrids to be both sortable and pageable. All the
examples i have found so far use methods which require the datagrid's
enableViewState method set to true. This can be bad if the datagrid is
holding lots and lots of data.

is it possible to change the link on the datagrid header column links
somehow? I would basically like these links to call a custom
javascript function instead of doing a postback. In the javascript
function I would set a hidden text field the value of the sorting
column, then submit the form.

am i missing something? is there a better way of doing this?
Nov 19 '05 #1
3 1545
one of the MVP's (ashok - ASP.NET MVP) wrote a sortable datagrid using
strictly client side a while back. see if you have any luck googling for it.
he also made the source code available

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
"Mortar" <a@b.com> wrote in message
news:42***************@nntp.broadband.rogers.com.. .
i would like my datagrids to be both sortable and pageable. All the
examples i have found so far use methods which require the datagrid's
enableViewState method set to true. This can be bad if the datagrid is
holding lots and lots of data.

is it possible to change the link on the datagrid header column links
somehow? I would basically like these links to call a custom
javascript function instead of doing a postback. In the javascript
function I would set a hidden text field the value of the sorting
column, then submit the form.

am i missing something? is there a better way of doing this?

Nov 19 '05 #2
examples i have found so far use methods which require the datagrid's
enableViewState method set to true. This can be bad if the datagrid is
holding lots and lots of data.

is it possible to change the link on the datagrid header column links
somehow? I would basically like these links to call a custom
javascript function instead of doing a postback. In the javascript
....
i would like my datagrids to be both sortable and pageable. All the
examples i have found so far use methods which require the datagrid's
enableViewState method set to true. This can be bad if the datagrid is
holding lots and lots of data.

is it possible to change the link on the datagrid header column links
somehow? I would basically like these links to call a custom
javascript function instead of doing a postback. In the javascript
function I would set a hidden text field the value of the sorting
column, then submit the form.

am i missing something? is there a better way of doing this?


__________________________________________________ _____________________________
Posted Via Uncensored-News.Com - Accounts Starting At $6.95 - http://www.uncensored-news.com
<><><><><><><> The Worlds Uncensored News Source <><><><><><><><>

Nov 19 '05 #3

was there a response in this somewhere?

On 16 Jul 2005 15:54:42 GMT, "Robert Smith" <rs****@mxfrontgate.com>
wrote:
examples i have found so far use methods which require the datagrid's
enableViewState method set to true. This can be bad if the datagrid is
holding lots and lots of data.

is it possible to change the link on the datagrid header column links
somehow? I would basically like these links to call a custom
javascript function instead of doing a postback. In the javascript
...
i would like my datagrids to be both sortable and pageable. All the
examples i have found so far use methods which require the datagrid's
enableViewState method set to true. This can be bad if the datagrid is
holding lots and lots of data.

is it possible to change the link on the datagrid header column links
somehow? I would basically like these links to call a custom
javascript function instead of doing a postback. In the javascript
function I would set a hidden text field the value of the sorting
column, then submit the form.

am i missing something? is there a better way of doing this?


_________________________________________________ ______________________________
Posted Via Uncensored-News.Com - Accounts Starting At $6.95 - http://www.uncensored-news.com
<><><><><><><> The Worlds Uncensored News Source <><><><><><><><>


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andla Rand | last post by:
Hi, Could you help me to understand how datagrid works. I'm trying to make a datagrid editable. Now most of the tutorials I read says that i should turn the Enable ViewState off. Why is that? ...
7
by: A.M | last post by:
Hi, I want to refresh my DataGrid data on every postback. I have following code in Page_Load event, but after first page load, the DataGrid never gets refresh. Here is the code i have in...
2
by: michele | last post by:
Hi, i'm using a datagrid control in my webform, with AutoGenerateColumns=false; it work very well if EnableViewState=true; including paging and sorting, but this cause a big performance issue, so...
2
by: Syed Sami R. Shah | last post by:
hi all, i am having problem with using itemcommand of datagrid by way of asp:image button. i have put an image button in a datagrid item template and have set CommandName="DeleteRecord" and have...
0
by: Mortar | last post by:
i would like my datagrids to be both sortable and pageable. All the examples i have found so far use methods which require the datagrid's enableViewState method set to true. This can be bad if the...
0
by: Sue | last post by:
I'm missing something very simple here, and I need an answer fairly quick if possible. I'm behind on this project now because of this... Code examples below question... I have a datagrid (DG)...
2
by: Calvin KD | last post by:
Hi everyone, I have a datagrid to display search results. The search results at this stage we only return the first 500 records to speed up the search. The problem is, if I turn the...
0
by: jigsawcube1 | last post by:
I am trying to accept two input strings and concatinate and display the result in a datagrid. Following is the HTML and code. ItemCommand does not get fired what is that I am missing? <body...
0
by: stevem2112 | last post by:
I have a datagrid with 2 Template columns. One column has DropDownLists and the other has Textboxes. I bind each DDL in the ItemCreated event. This datagrid is inside a UserControl that is inside...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.