User Profile & Activity

A Yousif Member
Page
of 29
Posted: November 5, 2009 4:32 PM

Well, I had to get a little creative, but I've found a work-around for now.  I basically use multiple columns with my "id" column hidden.  I did notice that the first column, in Unbound mode, must be the visible one.  So my second column is rendered hidden and contains my value/id as its text.  Of course it can only be retrieved via the cells collection in case you're wondering.

The exmaple isn't anywhere close to my scenario. You attached a simple example that doesn't duplicate anything I've described above.  Please read the thread and take note of the issues, in particular, where I mention adding a control dervied from WebControl that handles its own events as opposed to having that control derive from UserControl.

Please re-investigate and provide more accurate solution.

[Edited by Moderator: Removed unnecessary languages per the agreed SLA] 

 

Posted: November 5, 2009 9:09 AM

Wow, that's horrible.  You guys need to add this feature for bound combo boxes.  How can you force the user to post back when they may have an application that doesn't need it for small data sets?  Also, you need to add the ability to have value/text pairing in unbound combo boxes.  I mean this is a simple thing that's easily achieved with an asp.net combo and an html combo.

Where did I mention WebToolBar?  I believe I've clearly stated WebMenuBar.

I'm not sure I understand what you mean by where.  Our custom grid class does take IsPostBack into consideration along with other aspects, i.e., if it's a fly post back or a custom property and so on.

I can send you the entire class code, but would like to do that privately since it's proprietary code.  I'll send an email to tech support with this thread referenced.

I've seen no feedback on this issue.  Is anyone looking at this?  Have you duplicated the problem?  Note that this problem doesn't exist if the custom control derives from UserControl.  But if you derive from WebControl and do your own event handling, it then interferes with MenuCommandClickEventHandler for whatever reason.

I got around this problem by changing our custom control to a UserControl rather than a web control.  But by doing that, it is no longer available in the Toolbox at design time.

 

Hello Handy,

I'm not sure what you mean by "a little different with yours" other than you can replicate it but at a different place in the JavaScript code?

Any how, we really need this fixed because we need to use the Reset to also reset our grid back to its default settings.  The reason we need to use the Reset is because, at the moment, we can't customize this context menu.

How soon will you have the feature to allow customization of the column context menu?  We can really use this.  Thank you.

I've attached flash videos to see the problem in action.  Hopefully that will make the problem more clear.  The sequence is in grid-column-dynamic:

  • The grid is refreshed as it is with no issues
  • I then remove the Value column from our database structure for the grid
  • I refresh the grid and the rows/column correctly go away on the update but the column header stays
  • I then put restore the column in our database grid definition
  • I refresh the grid and the rows are back

The grid-column-dynamic-page-refresh sequence shows how it behaves when the column is added.  Note in this sequence that it's fine when the page is refreshed.

  • all columns there first.  I remove the Value column and refresh the page.  Works great.
  • now I add the column back and refresh the grid.  When it comes back, it's off to the right and no column header.
  • I refresh the page which works great

 

I updated the flash recording so I can make it public.  Attached is the recording with no audio.  But here's an explanation for what happens that you should be able to follow.

  • Grid load with some columns visible and some not
  • Select columns -> Reset fails
  • Debug shows it fails because ve9945.GetElement() returns null into v82c92.  Note the Name property of ve9945 shows the name of the first column that's not selected (contactUserTypeID) to be visible
  • I go back to the grid after failure and select the contactUserTypeID to be visible and apply the changes
  • I try the Reset again but it fails again but this time at the next non-visible column, i.e., contactUserValueID which would keep happening unless I select all the non-visible columns
  • So I then select all the non-visible columns to be visible and apply the changes
  • Now, with all the columns visible, the Reset works fine

 

I have a flash video that shows this issue but I don't want to post it publicly.  Is there a private way to provide you with files?

All times are GMT -5. The time now is 1:50 AM.
Previous Next