or
<formid="form1"runat="server"> <telerik:RadScriptManagerID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <div> <telerik:RadGridrunat="server"AllowPaging="True"ID="RadGrid2"OnNeedDataSource="RadGrid2_NeedDataSource"Width="600px"PageSize="8"> <MasterTableViewWidth="100%"> <Columns> <telerik:GridBoundColumnHeaderText="Project Name"DataField="name"></telerik:GridBoundColumn> </Columns> <NoRecordsTemplate> <divstyle="height: 30px; cursor: pointer;"> No items to view</div> </NoRecordsTemplate> <PagerStyleMode="NumericPages"PageButtonCount="4"/> </MasterTableView> </telerik:RadGrid> </div> </form> Public Class bookmarks Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Protected Sub RadGrid2_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid2.NeedDataSource RadGrid2.DataSource = getBookMarks End Sub Private ReadOnly Property getBookMarks() As IList(Of project) Get Dim strSQL As String = "SELECT PROJ_NAME FROM [OPI_TIMESHEETS] o left outer join DCSC_PROJECT d on o.project_number = d.PROJ_NO " Dim results As IList(Of project) = New List(Of project)() Using connection As IDbConnection = DbProviderFactories.GetFactory("System.Data.SqlClient").CreateConnection() connection.ConnectionString = ConfigurationManager.ConnectionStrings("projcentral").ConnectionString Using command As IDbCommand = connection.CreateCommand() command.CommandText = strSQL connection.Open() Try Dim reader As IDataReader = command.ExecuteReader() While reader.Read() Dim name As String = reader.GetValue(reader.GetOrdinal("PROJ_NAME")) results.Add(New project(name)) End While Catch ex As SqlException results.Clear() 'lblmsg.Text = ex.Message End Try End Using End Using lblMsg.Text = results.Count & " items in list" Return results End Get End Property Class project Private _projName As String Sub New(ByVal name As String) _projName = name End Sub #Region "properties" Private ReadOnly Property Name() As String Get Return _projName End Get End Property #End Region End Class End Class Dear Support,
I've issue with the image button. The button image blinks when the user hover over the Button, then when the user move out from the button the image appears again.
Please find the attached images.
Here is my markup code for the button.
<rad:RadButton ID="btnAccountStatusHistory" runat="server" Text="Status History" OnClientClicking="OnAccountStatusHistoryClientClicking"> <Icon PrimaryIconUrl="~/_Images/ButtonsIcons/History.gif" PrimaryIconLeft="4" PrimaryIconTop="4" /></rad:RadButton>