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

Batch Edit RadGrid with Cascading RadDropdownlist Issue

8 Answers 159 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JV
Top achievements
Rank 1
JV asked on 09 Dec 2014, 05:51 AM
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


8 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 12 Dec 2014, 06:49 AM
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.

 
0
JV
Top achievements
Rank 1
answered on 14 Dec 2014, 10:53 AM
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.
0
Eyup
Telerik team
answered on 18 Dec 2014, 08:15 AM
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.

 
0
JV
Top achievements
Rank 1
answered on 18 Dec 2014, 09:22 AM
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)
0
JV
Top achievements
Rank 1
answered on 19 Dec 2014, 11:35 AM
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!
0
Eyup
Telerik team
answered on 23 Dec 2014, 08:10 AM
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.

 
0
JV
Top achievements
Rank 1
answered on 30 Dec 2014, 05:13 AM
Hello Eyup,

Can you please support the Description textbox issue with navigation of tab enabled?
0
Konstantin Dikov
Telerik team
answered on 01 Jan 2015, 02:24 PM
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.

 
Tags
Grid
Asked by
JV
Top achievements
Rank 1
Answers by
Eyup
Telerik team
JV
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or