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

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

0 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vishakh
Top achievements
Rank 1
Vishakh asked on 06 Oct 2017, 02:51 PM

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();}
                }
            }

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Vishakh
Top achievements
Rank 1
Share this question
or