User Profile & Activity

A Yousif Member
Page
of 29

Hello Handy,

Yes, you're right about implementing our own property.  I was just hoping we can just set the Checked property since it's already there and would make sense to leverage it rather than create something new.  I was hoping there was a client-side call that wasn't documented that we can leverage to do that.

Unfortunately we can't use your check box because it uses the standard check box that doesn't fit into our style and design.

Hi Glenn,

Yes, I tried to duplicate the issue in the sample but was not successful.

Hello Glenn,

Sorry for the late reply but I only had a chance to get back to this on Friday.  In the simple example it works as expected, so no problem there.  However, and I don't understand why it would not, but it doesn't work in our environment.

I updated, last week, to the latest patches/fixes via Update Manager.  Here are the DLL versions:

ISNet.dll - 3.0.5000.752
ISNet.WebUI.dll - 3.0.5000.752
ISNet.WebUI.WebCombo.dll - 4.0.7200.219

I can record a flash video to show you, but I can't post it publicly so I'd have to send it via email to you.  I guess send it directly to the support email and reference this thread?  Thanks.

Here's our current work around, however, it's not an acceptable solution due to the UI "flicker" caused by collapsing the drop down and then retracting it.  We need a client-side API that does the exact same thing as the workaround please and very, very soon.

oIsCbo.SetSelectedRowByValue(keyValue);
oIsCbo.ShowDropDown();
setTimeout(function() { oIsCbo.SetSelectedIndex(oIsCbo.SelectedIndex);setTimeout(function() { oIsCbo.HideDropDown();}, 200);}, 500);

Essentially we use SetSelectedRowByValue to select by key value which then also sets the correct SelectedIndex on the object.  We then show the drop down, set the selected index and then close the drop down.

If there's any way you can provide that we can manually drill into the WebCombo structure and update the data "under-the-hood" we'd prefer to do that.  This is why I tried the XmlNode which everthing was updated correctly but not posted back for whatever reason.  You probably store the data elsewhere but I can't find where.  It would be helpful if you can provide a "hook" to where we can do this.

 

Hi Andi,

You have to actually act on the undefined object.  My example above was just to show you that it IS undefined.  If you then act on the object, it'll cause an exception and therefore kill the sort.  So do something like this, for example, assuming oGrid is your grid object:

oGrid.AddInput("UserColumnMember", columnObject.ColumnMember);

If you put this line BEFORE the alert, the call will cause an exception when ColumnMember is underfined and will crash the call and never gets to the alert and therefore never finishes the routine.

And even if the sort still works due to no code possibly causing an exception, you need to let the development team know about this problem so they can fix it.  This property should be populated regardless of where the user is sorting.

If you create a function that's called as your OnColumnSort client-side handler and you try to access columnObject.ColumnMember when it's undefined, your method will crash and therefore crashes the sort routine altogether because the method never returns true.  This is because, as I explained, when called from the context menu, this object's member is undefined.

Creating a simple grid and using the sort isn't sufficient.  Use a simple javascript function like this and then sort using both the column header and the context menu:

    function OnColumnSort(controlId, columnObject)
    {
        alert(columnObject.ColumnMember);
    }

Of course make sure to assign this function to your grid's client side settings.

Handy,

I found a typo.  "Switch" is misspelled in "Swith to Grid View" with the "c" missing.

Hi Andi,

No, you're right.  I was incorrect, the columns are not set to hidden.  Sorry about that.  However, we would like to see the feature where a property specific to exporting would be available so we can include/exclude columns, for export, dynamically even if they're visible.

Our custom row checker/template columns is one example and our trailer column is another.  Thanks Andi.

Please request this as a feature, i.e., any non-visible columns at the time of export should not be included in the export.  Or, even better, would be to add a new property that can flag a column for export or not.

The columns being exported are already not visible, so I'm just removing them from the Columns collection prior to the base class.

Posted: March 9, 2010 10:06 AM

Thanks Handy.  I've implemented the ResetStatus on the grid client-side initialization and hopefully that will do the trick.

The text setting for customization works like we needed, so thank you for that too.

All times are GMT -5. The time now is 3:40 PM.
Previous Next