or

ASPX:<telerik:RadCalendar ID="RadCalendar1" runat="server" MultiViewColumns="3"> <ClientEvents OnCalendarViewChanging="CalendarViewChanging" /></telerik:RadCalendar>JavaScript:<script type="text/javascript"> function CalendarViewChanging(sender, eventArgs) { __doPostBack("<%= RadCalendar1.UniqueID %>", "n:1"); } </script>function CollapseColumn(index, element) { //var cols = <%= RadGrid1.ClientID %>.MasterTableView.Columns; <%= RadGrid1.ClientID %>.MasterTableView.ColGroup.Cols[index].width = "20px"; element.style.display = "none"; element.nextSibling.style.display = ""; } function ExpandColumn(index, element) { //var cols = <%= RadGrid1.ClientID %>.MasterTableView.Columns; <%= RadGrid1.ClientID %>.MasterTableView.ColGroup.Cols[index].width = ""; element.style.display = "none"; element.previousSibling.style.display = ""; }
but it is working when i use gridtemplate column and not for boundcolumn pl help me to fix this i want this for g ridboundcolumn
<asp:TreeView ID="TreeView1" ShowLines="false" ShowExpandCollapse="true" runat="server" Height="330px" ExpandDepth="10" CssClass="Normal" ForeColor="#585880" Font-Size="10px" Font-Names="Verdana" NodeIndent="10" EnableClientScript="true" onclick="javascript:call();"> <SelectedNodeStyle CssClass="treeStyleNodeSelect" ImageUrl="~/Images/leaf.gif"/> <NodeStyle CssClass="treeStyleNode" ImageUrl="~/Images/leaf.gif"/> </asp:TreeView>
<asp:TreeView ID="TreeView1" ShowLines="false" ShowExpandCollapse="true" runat="server" Height="330px" ExpandDepth="10" CssClass="Normal" ForeColor="#585880" Font-Size="10px" Font-Names="Verdana" NodeIndent="10" EnableClientScript="true"> <SelectedNodeStyle CssClass="treeStyleNodeSelect" ImageUrl="~/Images/leaf.gif"/> <NodeStyle CssClass="treeStyleNode" ImageUrl="~/Images/leaf.gif"/> </asp:TreeView>