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

Editable grid with selectable cell

2 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Simon Channell
Top achievements
Rank 1
Simon Channell asked on 13 May 2013, 09:05 AM
I have a grid where one column contains a link button. Clicking on this button takes user to a new page.
The grid also has an edit column and an edit form template.
The edit does not fire when clicked.
What do I do to get the edit form to work?
This is the column definition
<MasterTableView CommandItemDisplay="Top" DataKeyNames="Unit_code" AllowMultiColumnSorting="True"
              EditMode="PopUp" InsertItemPageIndexAction="ShowItemOnCurrentPage" HierarchyDefaultExpanded="False">
            
              <Columns>
                  <telerik:GridEditCommandColumn HeaderText="Edit" HeaderStyle-Width="50px" ItemStyle-Width="50px"
                      HeaderStyle-HorizontalAlign="Left" ButtonType="LinkButton" UniqueName="unit_edit">
                  </telerik:GridEditCommandColumn>
                  <telerik:GridButtonColumn UniqueName="ColumnLinkCode" DataTextField="Unit_code"
                      HeaderText="Unit code" ButtonType="LinkButton">
                  </telerik:GridButtonColumn>
                  <telerik:GridBoundColumn HeaderText="Name" HeaderButtonType="TextButton" DataField="Unit_name"
                      UniqueName="Unit_name">
                  </telerik:GridBoundColumn>
                  <telerik:GridBoundColumn HeaderText="Description" HeaderButtonType="TextButton" DataField="unit_description"
                      UniqueName="unit_description">
                  </telerik:GridBoundColumn>
                  <telerik:GridNumericColumn HeaderText="Credits" DecimalDigits="0" DataField="num_credits"
                      UniqueName="num_credits">
                  </telerik:GridNumericColumn>
              </Columns>
 
These are the client settings
<ClientSettings EnablePostBackOnRowClick="false" EnableRowHoverStyle="false">
              <Selecting AllowRowSelect="True" CellSelectionMode="SingleCell" />
               <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true">
              </Scrolling>
          </ClientSettings>

2 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 16 May 2013, 06:42 AM
Hello Simon,

I was not able to reproduce the issue. I prepared a small sample based on your code and it is working properly on my side. Could you please give it a try and let me know how it differs from your real setup? Additionally could you confirm you do not receive any JavaScript error when edit button is clicked?

Greetings,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Simon Channell
Top achievements
Rank 1
answered on 19 Jun 2013, 08:52 AM
I have resolved my problem by having my edit/insert form in a separate pane from the grid.
I may try your solution if I encounter something similar again.
Tags
Grid
Asked by
Simon Channell
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Simon Channell
Top achievements
Rank 1
Share this question
or