Multiple RadDropDownLists in Batch edit mode

8 posts, 0 answers
  1. Ramey
    Ramey avatar
    19 posts
    Member since:
    Feb 2016

    Posted 10 Feb Link to this post

    Hello,  I am new to your fourm as well as fairly new to using the Suite of Tools.  My situation is that I currently have RadGrid which is set to batch edit mode and has two drop downs.  The first drop down has a list of items that is populated by an objectdatasource and the second list will be populated based on the selection of the first drop down and the selectedvalue will then be passed into the object datasource of the second drop down.  I have worked at tackling this from multiple approaches...having an autopostback on the first drop down and once that fires then well do a javascript function where it will take the value of the selected item and pass it to a hidden value and I can access the hidden value ino the GridsPreRender and find the two controls and populate the second drop down.  This sort of works as the second drop down is being populated correctly but every time I have to make a selection I have to click the griditem once and it will highlight and do nothing and then if I click it again it will allow me to make my selection.  The other problem is that after I make a selection on my first drop down and the postback occurs it automatically reverts back to the original selection....the user is doing this when they are trying to edit a current list of dropdowns.  I haven't worked out or seen how it will behave if I try to add a new row.  Any thoughts?

    Thanks for any and all help in advance,

    Ramey
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 11 Feb Link to this post

    Hi,

    To achieve your goal you can refer to the following library which presents related RadComboBox controls in Batch Editing. You can find the project with detailed information in the link below:
    http://www.telerik.com/support/code-library/batch-editing-extensions---related-radcomboboxes-and-validation

    Regards,
    Pavlina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ramey
    Ramey avatar
    19 posts
    Member since:
    Feb 2016

    Posted 11 Feb in reply to Pavlina Link to this post

    Thank you for the response.....can this only be done with RadComboBoxes and not with the RadDropDownLists or can I modify the way the combobox looks to look like a dropdownlist?
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 11 Feb Link to this post

    Hi,

    As the solution provided in the code library is a custom one and is not supported it is up to the developer to modify it according to their business requirements.

    Regards,
    Pavlina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Ramey
    Ramey avatar
    19 posts
    Member since:
    Feb 2016

    Posted 12 Feb in reply to Pavlina Link to this post

    Thanks for your response, the code library you have provided and the example you have provided works very very well and I am very impressed with it.  It did take some minor work arounds with the way we pull in our Data compared to what you have demonstrated.  I am running into one error though.  Currently on the page I have lets say UserRadGrid and it's a grid of all users....that has a double click function on it so when you double click the user it will provide you with a user control to modify the record, but when they click on the specified user the RadGridWorkArea (this has the combo box solution you provided tied to it) should auto update to display the work area / work areas associated with that user and then they admin should be able to modify it.  Currently the RadGridWrokArea is wrapped in a RadAjaxPanel but I also need the RadGridUser in a Panel so it knows to update the RadGridWorkArea.  What would be the best solution for this?  I tried having an RadAjaxManager but it throws a JavaScript runtime error: Unable to get property 'get_element' of undefined or null reference and this is inside of the batchManagerExtentions.js file in the setTimeout(function () area of the BatchExtensions.RelatedComboBoxesManager section.  Looks like it's hitting on the line comboBox = $find(that.toolTip.get_element().children[0].id;  Do you have any solutions or maybe alternate routes that I can still use the selected user to have the RadGridWrokArea display the appropriate things?  Thanks for any help and advice.  
  7. Ramey
    Ramey avatar
    19 posts
    Member since:
    Feb 2016

    Posted 12 Feb Link to this post

    Hello, I was actually able to solve my own problem by taking off the RadAjaxPanel and instead adding the RadAjaxManager to Handle both RadGrids.  AjaxControlID = RadGridUser and the updated Controls= RadGridUser, RadGridWorkArea, RelatedComboBoxesToolTip

    and then create another AjaxControlID = RadGridWorkArea with updated controls = RadGridWorkArea, RelatedComboBoxesToolTip but whenever I go to click Add new record the batchManagerExtentions.js breaks and the _handleToolTipShow: function(sender, args) line and it says it's unable to get property className of undefined or null reference. It is saying that the currentTarget of currentTarget.className.indexOf(REQUIRED_CELL_CLASS) is undefined.  I'm really not sure what control it is looking for here and since I'm not to familiar with exactly how this .js file is working I'm having trouble narrowing down a solution.  This is one additional question....would there be anyway to disable the Add new record Save changes and Cancel changes buttons until a user in the RadGridUser is clicked?  Thanks again for any support.

     

    Ramey

  8. Ramey
    Ramey avatar
    19 posts
    Member since:
    Feb 2016

    Posted 16 Feb Link to this post

    Good morning, on Friday I was trying to do some research into a Javascript error that keeps getting thrown dealing with the tooltips.  Currently we are running IE 10 and I ran across a patch that I think you may have posted or at least one of your team might have posted and it was telerik-patch.js inside of GitHub and from what it described it Patches Telerik Tooltip control in IE 10 which fails with Javascript error.  I was curious if this might solve my problem that I listed in my previous post about the tooltip not being able to find the classname.  Thanks for all of your help.

     

    v/r,

     

    Ramey

  9. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 26 Feb Link to this post

    Hello Ramey,

    Note that there is no such patch posted by us on Git.

    I would recommend using the latest version of the controls as it includes fixes and improvements for the controls. The current release is 2016.1.225.

    Moreover, using external code that overrides the built-in logic for the controls may result in unpredictable behavior. Please remove the custom JavaScript that overrides the tooltip scripts and see how the behavior changes.


    Regards,
    Viktor Tachev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017