Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Grid > RadGrid EditForm and RadDatePicker

Answered RadGrid EditForm and RadDatePicker

Feed from this thread
  • Posted on Feb 9, 2012 (permalink)

    Hello,

    I've a strange issue. I'm using a radGrid with editForm for editing and updating my records.
    I've (single) row-selection enable and also keyboard support enabled.
    In my EditForm I've placed a RadDatePicker. When records exists and I'm pressing the <DEL> / Delete button  (on the keyboard) in the RadDatePicker Input field, to delete f.e. the date value, than the Delete Command on the grid is fired and the focused/selected record in the grid is deleted. I only expected the RadDatePicker Input Field to remove a character.

    Is this normal behaviour?

    Regards,
      JosM

    Reply

  • Tsvetoslav Tsvetoslav admin's avatar

    Posted on Feb 10, 2012 (permalink)

    Hello Jos,

    Thank you for contacting us.

    I tried to replicate the problem in a sample of mine but to no success. Please, take a look at the attached sample and let me know if I am missing something.
     

    Regards,
    Tsvetoslav
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
    Attached files

    Reply

  • Posted on Feb 10, 2012 (permalink)

    Tsvetoslav,

    thnx for your reply. You are using inline editing while I am using, as described, an editForm. Could that be the difference?
    So the problem occurs when the RadDatePicker is on an EditForm in a RadGrid and you add a record while there are existing records. When pressing delete when focus and cursor are in the DatePicker field than the Delete command on the Grid is triggerd.

    Regards,
      Jos.

    Reply

  • Tsvetoslav Tsvetoslav admin's avatar

    Posted on Feb 10, 2012 (permalink)

    Hi Jos,

     No, I am using the EditForms mode in my sample. I even tried with a edit form template - the result is the same. Please, run my sample, compare your own implementation with it, note the differences and let me know what needs to be tweaked as to replicated the issue.

    All the best,
    Tsvetoslav
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Posted on Feb 10, 2012 (permalink)

    Tsvetoslav,

    sorry I'm using an EditFormTemplate.
    But that doesn't matter. I've issolated the problem and if you add the following:

    To the grid:
    <ClientEvents OnGridCreated="SelectFirstOnGridCreated" />

    And javascript:
    <telerik:RadScriptBlock ID="ScriptBlock1" runat="server">
        <script type="text/javascript">
          function SelectFirstOnGridCreated(sender, args) {
     
            if (sender.get_masterTableView().get_dataItems().length > 0) {
              sender.set_activeRow(sender.get_masterTableView().get_dataItems()[0].get_element());
              sender.get_masterTableView().get_dataItems()[0].set_selected(true);
            }
          }
        </script>
    </telerik:RadScriptBlock>

    Now you should be able to reproduce my issue.

    Regards,
      Jos

    Reply

  • Tsvetoslav Tsvetoslav admin's avatar

    Posted on Feb 10, 2012 (permalink)

    Hi Jos,

    I managed to reproduce the problem - however, we shall need some time to investigates. As soon as we get some results on that we will get back to you with further feedback.
     
    All the best,
    Tsvetoslav
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Answer Tsvetoslav Tsvetoslav admin's avatar

    Posted on Feb 16, 2012 (permalink)

    Hello Jos,

    I am glad to inform you that the issue has been fixed. However, the fix did not make it into the official Q1 2012 release, as it required more testing. Still the next latest internal build that should be out by the middle of next week will contain it. You can safely download and use it - it is no less stable than the official release build.

    I have also updated your telerik points accordingly.


    All the best,
    Tsvetoslav
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Posted on Feb 16, 2012 (permalink)

    Tsvetoslav,

    Thnx.

    Regards,
      Jos.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Grid > RadGrid EditForm and RadDatePicker
Related resources for "RadGrid EditForm and RadDatePicker"

ASP.NET Grid Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]