Hello,
I tried to remove the text indent of RadLabel but i couldn't.
Should I make the RadLabel's text have no any indents?
As in the attachment, I already set the margin and padding to 0
Please help me
Thanks,
Dear all
I have a question
how do all this syntax in GVMCCB ?
Private Sub CMMBCustomer_CustomFiltering(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCustomFilteringEventArgs)
Dim element As RadMultiColumnComboBoxElement = MCCBCustomer.MultiColumnComboBoxElement
Dim textToSearch As String = MCCBCustomer.Text
If AutoCompleteMode.Append = (element.AutoCompleteMode And AutoCompleteMode.Append) Then
If element.SelectionLength > 0 AndAlso element.SelectionStart > 0 Then
textToSearch = MCCBCustomer.Text.Substring(0, element.SelectionStart)
End If
End If
If String.IsNullOrEmpty(textToSearch) Then
e.Visible = True
For i As Integer = 0 To element.EditorControl.ColumnCount - 1
e.Row.Cells(i).Style.Reset()
Next
e.Row.InvalidateRow()
Return
End If
e.Visible = False
For i As Integer = 0 To element.EditorControl.ColumnCount - 1
Dim text As String = e.Row.Cells(i).Value.ToString()
If text.IndexOf(textToSearch, 0, StringComparison.InvariantCultureIgnoreCase) >= 0 Then
e.Visible = True
e.Row.Cells(i).Style.CustomizeFill = True
e.Row.Cells(i).Style.DrawFill = True
e.Row.Cells(i).Style.BackColor = Color.FromArgb(201, 252, 254)
Else
e.Row.Cells(i).Style.Reset()
End If
Next
e.Row.InvalidateRow()
End Sub
Private Sub CMMBCustomer_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
With MCCBCustomer
If e.KeyCode = System.Windows.Forms.Keys.Enter Then
If .ValueMember <> "" Then
.SelectedValue = .EditorControl.CurrentRow.Cells(.ValueMember).Value
Else
.SelectedValue = .EditorControl.CurrentRow.Cells(.DisplayMember).Value
End If
.Text = .EditorControl.CurrentRow.Cells(.DisplayMember).Value.ToString()
.MultiColumnComboBoxElement.ClosePopup()
.MultiColumnComboBoxElement.TextBoxElement.TextBoxItem.SelectAll()
End If
End With
End Sub
Private Sub CMMBCustomer_DropDownClosed(ByVal sender As Object, ByVal args As Telerik.WinControls.UI.RadPopupClosedEventArgs) Handles MCCBCustomer.DropDownClosed
If MCCBCustomer.SelectedIndex <> -1 Then
LblNamaCustomer.Text = MCCBCustomer.EditorControl.Rows(MCCBCustomer.SelectedIndex).Cells(1).Value.ToString
Else
LblNamaCustomer.Text = ""
End If
End Sub
Private Sub CMMBCustomer_Validated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MCCBCustomer.Validated
If MCCBCustomer.Text = "" Then
LblNamaCustomer.Text = ""
End If
End Sub
Thanks before...
I'd like to add and show an Bitmap from Resources to Grid Column. But it doesn't work.
Is there any very simple example?
Gridview.Rows[count - 1].Cells[header].Value = new Bitmap(Resources.test);
Hi,
We need to generate a form when you hover over certain tabs on our PageView, as it needs to be interactive, I'm using a ShapedForm to appear on mouse hover over each tab.If there's a better way to do this, let me know.
The issue is the position it appears in, I can get it to appear where my cursor is easy enough, but I would like it to appear directly next to the tab, the tabs are horizontal on the left hand side, so would like it to appear to the right of the tabs with the top of the tab matching the top of my generated form.
I'm iterating through each RadPageViewStripElement and subscribing to the mouse hover event, so in my event I have RadPageViewStripItem, but I am not sure how I get the exact position of that tab using that object, as the locations are always relative to the control it is in.
Any help would be appreciated.
Thanks,
Dan
Can the validation provider do multiple levels of validation. Example it would be a warning if a number was greater than 2.5 and a hard stop error over 5?
Thanks,
Tim
Hello ...
How to get current index from gridview when it's a new row
i have tried this method ...
Dim baris As Integer = GridDetail.CurrentRow.Index
MsgBox(baris.ToString)
the results is always -1 when i click command cell at new row
Thanks
GroupBox dbGroupBox = new GroupBox(); | |
dbGroupBox.Location = new System.Drawing.Point(10, 0); | |
dbGroupBox.Name = databaseInstance + pageName; | |
dbGroupBox.TabIndex = 0; | |
dbGroupBox.TabStop = false; | |
dbGroupBox.Text = pageTitle + " (Possible Matchs)"; | |
dbGroupBox.AutoSize = true; | |
dbGroupBox.AutoSizeMode = AutoSizeMode.GrowOnly; | |
dbGroupBox.Tag = tag.ToString(); | |
dbGroupBox.BackColor = Color.Transparent; |
RadGroupBox dbGroupBox = new RadGroupBox(); | |
dbGroupBox.Location = new System.Drawing.Point(460, groupBoxY); | |
dbGroupBox.Name = databaseInstance + pageName; | |
dbGroupBox.TabIndex = 0; | |
dbGroupBox.TabStop = false; | |
dbGroupBox.Text = pageTitle + " (Possible Matchs)"; | |
dbGroupBox.AutoSize = true; | |
//dbGroupBox.AutoSizeMode = AutoSizeMode.GrowOnly; | |
dbGroupBox.Tag = tag.ToString(); | |
dbGroupBox.BackColor = Color.Transparent; |
With a RadGridView component, how do I access the contents of a single cell within a row that is selected?
In the code behind, I can access the selected item, but the selection is always the whole row. Granted, this is not unexpected as I have the selection mode set to "Row" (intentionally so). However, when actually interacting with the grid, I can click and highlight individual cells within the row selected – I have to imagine, then, that I should be able to access the specific cell highlighted. To my surprise, I've found no way to accomplish this. Is there a way?
[for context, I want to give the user the ability to copy individual cell values to the clipboard, instead of copying the whole row of values, WITHOUT changing the selection mode]
I'd like to have my regions folded when new .CS is loaded.. is there a way to programatically fold / unfold the display text?
Closest thing I could find was this: radSyntaxEditor1.SyntaxEditorElement.FoldingManager.UnfoldAllRegionsContaningIndex(1);
Thanks! Jason