Private
Sub
RadGridView1_CellFormatting(sender
As
Object
, e
As
Telerik.WinControls.UI.CellFormattingEventArgs)
Handles
RadGridView1.CellFormatting
If
e.Column.Name.ToUpper =
"AGREE"
AndAlso
TypeOf
e.CellElement
Is
GridCheckBoxCellElement
Then
CType
(e.CellElement.Children(0), RadCheckBoxEditorElement).Text =
"I Agree"
End
If
End
Sub
DockWindow.AllowedDockState &= ~AllowedDockState.Hidden;
RadDock1.CloseAllWindows();
I have created a custom cell element column in the telerik RAD grid for windows.
Custom column has two children 1)RadLabelElement 2)RadButtonElement.
RadLabelElement displays text and RadButtonElement is clickable(to open some popup form)
For example: My custom column will have something like : helloworld with a button besides it.
But if i resize the column(decrease the column size), i want to have my "helloworld" text to appear with "hellowor...". But it is not happening. I found that "..." is behind the button element.
But if make the button element visible false, i can see that "..." on resize of the column(decrease the size of the column).
Could you please help me how to show "..." text along with the button element when the column is resized?
Thanks
Santosh.
Dim mySqlCmd As New SqlCommand |
Dim da As New SqlDataAdapter |
Dim SchedSource As New SchedulerBindingDataSource() |
Dim appointmentMappingInfo As New AppointmentMappingInfo() |
Dim resourceMappingInfo As New ResourceMappingInfo |
Dim mySqlConn = New SqlConnection("server = compname\SQLEXPRESS;database = dbname;Trusted_Connection = yes") |
mySqlConn.Open() |
Try |
mySqlCmd = mySqlConn.CreateCommand |
mySqlCmd.CommandText = _ |
"SELECT tbl_ReservationInfo.ReservationInfoID as 'ID', tbl_ReservationInfo.ReservationStart as 'Start', tbl_ReservationInfo.ReservationEnd as 'End', tbl_ResourceInfo.ResourceName As 'Resource Name', tbl_ResourceInfo.Description as 'Description', tbl_ResourceInfo.Type as 'Type'" |
mySqlCmd.CommandText += " FROM tbl_ReservationInfo INNER JOIN tbl_Reservations ON tbl_ReservationInfo.ReservationID = tbl_Reservations.ReservationID INNER JOIN tbl_ResourceInfo ON tbl_ReservationInfo.ResourceInfoID = tbl_ResourceInfo.ResourceInfoID INNER JOIN" |
mySqlCmd.CommandText += " tbl_Resources ON tbl_ResourceInfo.ResourceInfoID = tbl_Resources.ResourceInfoID INNER JOIN" |
mySqlCmd.CommandText += " tbl_Users ON tbl_ReservationInfo.UserID = tbl_Users.UserID" |
mySqlCmd.CommandText += " WHERE (tbl_ResourceInfo.Type = 'Venue')" |
da.SelectCommand = mySqlCmd |
da.Fill(SchedDataSet, "Schedules") |
appointmentMappingInfo.Start = "Start" |
appointmentMappingInfo.End = "End" |
appointmentMappingInfo.Summary = "Resource Name" |
appointmentMappingInfo.Location = "Resource Name" |
appointmentMappingInfo.Description = "Description" |
appointmentMappingInfo.Visible = "Visible" |
resourceMappingInfo.Id = "ID" |
resourceMappingInfo.Name = "Type" |
SchedulerBindingDataSource1.ResourceProvider.Mapping = appointmentMappingInfo |
SchedulerBindingDataSource1.ResourceProvider.DataSource = "Schedules" |
SchedulerBindingDataSource1.ResourceProvider.Mapping = resourceMappingInfo |
SchedulerBindingDataSource1.ResourceProvider.DataSource = "Schedules" |
VenueSchedTable.DataSource = SchedulerBindingDataSource1 |
Catch ex As Exception |
MsgBox("Error: " & ex.Source & ": " & ex.Message, MsgBoxStyle.OkOnly, "Connection Error !!") |
End Try |