Forum  General Visual ...  Let's Chat Abou...  Scrolling a Disabled Listview
Previous Previous
 
Next Next
New Post 11/11/2008 6:31 AM
  girdle66
55 posts
No Ranking


Scrolling a Disabled Listview 

Hey all, as always, thank you for your excellent product!

I don't see this question posted anywhere in the forums, so I'll throw it out there.  If you don't like it you can send it right on back.

Can we make a disabled Listview be scrollable, sortable and column-resizable?  It would be great if the text were grayed out and it was impossible to select anything but the user could still use and scroll the control. Maybe add a bool ReadOnly property like they did to the .NET textbox? 

We are using a custom Listview in our project that inherits from the Gizmox Listview.  i've been playing with the idea all morning, but with no success.  I've tried overriding a number of events but have had no luck.  Please let me know if there's something I can do to implement this in my own project.  Again, it would need to:

1: Gray out the text of each list item/sub items.
2. Disallow any items from being selected or any mouse click event from being fired.
3. Allow scrolling, sorting and column-resizing

Thanks again for your work!

Andrew

 
New Post 11/12/2008 3:54 AM
  ori.cohen
4401 posts
1st Level Poster




Re: Scrolling a Disabled Listview 
Hello Andrew!

As there is no straightforward way to do this in MS WindowsForms, I cannot open an issue for implementing this behavior in VWG.

If you want to make this change yourself, what you could to is relatively simple:
-Create a new VWG custom control that inherits from the VWG ListView control and call it something like 'ListViewSemiDisabled'.
-Take the contents of the current ListView.xslt file's contents and copy it as is, to the xslt file of the new control you created. You can get to this file by downloading our sources from the download section here, and opening the 'Gizmox.WebGUI.Forms' project.
-Copy the ie.xslt and moz.xslt of the ListView control to your project and change their names to YourControlName.ie.xslt and YourControlName.moz.xslt accordingly.
-Open the YourControlName.xslt file for editing and change the content of the conditionals where the expression contains "not(../@Attr.Enabled='0')" or "not(@Attr.Enabled='0')", according to the client-side behavior you want to get.

If you want, you can go to the commercial services section of our website
here, and purchase a custom development package. This way you could request that we develop this new feature especially for you.

Regards,

Ori Cohen
The Visual WebGui team
 
Previous Previous
 
Next Next
  Forum  General Visual ...  Let's Chat Abou...  Scrolling a Disabled Listview
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS