Radgrid EditMode="EditForms"

8 posts, 0 answers
  1. Dru Snyder
    Dru Snyder avatar
    4 posts
    Member since:
    Jan 2010

    Posted 29 Nov 2010 Link to this post

    I have a radgrid that uses the default EditMode "EditForms".  I am trying to make a recording and it doesn't record anything when I click the "Insert" button on the EditForm.  Is this a limitation or a bug or did I set something up incorrectly?

    Thanks.
  2. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 30 Nov 2010 Link to this post

    Hi Dru,

    Can you reproduce the problem on this online example? If so, please elaborate what steps are you recording and which of them are failing.

    Sincerely yours,
    Pavel
    the Telerik team
    Interested in Agile Testing?

    Tune in Wednesday, December 1st for a very special Webinar focused on Agile Testing. Click here to register for free!
  3. Dru Snyder
    Dru Snyder avatar
    4 posts
    Member since:
    Jan 2010

    Posted 30 Nov 2010 Link to this post

    It worked on your online example.  So I dug a little more and tried to strip away things from my radgrid to see if any of those things were causing a problem.  It appears that this is the culprit.

    <

     

     

    ClientSettings>

     

     

     

    <Scrolling AllowScroll="True" UseStaticHeaders="True" />

     

     

     

    </ClientSettings>

     


    As soon as I removed that, it worked.  I'd rather keep this though and still have the test work.  The problem occurs when I try to insert a record.  It records everything including the data entry, except it does not record the actual click of the insert button.  I haven't tested update, but I assume it would have the same problem.  This grid just doesn't have a need for an update command.

    Here is the radgrid code in it's entirety.

    <

     

     

    telerik:RadGrid ID="rgridPrograms" runat="server" AutoGenerateColumns="False"

     

     

     

    GridLines="None" Height="200px" Width="268px" OnItemCommand="rgridPrograms_ItemCommand"

     

     

     

    OnNeedDataSource="rgridPrograms_NeedDataSource">

     

     

     

    <ClientSettings>

     

     

     

    <Scrolling AllowScroll="True" UseStaticHeaders="True" />

     

     

     

    </ClientSettings>

     

     

     

    <MasterTableView CommandItemDisplay="Top" DataKeyNames="TEXT1" EditMode="EditForms">

     

     

     

    <CommandItemTemplate>

     

     

     

    <div style="float: left; padding: 8px 5px 10px 10px;">

     

    Programs

     

     

    </div>

     

     

     

    <div style="float: right; padding: 8px 10px 10px 5px;">

     

     

     

    <asp:LinkButton ID="LinkButton4" runat="server" CommandName="InitInsert"><img style="border:0px" alt="" src="images/icons/add.png" /> Add New</asp:LinkButton>

     

     

     

    </div>

     

     

     

    </CommandItemTemplate>

     

     

     

    <EditFormSettings>

     

     

     

    <EditColumn UniqueName="EditCommandColumn" ButtonType="ImageButton" CancelImageUrl="~/images/icons/cancel.png"

     

     

     

    UpdateImageUrl="~/images/icons/accept.png" InsertImageUrl="~/images/icons/accept.png" />

     

     

     

    </EditFormSettings>

     

     

     

    <Columns>

     

     

     

    <telerik:GridBoundColumn DataField="TEXT1" HeaderText="Number">

     

     

     

    <HeaderStyle Width="60px" />

     

     

     

    <ItemStyle Width="60px" />

     

     

     

    </telerik:GridBoundColumn>

     

     

     

    <telerik:GridBoundColumn DataField="TEXT2" HeaderText="Description">

     

     

     

    </telerik:GridBoundColumn>

     

     

     

    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ImageUrl="~/images/icons/remove.png"

     

     

     

    ConfirmText="Are you sure you want to remove this program?" ConfirmTitle="Confirm Remove">

     

     

     

    <HeaderStyle Width="40px" />

     

     

     

    <ItemStyle Width="40px" />

     

     

     

    </telerik:GridButtonColumn>

     

     

     

    </Columns>

     

     

     

    </MasterTableView>

     

     

     

    </telerik:RadGrid>

     

  4. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 01 Dec 2010 Link to this post

    Hi Dru,

    Thank you for the additional details. I was able to reproduce the problem when scrolling and static headers are enabled for the Grid. We will fix this issue for the next service pack. As a temporary solution I can suggest you to disable the Grid translator when recording this step. I have also updated your Telerik points as a small token of gratitude for bringing this issue to our attention.

    Best wishes,
    Pavel
    the Telerik team
    Interested in Agile Testing?

    Tune in Wednesday, December 1st for a very special Webinar focused on Agile Testing. Click here to register for free!
  5. Balakrishna Reddy
    Balakrishna Reddy avatar
    37 posts
    Member since:
    Oct 2012

    Posted 08 Apr 2013 Link to this post

    Hi,

    I want to display spaces between items in edit form,
    ? Plese help me how to do..
  6. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 08 Apr 2013 Link to this post

    Hello Balakrishna,

    This forum is dedicated to the support of test automation via Telerik Test Studio. It sounds like you need assistance programming our RadGrid control. You will find help using this control in your web application in our Grid forum here:
    http://www.telerik.com/community/forums/aspnet-ajax/grid.aspx

    Greetings,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  7. Balakrishna Reddy
    Balakrishna Reddy avatar
    37 posts
    Member since:
    Oct 2012

    Posted 09 Apr 2013 Link to this post

    Hi,
       i am getting like this..My problem is that i want spaces between PRODUCTTYPE , MEDIATYPE and UNTTYPE...So please help me to sort it out..please............
    Grid is set as editmode="edotforms"...
     

    Add new record Refresh
      MediaTypeID ProductType MediaType UnitType Active  
     
    No records to display.

     
  8. Balakrishna Reddy
    Balakrishna Reddy avatar
    37 posts
    Member since:
    Oct 2012

    Posted 09 Apr 2013 Link to this post

    Hi,
       This is the answer..if we increase the height of the editform table..we will get spaces..

    <EditFormSettings>                   
                        <FormTableStyle Height="120px"></FormTableStyle>
     </EditFormSettings>
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!