This is a migrated thread and some comments may be shown as answers.

[Solved] Add New Item Missing from top of grid

6 Answers 153 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josh Winkler
Top achievements
Rank 1
Josh Winkler asked on 29 Oct 2009, 04:04 PM
We upgraded our controls from the 2 year old Radgrid dll to using the telerik.web.ui and now we have lost the add new item from the top of the grids. Please let us know what has changed. I have tried several examples from your site and cant get it to show back up. Thanks.

<

 

telerik:RadGrid runat="Server" ID="InfoGrid" Skin="Office2007" AutoGenerateColumns="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true">

 

 

 

<SelectedItemStyle CssClass="SelectedStyle" />

 

 

 

<MasterTableView CommandItemDisplay="TopAndBottom">

 

 

 

<CommandItemTemplate>

 

 

 

<asp:LinkButton runat="Server" ID="btnAdd2" Text="Add Incentive" CommandName="InitInsert" />

 

 

 

</CommandItemTemplate>

 

 

 

 

<Columns>

 

 

 

<telerik:GridBoundColumn UniqueName="IncentiveID" ReadOnly="true" Display="False" DataField="IncentiveID" ForceExtractValue="InEditMode" />

 

 

 

<telerik:GridBoundColumn HeaderText="Details" DataField="Incentive" UniqueName="Incentive" />

 

 

 

 

</Columns>

 

 

 

 

<NoRecordsTemplate>There Are Currently No Incentives</NoRecordsTemplate>

 

 

 

</MasterTableView>

 

 

 

</telerik:RadGrid>

 

 

6 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 29 Oct 2009, 04:14 PM
Hello Josh,

I don't see anything wrong in your code - the CommandItem row should be displayed as expected.
May I ask you to provide a runnable demo so we can debug it locally?

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Josh Winkler
Top achievements
Rank 1
answered on 29 Oct 2009, 05:59 PM
Can you just try and load the code below into an html document and view in IE8? This is what is being rendered from the previous code i sent you. I see the code block for adding new items but it does not show up in the broswer. It shows up in the Chrome and FireFox but not in IE8. The lines that are bold is what is stopping IE from displaying the header and footer. Please let us know about this.THanks.


<div id="ctl00_ctl00_m_C1_Fac_ExpansionGrid" class="RadGrid RadGrid_Office2007">
 
<table cellspacing="0" class="rgMasterTable" border="0" id="ctl00_ctl00_m_C1_Fac_ExpansionGrid_ctl00" style="width:100%;table-layout:auto;empty-cells:show;">
<colgroup>
<col style="display:none;"/>
<col />
<col />
<col />
<col />
<col />
<col />
<col />
<col style="display:none;"/>
</colgroup>
<thead>
<tr class="rgCommandRow">
<td class="rgCommandCell" colspan="7">
                        
                        <a id="ctl00_ctl00_m_C1_Fac_ExpansionGrid_ctl00_ctl02_ctl00_btnAddExpansion" href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$ctl00$m$C1$Fac$ExpansionGrid$ctl00$ctl02$ctl00$btnAddExpansion&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true))">Add Past Expansion</a>
                    </td>
</tr><tr>
<th scope="col" class="rgHeader" style="display:none;">&nbsp;</th><th scope="col" class="rgHeader">Month</th><th scope="col" class="rgHeader">Year</th><th scope="col" class="rgHeader">Type</th><th scope="col" class="rgHeader">Sq. Ft.</th><th scope="col" class="rgHeader">Purpose of expansion</th><th scope="col" class="rgHeader">&nbsp;</th><th scope="col" class="rgHeader">&nbsp;</th><th scope="col" class="rgHeader" style="display:none;">&nbsp;</th>
</tr>
</thead><tfoot>
<tr class="rgCommandRow">
<td class="rgCommandCell" colspan="7">
                        
                        <a id="ctl00_ctl00_m_C1_Fac_ExpansionGrid_ctl00_ctl03_ctl01_btnAddExpansion" href="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$ctl00$m$C1$Fac$ExpansionGrid$ctl00$ctl03$ctl01$btnAddExpansion&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, true))">Add Past Expansion</a>
                    </td>
</tr>
</tfoot><tbody>
<tr class="rgRow" id="ctl00_ctl00_m_C1_Fac_ExpansionGrid_ctl00__0">
<td style="display:none;">74403</td><td>May</td><td>2007</td><td>Added</td><td>15000</td><td>added 15000 of warehouse space</td><td style="height:16px;width:52px;">
                                <input type="image" name="ctl00$ctl00$m$C1$Fac$ExpansionGrid$ctl00$ctl04$Delete" id="ctl00_ctl00_m_C1_Fac_ExpansionGrid_ctl00_ctl04_Delete" src="../Images/Misc/DeleteBtn2.gif" style="border-width:0px;" />
                            </td><td style="width:52px;"><input type="image" name="ctl00$ctl00$m$C1$Fac$ExpansionGrid$ctl00$ctl04$EditButton" id="ctl00_ctl00_m_C1_Fac_ExpansionGrid_ctl00_ctl04_EditButton" title="Edit" src="/bcl0100/Images/Misc/ModifyBtn.gif" alt="Edit" style="border-width:0px;" /></td><td style="display:none;">
                                
                            </td>
</tr>
</tbody>
 
</table><input id="ctl00_ctl00_m_C1_Fac_ExpansionGrid_ClientState" name="ctl00_ctl00_m_C1_Fac_ExpansionGrid_ClientState" type="hidden" />
</div>
0
Josh Winkler
Top achievements
Rank 1
answered on 29 Oct 2009, 06:59 PM
Found the problem. We were running the site in IE7 mode and this is why the add link was hidden. i removed this line of code and the link showed right up.

<meta http-equiv="X-UA-Compatible" content="IE=7" />
0
Henry
Top achievements
Rank 1
answered on 05 Nov 2009, 04:45 PM
We have the same issue with the rgCommandRow and/or rgCommanCell disappearing when we used the IE7 Compatible meta tag.

Along the same lines, the content in a radGrid with rgGroupHeader rows (collapsible) all disappears in the browser. 

The meta tag in question is necessary at this time to prevent a host of other issues, so we are looking for a solution to the radgrid issues. Please help!


0
Daniel
Telerik team
answered on 05 Nov 2009, 05:44 PM
Hello Henry and Josh,

It seems that I'm missing something obvious since I'm still unable to reproduce this problem. Please, either provide step by step instructions or a runnable demo so I can recreate your scenario.

The only idea that crosses my mind at this point is that you use a version of RadControls which doesn't support Internet Explorer 8. Note, that we introduced support for this browser in RadControls for ASP.NET AJAX Q1 2009 SP1 (version 2009.1.402)

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Henry
Top achievements
Rank 1
answered on 05 Nov 2009, 06:06 PM
We are using an older version -- we're upgrading to see if that resolves our issues. I appreciate how quickly you responded.
Tags
Grid
Asked by
Josh Winkler
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Josh Winkler
Top achievements
Rank 1
Henry
Top achievements
Rank 1
Share this question
or