Telerik Forums
UI for WinForms Forum
4 answers
514 views
I'm having difficulty understanding the flow of how these events get called and where I should modify formatting info. 

The grid view events I'm working with currently are grid_CellFormatting, grid_CellBeginEdit, grid_CellEndEdit.  I have a grid, that has many columns of data that are bound to a generic list of objects.  These objects have bool properties I'd like to allow the user to update through a single grid with many columns/rows.  The majority of the columns are GridViewCheckBoxColumn(the ones that I want to not be read-only).  I'd like to allow the user to check these boxes, and it will turn the cell they are contained within to a different color.  Then after they've clicked many, they can commit these changes using a save button.  

I assume that I can only update the formatting of a cell in the _cellformatting event.  So, I assume I need to pass some data along to this event that allows it to look at the checkbox and determine if the value is changed.  I've written some code that would do this using the .Tag object on the cell.  This isn't working well, and I'm looking for some advise.  I can't be the first one to use a grid in this fashion.  Allow users to make changes, and see those changes, and then commit all at once.

Any advice?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Mar 2021
2 answers
1.3K+ views

1.- Issue:
I have a RadGridView consisting of one master template and a child template. I query my database, build a dataset and I assign it to the RadGridView datasource.

It works just fine with few records but when I pull a considerable amount of data it takes forever to render, specially if I want my rows to be expanded from the beginning.

For Each row As GridViewRowInfo In template.Rows
     row.IsExpanded = True
Next

Is there any way to improve the render time of the RadGridView ? The query and code take around 3 seconds to run, but when I go row by row expanding all of them it just takes like 2 minutes. I am attaching what it looks like when it finished loading. The 400 row hast more than 8000 records in the child template. I know its big data, but is there any way to improve this ?

2.- Issue
As soon as the RadGridView finishes loading the data mentioned above, if I close the screen the resources are not freed at all. I tried calling RadGridView1.Dispose() but it takes more than 10 seconds to just run the dispose command. Is this a known issue that the RadGridView eats a lot of memory and can't free it by itself ?

I am running Telerik for WinForms 2020.2.616.40

Thanks for any information provided.

Ignacio
Top achievements
Rank 1
 answered on 17 Mar 2021
3 answers
178 views

I notice default RadDesktopAlert  backcolor is transparent, when I move mouse it change to solid color without transparent, please let me know if this is possible to remove its transparent backcolor property?

Thanks,
Shakti

Shanti 😎
Top achievements
Rank 2
Veteran
 answered on 17 Mar 2021
1 answer
149 views

Hi

I use Telerik UI for WinForm 2014 radchart.

I need to insert a logo picture and a label involved NowDate in printed chart page.

for this goal I insert a label and picture box on radchartviewer component but when I print(radchartviewer1.Print()) neither label or logo not printed.

Please help me.

 

Thanks.

Nadya | Tech Support Engineer
Telerik team
 answered on 17 Mar 2021
54 answers
2.4K+ views

Hi Admins

Previously i was using Default DataGridView for populating a Table.

It was working fine. But due to advace Functionality of RadGridView, I have develop the same with Telerik Controls (R2 SP1 2019).

But i have some Performance Issues.

Check the Sample Code and please suggest me for Performance Enhancement.

I'm Creating Column at Run Time Using This Code and Setting Grid Properties.

this.radGridView1.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
this.radGridView1.ShowGroupPanel = false;
this.radGridView1.MasterTemplate.EnableGrouping = false;
this.radGridView1.EnableHotTracking = true;
this.radGridView1.MasterTemplate.SelectionMode = GridViewSelectionMode.FullRowSelect;
this.radGridView1.AllowAddNewRow = false;
this.radGridView1.AllowEditRow = false;
 
GridViewTextBoxColumn ColumnId = new GridViewTextBoxColumn
{
         Name = "suppid",
         HeaderText = "Code",
         FieldName = "suppid",
         Width = 80,
         HeaderTextAlignment = ContentAlignment.MiddleCenter,
         TextAlignment = ContentAlignment.MiddleCenter
     };
radGridView1.MasterTemplate.Columns.Add(ColumnId);

 

I'm creating 10 different Columns using the Above Code.

Using the Below Code loading the Data to GridView

DataTable dt = new DataTable();
string query = "Select suppid from p_supplier" ;
SqlCommand cmd = new SqlCommand(query, Conn);
SqlDataAdapter DA = new SqlDataAdapter(query, Conn);
DA.Fill(dt);
 
BindingSource source = new BindingSource();
source.DataSource = dt;
radGridView1.MasterTemplate.DataSource = source;

 

I have shown you only 1 Column only to shorten my Code.

Please Suggest.

Marc
Top achievements
Rank 1
Veteran
 answered on 17 Mar 2021
13 answers
1.3K+ views
hello,

I am using RadDropDownList and binding it in Code behind using a datatable. The issue is when the form loads the RadDropdownlist displays the first record in the list and this fires the selectedindexchanged.
I want the RadDropDownlist to be in the state where the user selects the item he wants from the list and then the selectedindexchanged event fires.

Any ideas?

Thanks
anshul
Top achievements
Rank 1
 answered on 17 Mar 2021
2 answers
154 views

Hello,

I just recently discovered that this tool was added to the Telerik win UI toolbox and love the functionality. Within the editor it is possible to assign a launch argument value. However, after reviewing the documentation I'm not entirely sure how to go about referencing that argument within the toast template, as well as passing in the value for that argument at run time.

I've attached a screenshot of what I'm trying to accomplish within the toast notification editor. Two questions:

1) What's the correct syntax to reference the launch argument variable value within the toast notification editor?

2) Is there a method to assign the variable value prior to calling the .ShowToastNotification(index) method?

 

Thanks!

Eric
Top achievements
Rank 1
 answered on 16 Mar 2021
10 answers
894 views
Hi

I am using RadGridView. In cell edit mode of a decimal column, I do not want the incerement and decrement in cell value. So I set the Step property to 0. It is working. Now by pressing the up and down key in cell edit mode do not change the cell value. But there is a problem if cell is empty and I press up key then first time it puts some value in the cell ( I think that value is some last inserted/updated value of the grid). Can you provide some solution for that.

Also I want that in cell edit mode when user presses up and down key, it commits the cell value and cursor moves to up and down cell accordingly. How can I acheive it. Any Help would be appreciated!

Thnaks

Regards
Nadya | Tech Support Engineer
Telerik team
 answered on 15 Mar 2021
5 answers
326 views

Hello,

my task was to enable zoom of GridView using mouse wheel + Ctrl key. I implemented it with partial success. I am not able to correctly resize some parts of the grid - see attached pic with red rectangles. I can provide a sample project. And a subquestion - is it possible to disable scrolling while the Ctrl Key is pressed?

Thanks in advance for help.

Tomáš

Tomáš
Top achievements
Rank 1
Iron
 answered on 15 Mar 2021
1 answer
145 views

Hi,

I want to call DesktopAlert as ShowDialog instead of show. if any solution available ?

 

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Mar 2021
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
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?