User Profile & Activity

James Member
Page
of 14
Posted: September 2, 2009 7:19 AM

George, assuming that you keep the page index and the row value to be reselected, you can do the following.

To go to a specific page, use

grid.GotoPage(pageIndex);

To go to a specific row by key value (assuming the row existed in the page), you can use:

var row = grid.RootTable.GetRowByKeyValue("ALFKI");
if (row != null)
     row.Select();

Hope this helps,
James.
 

Posted: September 2, 2009 12:38 AM

FYI, although the solution above will work for display scenario, please be aware that it won't work very well when used in editing scenario, especially during keyboard navigation. It also won't work properly with Column Freezing enabled.

The best and suggested way to hide/remove a column is through a FlyPostBack request, so that will ensure the Grid to take account all settings properly when editing and other advanced features are used.


Posted: September 1, 2009 6:42 AM

Mark, the ISDataSource actually retrieves schema from strongly-typed DataSet as well, so yes, you can have ISDataSource to access your DataSet automatically.

I understand that you may want to bind the Scheduler to dataset using primitive way such as scheduler.DataSource = ds. I'm interested to hear why you believe that it could be useful? Or perhaps I don't get you properly on your DataSet question.

Thanks!


Posted: September 1, 2009 6:30 AM

Calling the alert in a timeout, eg, setTimeout(function() { alert('Some info'), 10) should resolve the problem. 

The 'arrow' was displayed because alert is called first before the WebCombo finished its initialization. Hope this helps.

Posted: September 1, 2009 6:16 AM

Zahid, not sure if this will help, but you can try to reduce the timeout length that invokes the method, from 500 to 50. See if that reduces or eliminates the flickering issue.

Posted: August 31, 2009 10:53 PM

George, I'm glad the tips works out for you.

If I understand correctly, the WebGrid itself used a fixed table-layout to maintain the columns width accurately, while the standard grid doesn't. So that's why it requires a fixed layout style when hosted inside another "table". 

AFAIK, this requirement is needed per told in browsers specification, and not really a sole workaround in IS Grid itself. 

Thanks!

Posted: August 31, 2009 9:56 PM

George,

To display the table layout properly, simply add table-layout: fixed in your table style. The following code would do it:

<table style="table-layout: fixed; width: 500px">
    <tr>
         <td style="width: 200px">
    ...
</table>

You'll need to add width to the table and each column as well, you can also use the mix of pixel and percentage width in the cells.

Hope this helps,
James.

When i have columns outside the viewable area and the horizontal scrollbar is enabled. Then when i select the next row, the horizontal scroll bar flickers. that is, it goes to position 0 (zero) and comes back to appropriate position to focus the highlighted cell. I want to keep the scroll bar fixed.

 

Any idea of this? 

 

Thanks

Zahid 

 

 Zahid, do you have column freezing enabled? The row selection and cell selection should be running synchronously so the horizontal scrolling/flickering shouldn't be noticed. 

Posted: August 30, 2009 4:13 AM

Matt, the evaluation message will appear in trialmode. However, it shouldn't cause problem or javascript errors.

Do you have code that performs something during initialization? Perhaps the use of RegisterStartupScript or equivalents.

Posted: August 28, 2009 10:54 PM

Matt, glad to hear that you made it 

- James

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