locked
Can we look a gift horse in the mouth in good concience? RRS feed

  • Question

  • User-630802948 posted

    For the menu item at least it looks like its a better idea to find a pure CSS implementation of an unordered list and add the runat attribute for server-side management than to waste days and perhaps weeks trying to force-fit this poor implementation that is not "friendly" at all.

    I usually don't look a gift horse in the mouth and I admire the effort but this horse is cripple and has some kind of disease the browsers do not like. This is one horse that is best led out to pasture and shot in the head to put it out of its misery.

    Friday, April 25, 2008 4:37 PM

All replies

  • User1191518856 posted

     [:D]

    I think the Css Adapters were released as a "quick fix" for a demanding audience. They were never intended to be complete or fully-featured. And for most schoolbook examples, they work ok but if you need more/better control, you're probably better off doing your own implementation or modifications.

    If you look at the default rendering code for GridView/TreeView/Menu, it is simply horrible. For instance, TreeView nests each node within its own table.

    Now, what one would hope for is that Microsoft changes the default rendering of all their data controls, to make a more light-weight CSS integration. And if this was integrated in the core classes, it would be much more of a normal behavior than trying to force the elephant to go to a Weight-watchers meeting ;-)

    Friday, April 25, 2008 6:15 PM
  • User1549770290 posted

    If it weren't for the adapters though, even though I am new to them, I would have to roll my own code from the server that emits the menu css I want based of my dynamic data, so I say even though I am still having some problems getting it to work, I have only been at it for a day and a half, and to roll my own code would have taken alot longer. So I am grateful to the contributors for their work.

    Thank You!

    Friday, April 25, 2008 6:45 PM