|
Rank: Member Groups: Member
Joined: 3/3/2008 Posts: 17
|
I have been working with the Grid control. It had been working fine. I now get a script error:
'this.aajv[...]' is null or not an object URL:eoprv://localhost/main.html
and
Object doesn't support this property or method URL:eoprv://localhost/main.html
This occurs when trying to view in a browser and when selecting Preview in your Edit Grid.
Tried un-installing and re-installing Essential Objects and removing from toolbox and reloading without success.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
That appears to be a bug. Which version do you use? Do you get the same error when viewing the built-in templates?
Thanks
|
|
Rank: Member Groups: Member
Joined: 3/3/2008 Posts: 17
|
Update: I had removed a column from the Grid. If I put it back in then I don't get the script error.
The column was a static column named pictures. It does not show up in the preview now nor is it rendered in design. Hope this helps..
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi Steve,
Can you post the defintion for the Grid both with and without the column in question? Once we have that, we will try the same on our end and see if we can reproduce the error.
Thanks
|
|
Rank: Member Groups: Member
Joined: 3/3/2008 Posts: 17
|
Version 5.0.51.2.
WITH THE COLUMN (No Script Error):
<eo:Grid ID="GridInventory" runat="server" BorderColor="Brown" BorderStyle="Groove" BorderWidth="3px" ColumnHeaderHeight="26" FixedColumnCount="5" Font-Bold="False" Font-Italic="False" Font-Names="Verdana" Font-Overline="False" Font-Size="X-Small" Font-Strikeout="False" Font-Underline="False" GridLineColor="Black" GridLines="Both" Height="555px" ItemHeight="19" PageSize="25" Width="483px" ClientSideOnItemSelected="GetGridItem" PagerLabelTemplate="" CssClass="GridStyle1" style="left: 102px; top: -419px" > <ItemStyles> <eo:GridItemStyleSet> <ItemStyle CssText="background-color: white" /> <ItemHoverStyle CssText="background-color:#f7778a;background-repeat:repeat-x;" /> <SelectedStyle CssText="background-color:#d54461;background-repeat:repeat-x;" /> <CellStyle CssText="padding-left:8px;padding-top:2px; color:#336699;" /> </eo:GridItemStyleSet> </ItemStyles> <ColumnTemplates> <eo:TextBoxColumn> <TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma" /> </eo:TextBoxColumn> <eo:StaticColumn> </eo:StaticColumn> <eo:TextBoxColumn> </eo:TextBoxColumn> <eo:ButtonColumn> </eo:ButtonColumn> </ColumnTemplates> <FooterStyle CssText="padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;" /> <ColumnHeaderTextStyle CssText="background-color:brown;color:brown;" /> <Columns> <eo:RowNumberColumn DataField="InCode" HeaderText="Item" Name="Item" Width="40"> <CellStyle CssText="color:black;padding-left:10px;text-align:center;" /> </eo:RowNumberColumn> <eo:StaticColumn DataField="InDescription" HeaderText="Description" Name="InDescription" Text="" Width="275"> <CellStyle CssText="color:black;padding-left:5px;" /> </eo:StaticColumn> <eo:StaticColumn DataField="InRentPrice" DataFormat="{0:C}" HeaderText="Cost" Name="Cost" Text="" Width="75"> <CellStyle CssText="color:black;font-size:X-Small;padding-right:10px;text-align:right;" /> </eo:StaticColumn> <eo:ButtonColumn ButtonText="Add" ButtonType="PushButton" DataField="" HeaderText="Add" MinWidth="10" Name="btnPushButtonAdd" Width="60"> <CellStyle CssText="color:black;font-size:XX-Small;padding-left:1px;text-align:center;" /> </eo:ButtonColumn> <eo:StaticColumn Width="1"> </eo:StaticColumn> </Columns> <ColumnHeaderStyle CssText="background-color:brown;border-bottom-color:brown;border-bottom-style:solid;border-left-color:brown;border-left-style:solid;border-right-color:brown;border-right-style:solid;border-top-color:brown;border-top-style:solid;color:white;font-weight:bold;padding-left:8px;padding-top:2px;" /> <ColumnHeaderHoverStyle CssText="background-color:brown;border-bottom-color:brown;border-bottom-style:solid;border-left-color:brown;border-left-style:solid;border-right-color:brown;border-right-style:solid;border-top-color:brown;border-top-style:solid;color:white;font-weight:bold;padding-left:8px;padding-top:2px;" /><ContentPaneStyle CssText="" /> </eo:Grid>
WITHOUT THE COLUMN (Script Error): <eo:Grid ID="GridInventory" runat="server" BorderColor="Brown" BorderStyle="Groove" BorderWidth="3px" ColumnHeaderHeight="26" FixedColumnCount="5" Font-Bold="False" Font-Italic="False" Font-Names="Verdana" Font-Overline="False" Font-Size="X-Small" Font-Strikeout="False" Font-Underline="False" GridLineColor="Black" GridLines="Both" Height="555px" ItemHeight="19" PageSize="25" Width="483px" ClientSideOnItemSelected="GetGridItem" PagerLabelTemplate="" CssClass="GridStyle1" style="left: 102px; top: -419px" > <ItemStyles> <eo:GridItemStyleSet> <ItemStyle CssText="background-color: white" /> <ItemHoverStyle CssText="background-color:#f7778a;background-repeat:repeat-x;" /> <SelectedStyle CssText="background-color:#d54461;background-repeat:repeat-x;" /> <CellStyle CssText="padding-left:8px;padding-top:2px; color:#336699;" /> </eo:GridItemStyleSet> </ItemStyles> <ColumnTemplates> <eo:TextBoxColumn> <TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma" /> </eo:TextBoxColumn> <eo:StaticColumn> </eo:StaticColumn> <eo:TextBoxColumn> </eo:TextBoxColumn> <eo:ButtonColumn> </eo:ButtonColumn> </ColumnTemplates> <FooterStyle CssText="padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;" /> <ColumnHeaderTextStyle CssText="background-color:brown;color:brown;" /> <Columns> <eo:RowNumberColumn DataField="InCode" HeaderText="Item" Name="Item" Width="40"> <CellStyle CssText="color:black;padding-left:10px;text-align:center;" /> </eo:RowNumberColumn> <eo:StaticColumn DataField="InDescription" HeaderText="Description" Name="InDescription" Text="" Width="275"> <CellStyle CssText="color:black;padding-left:5px;" /> </eo:StaticColumn> <eo:StaticColumn DataField="InRentPrice" DataFormat="{0:C}" HeaderText="Cost" Name="Cost" Text="" Width="75"> <CellStyle CssText="color:black;font-size:X-Small;padding-right:10px;text-align:right;" /> </eo:StaticColumn> <eo:ButtonColumn ButtonText="Add" ButtonType="PushButton" DataField="" HeaderText="Add" MinWidth="10" Name="btnPushButtonAdd" Width="60"> <CellStyle CssText="color:black;font-size:XX-Small;padding-left:1px;text-align:center;" /> </eo:ButtonColumn> </Columns> <ColumnHeaderStyle CssText="background-color:brown;border-bottom-color:brown;border-bottom-style:solid;border-left-color:brown;border-left-style:solid;border-right-color:brown;border-right-style:solid;border-top-color:brown;border-top-style:solid;color:white;font-weight:bold;padding-left:8px;padding-top:2px;" /> <ColumnHeaderHoverStyle CssText="background-color:brown;border-bottom-color:brown;border-bottom-style:solid;border-left-color:brown;border-left-style:solid;border-right-color:brown;border-right-style:solid;border-top-color:brown;border-top-style:solid;color:white;font-weight:bold;padding-left:8px;padding-top:2px;" /><ContentPaneStyle CssText="" /> </eo:Grid>
Hope this helps.
|
|
Rank: Member Groups: Member
Joined: 3/3/2008 Posts: 17
|
FOund the problem. Grid does not reduce column count in Edit Grid. If I reduce the count to 4 the error goes away.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Steve Peters wrote:Grid does not reduce column count in Edit Grid Can you elaborate?
|
|
Rank: Member Groups: Member
Joined: 3/3/2008 Posts: 17
|
If you delete a column then when you select Edit Grid and look at the FixedColumnCount the count was still 5. Changing it to 4 solved the problem.
But, now the grid does not fire the ClientSideOnItemSelected javascript code. I'm working on it.
|
|
Rank: Member Groups: Member
Joined: 3/3/2008 Posts: 17
|
ClientSideOnItemSelected is firing. I changed the destination in my code and forgot. Sorry.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
This issue has been fixed in build 2007.2.51.
|
|