Telerik Forums
UI for WinForms Forum
1 answer
126 views
I have a situation like this:
I need a filter for a column say ProdNumber==null, so it shows all products w/o a product number. In the grid i am enabling users to enter a product number and save. But since the filter is on as soon as the user save the record, the record disappears from the view based the filter. But the users would like to continue to see that record until they manually trigger the filter again. How can i do this?
How can i cancel the automatic filtering  and provide a button or something to trigger the filtering?
I tried to use this , but did not get fired before the automatic filtering:

 

 

void radGV_FilterChanging(object sender, Telerik.WinControls.UI.GridViewCollectionChangingEventArgs e)

 

{

e.Cancel =

 

true;

 

}

Thanks
anu

Richard Slade
Top achievements
Rank 2
 answered on 01 Feb 2011
3 answers
558 views
I'm looking for an right approach to both limit and alter the text being typed in a textbox column?

For the given cell column, I'd need to limit the user input to a range of characters (A-E,0-9), but also auto-uppercase the values as they are being typed in?  I've also tried to split the validation and uppercase portions in two separate events, but the real-time uppercase always seems to get me stuck.

I've looked at ValueChanging, as its raised for each keystroke, but changing the cell value within this event causes a stackoverflow, and changing the e.NewValue does not have any effect.

I've also tried CellFormatting - but that only formats the text after the edit is completed.
Thoughts?

Richard Slade
Top achievements
Rank 2
 answered on 01 Feb 2011
1 answer
235 views
I've been going around and around with this. I have a RadGridView in which I want the user to be able to click rows, but not select individual cells. I basically want no cell highlighting.

I have the selection mode set to FullRowSelect - and I've tried setting this both through the property inspector and via code - and yet a click on any given cell will select that cell and not the row.

I've gone so far as to add an event-handler for the SelectionChanged event and trying to clear the selection there with RadGridView.ClearSelection() but the cell remains selected.

What am I missing here?
Tony
Top achievements
Rank 1
 answered on 01 Feb 2011
7 answers
227 views
hi
when I test your demo to export radgridview to pdf, it created a pdf with 5 empty pages !!!!!!
5 bookmarks but With white page !!!!!
what can I do Know?
Richard Slade
Top achievements
Rank 2
 answered on 01 Feb 2011
1 answer
107 views
Hello, can i add button to the ComboBoxColumn in Grid.
In CollectionGrid_CellEditorInitialized(object sender, GridViewCellEventArgs e) event i create:
RadComboBoxEditorElement editorElement = (RadComboBoxEditorElement)editor.EditorElement;
and next
RadComboBoxEditorElement editorElement = (RadComboBoxEditorElement)editor.EditorElement;
editorElement.DataSource = DictBindingSource;
 
and I try this:
RadButtonElement button = new RadButtonElement();
button.MinSize = new System.Drawing.Size(30, 15);
button.Text = "+";
button.MaxSize = button.MinSize;
editorElement.Children.Add(button);

but button is under Cobobox. Any idea?
Thanks for every help.
Richard Slade
Top achievements
Rank 2
 answered on 01 Feb 2011
6 answers
1.0K+ views
Hi,

I'm sure this is a quick issue but i'm struggling to find a solution on my own. Basically I used to have it where I would create a group and have the total number of rows within that group inside the group head. I used to use the following code

private void radGridView1_GroupSummaryEvaluate(object sender, GroupSummaryEvaluationEventArgs e)
{
    int contactsCount = e.Group.ItemCount;
    e.SummaryItem.Name = contactsCount.ToString();
}

But now that i've returned to my project after a break and updated to the latest controls, this no longer seems to function. Have I made an error somewhere or has the procedure completely changed with the latest version?

Regards,


Guy
Richard Slade
Top achievements
Rank 2
 answered on 01 Feb 2011
4 answers
289 views

Hi

I have a decimal Column in RadGridView with BeginEditMode = BeginEditOnKeystrokeOrF2 and using Danish culture.

When user presses ',' on the selected cell, cell goes to edit mode but ',' is not inserted in the cell. But if user now again presses comma, then it is inserted into the cell.

So if user wants to enter the value ,5 he has to press comma twice. Ofcourse he has no problom in entering 0,5

Note, this is when user enters to edit mode by pressing , not by pressing F2.

What should I do? Any help would be appreciated.

Thanks

Regards

Richard Slade
Top achievements
Rank 2
 answered on 01 Feb 2011
4 answers
81 views
Hi Everyone,

In my grid there's 3 columns, "Client Id", "Client first name", "Client last name".  The client first and last name columns are read only.  When the user enters the Client Id the CellValueChange event is fired, which gets the first and last name for the Client Id from the database, then puts the first and last name values in their respective columns. 

Here's the code:

Private Sub gridClients_CellValueChanged(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCellEventArgs)

 

 

        Dim column As GridViewDataColumn = TryCast(e.Column, GridViewDataColumn)

 

 


        If
column IsNot Nothing AndAlso column.FieldName = "ClientId" Then

 

                e.Row.Cells(

"vcFirstName").Value = GetClientFirstName(e.Value)

 

                e.Row.Cells(

"vcLastName").Value = GetClientLastName(e.Value)

 

 

        End If

 

 

End Sub


This works great when editing existing records, but not at all for adding new records.  During add new, the event does fire, and does get the correct first/last name values, and the code to put the first/last name value does fire and seems to work, but when looking at the cell value, nothing actually gets there. 

If the new row is committed (by <enter> or clicking out of the row),  then going back and setting the client id, the code works.  But of course, that doesn't fulfill the requirements.  The code needs to work by merely <tabbing> out of the Client Id column on a new row.

Thanks in advance for any and all suggestions and advice.

 

 

Svett
Telerik team
 answered on 01 Feb 2011
7 answers
602 views
HI,

In my application,I have one GridView With 4 gridviewcomboboxcolumns(with Different Binding Source)...
It is possible to Cancle All changes made by user in single click....
And the restore gridview at starting position...?

Thank You
Richard Slade
Top achievements
Rank 2
 answered on 01 Feb 2011
1 answer
92 views
Hi,
Today I was facing an issue on creating New Appointment.
Steps to Reproduce:
1. Double click on Monday (say, 7th Feb 2011) and assign the following settings
1.1. Recurrence type: Weekly
1.2. Days of the week: Tuesday and Wednesday only.
1.3. Range of recurrence: Start by: 7th Feb 2011 and End by: 18th Feb 2011.

when assigning the above settings, the Appointment occurrence on 7th Feb 2011 is shown in the view. Whereas it shouldn't be shown as Monday is not configured on the RecurrenceRule. Subsequent week is shown correctly.

I'm using the following version in my machine: Winforms Q1 2010 SP2.

Please let me know how this issue could be solved.

Thanks,
Arun.Dharuman
Dobry Zranchev
Telerik team
 answered on 01 Feb 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?