Hide button in another column on radcombobox selection change in client side

1 posts, 0 answers
  1. Vishakh
    Vishakh avatar
    1 posts
    Member since:
    Oct 2017

    Posted 06 Oct 2017 Link to this post

    What I am trying to achieve is on selected index changed of a radcombobox in edit mode of a radgrid in cleint side.

    I got the event  handled. But I cant get the button from the radgrid column. The foundelement.hide() or show() is returning a js error that show or hide is not a function. Please help.

     

        function OnClientSelectedIndexChanged(sender, eventArgs) {
                    var item = eventArgs.get_item();
                    var node = getElement(sender.get_element());

                    var foundElement = null;
                    while (node) {
                        foundElement = $telerik.findElement(node, "FTPDetailsButton2");
                        if (foundElement)
                            break;
                        node = getElement(node.parentNode);
                    }

                    if (foundElement) {
                        if (item.get_text() == "FTP") { foundElement.show();}
                        else { foundElement.hide();}
                    }
                }

Back to Top