Batch Edit RadGrid with Cascading RadDropdownlist Issue

9 posts, 0 answers
  1. JV
    JV avatar
    10 posts
    Member since:
    Dec 2014

    Posted 08 Dec 2014 Link to this post

    I am evaluating RadGrid control. I am having two issues in the evaluation

    1. Cascade dropdown loading

    There is one ASP dropdownlist for "Project" selection in asp.net page. Once I select the Project from dropdownlist binding the related data in RADGRID in Batchedit mode. In that one column "Module"  RadDropdownlist is populated in grid prerender event. In another column "SubModule" RadDropdownlist is there.
    I want that, if I change the Module dropdown, the "SubModule should be populated. Each row may have different module, so each row submodule should be different. RadDropdownlists are in Edittemplatecolumn
    How to achieve this? Can you please share the code.

    2. I am using RADTextbox in the same grid for "Description" column. If type text and want to give carriage return by pressing enter key. When I press Enter key the focus is lost from the control. I want to type the text with carriage return in this text box. How to achieve this?

    Please help me with code samples.

    Thanks in advance


  2. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 12 Dec 2014 Link to this post

    Hello JV,

    I'm sending a sample RadGrid web site to demonstrate how you can achieve the first requirement. As for the second request, you can set the mode of the textbox as multi-line in order to accept new lines. Or do you have something else in mind?

    Regards,
    Eyup
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. JV
    JV avatar
    10 posts
    Member since:
    Dec 2014

    Posted 14 Dec 2014 in reply to Eyup Link to this post

    Hello Eyup,

    Thanks for the sample project. Its working as expected. For the second request, I have set the mode as multiline. When I enable keyboard navigation as true in client settings, enter key is not working in radtextbox(multiline enabled).I want keyboard navigation with enter key working in radtextbox. Please give your suggestion.
  5. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 18 Dec 2014 Link to this post

    Hi JV,

    Please try adding the following script logic on your page and let me know about the result:
    Telerik.Web.UI.GridBatchEditing.prototype._handleKeyboardNavigationOrg =
        Telerik.Web.UI.GridBatchEditing.prototype._handleKeyboardNavigation;
    Telerik.Web.UI.GridBatchEditing.prototype._handleKeyboardNavigation = function (e) {
        if (e.keyCode == 13) {
            if (e.target.tagName != "TEXTAREA") {
                this._handleKeyboardNavigationOrg(e);
            }
        }
    };

    Regards,
    Eyup
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. JV
    JV avatar
    10 posts
    Member since:
    Dec 2014

    Posted 18 Dec 2014 in reply to Eyup Link to this post

    Thanks for your response Eyup. When I use this script logic. Enter key working in RADTextbox but tab key is not working navigation of columns. I want both functionalities. Moreover when I add text in RADTextbox with carriage return, it shows with carriage return inside textbox, when focus from textbox the text shows in grid is removed the carriage returns. I have added two images when typing the text in textbox (Image1.png) and after that it showing the text in grid.(Image2.png)
  7. JV
    JV avatar
    10 posts
    Member since:
    Dec 2014

    Posted 19 Dec 2014 in reply to Eyup Link to this post

    Hello Eyup,
    I have implemented  your sample code for cascading Radcombobox in batchedit grid. Its working fine for first time. Once the data saved the radcombo box is not loading the data but its showing "loading..".  text only.The grid is inside an ASP update panel. If I removed the update panel its working fine. I want this to work inside the update panel. What is the issue of update panel?
    Can you please help me!
  8. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 23 Dec 2014 Link to this post

    Hello JV,

    It is probably related to script variables not being reset after AJAX requests. Can you please open a formal support ticket to send us a runnable minified version of your web site along with detailed explanation of the issues? Thus, we will be able to further analyze and debug the project and try to determine the cause of the problem.

    Regards,
    Eyup
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  9. JV
    JV avatar
    10 posts
    Member since:
    Dec 2014

    Posted 29 Dec 2014 in reply to JV Link to this post

    Hello Eyup,

    Can you please support the Description textbox issue with navigation of tab enabled?
  10. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1803 posts

    Posted 01 Jan 2015 Link to this post

    Hello,

    Can you please try the following modification of the suggested workaround and see if everything is working correctly with it:
    <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
        <script type="text/javascript">
            Telerik.Web.UI.GridBatchEditing.prototype._handleKeyboardNavigationOrg = Telerik.Web.UI.GridBatchEditing.prototype._handleKeyboardNavigation;
            Telerik.Web.UI.GridBatchEditing.prototype._handleKeyboardNavigation = function (e) {
                if (e.keyCode == 13) {
                    if (e.target.tagName == "TEXTAREA") {
                        return;
                    }
                }
     
                this._handleKeyboardNavigationOrg(e);
            };
        </script>
    </telerik:RadCodeBlock>

    I have tested it on my end and tabbing and the enter key are both working correctly.


    Regards,
    Konstantin Dikov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017