User Profile & Activity

John Bonin Member
Page
of 18
Posted: September 25, 2012 7:06 AM

Thanks Yudi,

   Yes please let me know when Task #1263 gets updated.  As for resizing, it must have been a caching problem becuase today the size and width are working properly!  The joys of programming...

 

Thanks for help

John

Posted: September 25, 2012 7:04 AM

Hi Bernad,

 

   That is the code I am using (converted to VB) but I get the following error at tb.ToolCommands.RemoveAt(2):

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index 

I changed it to tb.ToolsCommands.RemoveAt(0) and even tried tb.ToolsCommands.RemoveAt(1), it removed the buttons, but the editor was messed up and you ciouldn't enter any text.

I am using the ToolBarMode="Minimal", if I change it to ToolBarMode="Standard" then your code works, but then I would have to remove all other buttons not needed.

Attached is the page I am using.

Thanks

Posted: September 21, 2012 8:41 AM

Hi Bernard and thanks for all your help, but it still does not work.  I've decided to drop this and just change CellClickAction to CellSelect making the user click on the arrows to view preview row.

 

Again Thanks for all your help...

Posted: September 19, 2012 7:40 AM

Hi Bernard,

Almost there but errors still occur.  Once you expand the preview row, if you click on a column header to sort the table I get an error:

'null' is null or not an object  807200101, line 7 character 123668. the statement it breaks on is v59a81.loaded=true;

Also in Firefox, when you sort a column the 1st row is expanded, clicking on the collapse arrow doesn't collapse the preview row and if you click on the header again, the grid no longer response to anything.  No error is shown.

I'm using webgrid .101 (2012 R1).

Thanks

 

Posted: September 19, 2012 6:55 AM

Hi Handy,

 

 Yes please put it a high priority, this is a problem with our Firefox users.

 

Thanks

Posted: September 18, 2012 1:25 PM

Any resolution of this issue?  I'm still getting this problem with Firefox and the 2012 R1 webgrid 8 product.

Posted: September 18, 2012 10:41 AM

We are little behind, but will this release still work in VS 2008? 

Posted: September 18, 2012 7:21 AM

On my system, the preview icon and the area around the icon is colIndex = 0, the preview row if collapsed is cellIndex=0. 

If I click to expand the preview row and then click on a header to sort, the header row is now colIndex=1, thus the JS code fails.  Here is my layout settings:

<LayoutSettings AllowFilter="Yes" AllowGrouping="Yes" AllowSorting="Yes" PagingMode="VirtualLoad" VirtualLoadMode="Custom"
                                GroupByBoxVisible="False" AllowColumnFreezing="No" AllowColumnMove="Yes" AllowExport="No" AlwaysShowHelpButton="false"  
                                AllowSelectColumns="Yes" RowLostFocusAction="NeverUpdate" AutoFilterSuggestion="True" FilterBarVisible="false"  
                                HideColumnsWhenGrouped="No" InProgressUIBehavior="ChangeCursorToHourGlass" PagingSize="50"  
                                ShowFilterStatus="True" RestoreRowSelection="RootTableOnly" VirtualPageSize="50" PagingExportMode="ExportAllData" 
                                AllowMultipleSelection="No" GroupRowInfoFormatDefault="[caption] : [value] ([count])" ColumnFooters="Yes" 
                                HeaderClickAction="SortSingle" ShowColumnAction="true" RowHeaders="No" CellClickAction="RowSelect">               
                                <FreezePaneSettings ShowInContextMenu="True" MaxFrozenColumns="3" AbsoluteScrolling="True" />
                                <TextSettings>
                                    <TextItems>
                                        <ISWebGrid:WebGridTextItem TextItem="CommonText/Refresh" TextValue="Refreshing RDRs" />
                                        <ISWebGrid:WebGridTextItem TextItem="CommonText/NoData" TextValue="There are no RDRs to display, modify the filters above to view RDRs" />
                                    </TextItems>
                                </TextSettings>
                                <AlternatingRowStyle Font-Names="Verdana" BackColor="#ECE9D8" Font-Size="8pt" HorizontalAlign="Center" />
                                <RowStyle Font-Names="Verdana" Font-Size="8pt" HorizontalAlign="Center" BackColor="#c9c9c9" />
                                <FooterStyle Font-Names="Verdana" BorderSettings-Left-Color="White" BorderSettings-Top-Color="White" />
                                <StatusBarStyle BaseStyle="Normal" Font-Bold="True" Font-Size="9pt">
                                </StatusBarStyle>
                                <ClientSideEvents OnAfterInitialize="OnAfterInitialize" OnRowSelect="WebGrid1_OnRowSelect" 
                                    OnUnhandledError="WebGrid1_OnUnhandledError" OnResponse="doLoad" OnCellClick="WebGrid1_OnCellClick" /> 
                            </LayoutSettings>
Posted: September 17, 2012 8:08 AM

Hi Bernard,

   That helps but still problems exist.  The code works until you click on the header row to sort a column.  Put an alet(cellIndex) in the ObCellClick event, run the page and click on a column to sort by the column, notice that the OncellClick event doesn't run (this is how it should be), now click on any row to view the preview row, then go back and click on a header to sort  and notice that the OnCellClick event runs and the cellIndex = 1, I wouldn't think that this event would fire at this time since you are on a header and not a row.  if you look at the rowIndex, when you click on the header the rowIndex is what ever the value was when you clicked on a record row.

Also I've notice that the cellIndex of the wg_prexp.gif and wg_prcol.gif is actually 0. 

 

Thanks for your help

Posted: September 14, 2012 1:11 PM

Hi Bernard,

I have a follow up question that may be associated with this.  If I happen to either 1) add a new column from the context menu or 2) click on a column header to sort that column only after at least viewing a preview first, it appears that the RowSelect and CellSelect events fire and the above code causes the 1st record to always expand.  I also get a JS error on the OnCellClick function listed above on the line If (el.nameProp == ...), with description of Object required. 


Thanks

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