or
| function gup(name) { |
| name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); |
| var regexS = "[\\?&]" + name + "=([^&]*)"; |
| var regex = new RegExp(regexS); |
| var results = regex.exec(window.location.href); |
| if (results == null) return ""; |
| else return results[1]; |
| } |
| function ShowEditForm() { |
| var tab = gup('tabid') |
| var mid = gup('mid').replace(/#/, '') |
| var masterTableView = $find("perDiemBookingsRadGrid").get_masterTableView(); |
| var id = masterTableView.get_selectedItems()[0].getDataKeyValue('BookingID'); |
| window.radopen("/Default.aspx?tabid=" + tab + "&ctl=multiEdit&mid=" + mid + &BIDs=" + id, "RadWindow3"); |
| } |
| <telerik:RadGrid ID="perDiemBookingsRadGrid" runat="server" AllowPaging="True" AllowSorting="True" |
| DataSourceID="perDiemBookingsSqlDataSource" GridLines="None" ShowGroupPanel="True" |
| AllowAutomaticDeletes="True" AllowMultiRowSelection="True" Width="800px" AllowAutomaticUpdates="True" |
| AutoGenerateColumns="False" > |
| <MasterTableView DataSourceID="perDiemBookingsSqlDataSource" DataKeyNames="BookingID" |
| CommandItemDisplay="Top"> |
| <CommandItemTemplate> |
| <div style="padding: 5px 5px;"> |
| <a href="#" onclick="return ShowEditForm();" visible='<%# perDiemBookingsRadGrid.EditIndexes.Count = 0 %>'> |
| <img style="border: 0px; vertical-align: middle;" alt="" src="/images/Edit.gif" /> |
| Show Edit Form</a> |
| </div> |
| </CommandItemTemplate> |
| <Columns> |
| <telerik:GridClientSelectColumn Reorderable="False" Resizable="False" ShowSortIcon="False" |
| UniqueName="column"> |
| </telerik:GridClientSelectColumn> |
| <telerik:GridBoundColumn DataField="BookingID" UniqueName="BookingID" DataType="System.Int32" |
| HeaderText="BookingID" ReadOnly="True" SortExpression="BookingID" Visible="False"> |
| </telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn DataField="CustomerName" HeaderText="Customer" UniqueName="Customer" |
| EditFormColumnIndex="2" GroupByExpression="GROUP BY CustomerName" SortExpression="CustomerName"> |
| <EditItemTemplate> |
| </Columns> |
| <EditFormSettings ColumnNumber="3"> |
| <EditColumn UniqueName="EditCommandColumn1"> |
| </EditColumn> |
| </EditFormSettings> |
| </MasterTableView> |
| <ClientSettings AllowDragToGroup="True"> |
| <Selecting AllowRowSelect="True"/> |
| </ClientSettings> |
| </telerik:RadGrid> |

type="Telerik.Web.UI.WebResource"
to
type="Telerik.Web.UI.WebResourceSession".
<telerik:RadListView runat="server" ID="lvTest"> <ClientSettings> <DataBinding> <ItemTemplate> <div class="item"> #= Text# </div> </ItemTemplate> <EmptyDataTemplate> <div>No items</div> </EmptyDataTemplate> <DataService Location="~/Code/GenericHandlers/TestWS.asmx" DataPropertyName="Data" CountPropertyName="Count" DataPath="GetData" SortParameterType="Linq" FilterParameterType="Linq" /> </DataBinding> </ClientSettings></telerik:RadListView><System.Web.Script.Services.ScriptService()> _<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _<ToolboxItem(False)> _Public Class TestWS Inherits System.Web.Services.WebService <WebMethod()> _ Public Function GetData() As String Return Json(New With {Key .Data = New Temp() {New Temp("Item1"), New Temp("Item2")}, .Count = 2}) End FunctionEnd ClassPublic Class Temp Private _text As String Public Property Text() As String Get Return _text End Get Set(ByVal value As String) _text = value End Set End Property Public Sub New(ByVal pText As String) _text = pText End SubEnd ClassHi There
I would like to make the visibility of GridNumericColumn of Telerik grid at runtime.
I have a control at my web page say dropdown box with three different values and what I want when dropdown box got a value single then I would like to make the visibility of GridNumericColumn to false.
I hope someone might be able to help me
Thanks
Syed
