User Profile & Activity

A Yousif Member
Page
of 29

I found a solution to this.  It looks like making the changes on the grid object passed to OnInitializePostBack doesn't trickle down to the base class call, i.e., base.OnInitializePostBack.

I changed the grid. calls to this., e.g., this.RootTable. and so on and that seems to work fine.  It would be nice if the grid object handled these the way it handles the sort, groupings and so on, rather than me having to put "workaround" code in.  I like the flexibility, but am not sure why you wouldn't include this as part of the table structure save/restore settings.  Thanks.

I found a free screen recording program which allowed me to attach the two videos so you can see.  It also shows some other stuff that happens that I just happen to run into today as well.  The first one shows the issues I ran into today and the second shows the issue in this thread.

Cool.  You used the mouse and I use the keyboard.  Note below the line highlighted with the mouse is highlighted just fine.  Below is supposed to be the line "This is line two using keyboard" which I highlighted using the keyboard.  After typing line three, I move the cursor with the arrow keys to the beginning of the line and then holding SHIFT I use the End key to hightlight the line after which it disappears.  I'm sure you'll be able to duplicate with the keyboard.  The mouse isn't always the most productive way to do things. ;)

 

This is line one

This is line two using mouse

 

This is line three

 

What software do you use to record that flash video?  It would be nice to do the same on this or other strange issues like this.

IE7.  See attachment for details.

Posted: August 26, 2009 1:30 PM

I wanted to report that I did get some custom stuff to work.  For example, this works:

"([reportRunStatusID] = 2) and ([dateSubmitted] <= [dataEndDate])" 

And this works as well:

"([reportRunStatusID] = 2) and ([dateSubmitted] >= '12 Aug 2009 12:29:14' and [dateSubmitted] <= '26 Aug 2009 12:29:14')"

I would still like to see detailed documentation on this please as I can't find all the available syntax for this.  Thank you.

Posted: August 26, 2009 11:27 AM

I'm also trying to find detailed documentation on what is and is not supported in the CustomConditionText.  I tried a SQL type condition below and got the error below.

"[reportRunStatusID] = 1 and [dateSubmitted] between '12 Aug 2009 10:24:23' and '26 Aug 2009 10:24:23'"

The expression contains unsupported operator 'Between'.

Posted: August 25, 2009 10:10 AM

I was referring to the Index.  Sorry I didn't clarify.  If you go to the Index and type in "webgrid class" and select it.  Once the topic comes up, page down past the Object Model to Remarks.  Click Special Features, which should be #15, and you get nothing.  I attached what I get with WebUI 9 help.

Posted: August 25, 2009 9:06 AM

That's nice, but it should still be available on every page or under some kind of dashboard/user control panel.  I still think it would make sense to have it in the upper left under User Profile where you show the user's profile on every page.  Thanks.

Posted: August 25, 2009 8:59 AM

Note that both in WebUI Studio 8 and 9, the documentation for Special Features under WebGrid is blank.  I think this is a prominent feature that should be highlighted under WebGrid.  I searched for a long time and couldn't find anything under the WebGrid regarding this.  It would also be helpful to add an index entry for conditional formatting.  Thank you.

I've verified that the key field does get destroyed and that restoring it does work.  So the basic solution is this:

    // remember this since the call to RetrieveStructure()
    // destroys it. So does the call to LoadTablesStructureFromXml
    // in our LoadGridUserLayout custom method
    string strKeyField = this.KeyField;

    // retrieve the underlying structure
    this.RetrieveStructure();

    // load, if any, the saved grid layout from
    // the database
    LoadGridUserLayout();

    // now restore the key field
    this.RootTable.DataKeyField = strKeyField;

Note that the KeyField property is our custom property which returns this.RootTable.DataKeyField.

All times are GMT -5. The time now is 7:49 AM.
Previous Next