<telerik:RadGrid ID="rdGrd" runat="server" AutoGenerateColumns="False" EnableEmbeddedSkins ="false" Skin="Outlook" HeaderStyle-HorizontalAlign="Left" CssClass="RadGrid_Outlook"
GridLines="Both" Height="350px" AllowSorting = "true">
<Columns>
<telerik:GridBoundColumn DataField="ID" Display="False" UniqueName="ID"> <ItemStyle HorizontalAlign="Left" /> </telerik:GridBoundColumn><telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name">
<ItemStyle HorizontalAlign="Left" />
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="false">
Private Sub AddDynamicColumns()
For c As Integer = 0 To DtWrAra.Count - 1cbDownload.HeaderText = DtWrAra(c).Name
cbDownload.UniqueName = DtWrAra(c).Id
cbDownload.ItemTemplate = New RadGridCheckBoxTemplate(DtWrAra(c).Id)
Me.rdGrd.MasterTableView.Columns.Add(cbDownload)
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
rdGrd.DataSource = SampleDataSourceObject
AddDynamicColumns()
rdGrd.DataBind()
End Sub
========
These check box template columns are later checked on eachrow basis.
When i am performing sorting operation grid getting distorted .I am not Certain about the cause. Attached a screen shot..
If any one can help me on this ...
Thanks,
Saurabh
<telerik:GridHyperLinkColumn HeaderText="Preplan" DataTextField="Url" DataNavigateUrlFields="Url"
Target="_blank" DataNavigateUrlFormatString="{0}" HeaderStyle-HorizontalAlign="Center"
ItemStyle-HorizontalAlign="Left" Visible="false" AllowFiltering="false" />
Above is the markup that I am using, however the output is this:
<a target="_blank" href="/mytestsite/Home/tabid/41/language/en-US/http://google.com">http://google.com</a>
I am using DotNetNuke 5.6 with version 2010.02.0929.35 of Telerik.Web.UI.dll
Given that the text is correct and looking @ the object in the debugger, the given data string is http://google.com, I can only assume that the control is adding the relative path...
what I find interesting is that if I change the DataNavigationUrlFormattingString in the markup to be DataNavigateUrlFormatString="http://google.com" I get the expected result:
<a target="_blank" href="http://google.com">http://google.com</a>
Any thoughts on what I'm doing wrong?
An update:
It seems that if I use the property: DataNavigateUrlFormatString="http://{0}"
I get a different result, then I get either : <a href="http:http://google.com" target="_blank">http://google.com</a> or <a href="http://google.com" target="_blank">http://google.com</a>
depending on the contents of the field, if it is http://google.com then you get the former, if it's google.com then it's the latter.
ItemDataBound
event, I hide the checkbox based on some logic, because I want only specific rows to be selected. The problem is that even if I hide the checkbox, the grid allows the row to be selected by simply clicking anywhere on the row. What is a proper way to setup a grid that allows only specific rows to be selectable?
Thank you.


>>> $find("ctl00_MainContent_SearchBox").get_value()"">>> $find("ctl00_MainContent_SearchBox").get_textBoxValue()"d"<
asp:Content ID="Content1" ContentPlaceHolderID="cp" runat="Server">
<telerik:RadAjaxManager runat="server" ID="ram" DefaultLoadingPanelID="rlp">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="btnNew">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgvPolicy" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="rgvPolicy">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="rgvPolicy" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel runat="server" ID="rlp">
</telerik:RadAjaxLoadingPanel>
<telerik:RadNotification AutoCloseDelay="0" Animation="Resize" AnimationDuration="500" runat="server" ID="rn" Position="Center" Width="400" />
<div class="generic-container" style="margin:10px;"> ...
Protected Sub rgvPolicy_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgvPolicy.ItemCommand
If TypeOf e.Item Is GridDataItem And e.CommandName = "Delete" Then
Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
Dim ID = DirectCast(item.GetDataKeyValue("PolID"), Integer)
Dim desc = item("PolDescription").Text
proj.espManager(schema).PolicyManager.Item(ID).Delete()
rgvPolicy.Rebind()
With rn
.TitleIcon = IconURL(Buttons.ButtonFunction.Ok)
.Title = "Policy Deleted"
.Text = String.Format("Policy '{0}' and all its calculations have been deleted.", desc)
.Show()
End With
End If
End Sub
Protected Sub RadButtonEx1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadButtonEx1.Click
With rn
.TitleIcon = IconURL(Buttons.ButtonFunction.Ok)
.Title = "AAAAAAAAAAAAAARG"
.Text = String.Format("Policy '{0}' and all its calculations have been deleted.", "YADDA")
.Show()
End With
End Sub