I have converted the vb code at the following post (oct 1)to c#, see attachment.
http://stackoverflow.com/questions/32866795/formatted-text-inside-cell-on-datagridview
It renders a rich text into a winforms DataGridView cell.
Could someone please in converting it work with a Telerik WInform Gridview?
I have a RadGridView with a filed called Start with dynamically created buttons. When i click on it my code changed the text of the row that was clicked to Stop if it was Start Previously. MY issue is when i click another row the previously changed text is lost and the new row shows stop. I want to save the text of all the dynamically crated buttons when one is clicked.
Dim StartStop As New GridViewCommandColumn()
StartStop.Name = "StartStop"
StartStop.HeaderText = "Start"
StartStop.UseDefaultText = True
StartStop.DefaultText = "Start"
StartStop.Width = 40
StartStop.MinWidth = 40
RadGridView1.MasterTemplate.Columns.Add(StartStop)
AddHandler RadGridView1.CommandCellClick, AddressOf radGridView1_CommandCellClick
Sub radGridView1_CommandCellClick(ByVal sender As Object, ByVal e As EventArgs)
Dim ID As String = TryCast(sender, GridCommandCellElement).RowIndex
Dim StartStop As String = TryCast(sender, GridCommandCellElement).CommandButton.Text
If StartStop = "Start" Then
TryCast(sender, GridCommandCellElement).CommandButton.Text = "Stop"
else
TryCast(sender, GridCommandCellElement).CommandButton.Text = "Start"
end if
End Sub
Hello.
My apologies if this has been answered elsewhere, but I was unable to find anything pertinent in my search.
I'm in the process of evaluating UI for WinForms for use in an existing WinForms application, and have downloaded the demo. More specifically, I'm interested in the radRibbonBar control. One of the first questions that has come up is whether or not it's possible to add a non-Telerik control to a ribbon bar group. I've noticed that when I right-click on a group in order to add an item, I'm presented only with a list of rad controls, but seemingly there is no way to add other types of WinForms controls. The issue is that our application utilizes a number of highly-customized controls that have been built off of the standard .NET base classes, a few of which would need to be included as part of the Ribbon Bar.
So, is the radRibbonBar control capable of hosting customized, non-Telerik controls? If so, how?
Thanks.
- Tom
I have a grid that has columns such as Job number and Admin Name.
I am grouping the rows by the Job Number. But I only want them to be grouped when there is more than one record. The user wants to see the +sign only when there is more than one admin per Job. is this possible? Can you help me find a solution for this?
Thank you.
I have RadGridView and in that I have GridViewComboBoxColumn column (name is Comment). End user must select from the value for that column from GridViewComboBoxColumn list, or write the new value in that field. The problem is that when I write new value that isn't from list, after leaving that column new value not saved. Which option must i set in GridViewComboBoxColumn or other place.
Thank you..
Greetings!
After upgrading to 2016 Q1, we've encountered a bug while appending text to radtextboxcontrol before setting anything to .Text property of it.
For example:
// Not working (exception is that 'startPosition' value cannot be null)
this.radTextBoxControl1.AppendText(String.Format("{0}", formattedString));
// Works
this.radTextBoxControl1.Text = " "; // maybe some initialisation goes here or smth...
this.radTextBoxControl1.AppendText(String.Format("{0}", formattedString));
foreach
(Appointment app
in
ModificationsScheduler.Appointments)
{
cAppointment = (CustomAppointment)app;
if
(containsString(cAppointment.Summary.ToString(), strIndex, StringComparison.Ordinal) ==
true
)
{
this
.ModificationsScheduler.FocusedElement = app;
}
}