Telerik Forums
UI for WinForms Forum
3 answers
100 views

I am tracking if document is modified by user so that I can append the text "(modified)" to the form's title, and also to prompt the user to save the modified document. My code also changes the document, but this is not a modification that the user should be concerned with. TextChanged event is alas raised in both cases. So I introduced a flag that means "ignore TextChanged event once". If in event handler the flag is set then just reset it. Otherwise update the form's title.

And now I've added default footer with code, in the same place where all other code changes to the document are made. This causes two events to fire, instead of just one. And now my document is marked as modified from the start. I could change the meaning of the introduced flag to mean "ignore TextChanged event twice", but that now just feels like a hack. Is there a "proper" way to track user's changes and not track changes from the code?

Boby
Telerik team
 answered on 06 Nov 2018
2 answers
458 views

hi expers:

             when i filtered the gridrows,i dont know the count of the filtered rows.

             by the way,i use paged gridview,and i only know how many pages and pagesize 

             the property 'Childrows' always gives the pagesize of the gridview .

             if if count the rows while filtering(the event CustomFiltering). the counts some times go wrong.

             best wishes

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Nov 2018
2 answers
304 views

Hi,

I'm trying to allow additional data on my chart to be panned through via the arrow keys but it appears that keydown and keypress events aren't firing for the cursor keys. Keyup DOES fire on arrow keys at least, but I'd much rather have it happen on keydown. Is there a reason for this behaviour or a workaround/setting I've not noticed?

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Nov 2018
3 answers
157 views

Hi,,,

 

I am using Telerik Q1 2015, i just want to export chart view into image but legend not showing event I set show legend is true.

please help me, bellow is my code

private RadChartView radChartView1;<br><br>        public Form1()<br>        {<br>            InitializeComponent();<br><br>            this.radChartView1 = new RadChartView();<br>            LoadData();<br><br>            this.radChartView1.ShowLegend = true;<br>            this.radChartView1.ChartElement.LegendElement.LegendTitle = "Expenses";<br>            this.radChartView1.ShowTitle = true;<br>            this.radChartView1.Title = "Personal monthly expenses";<br>            <br><br>            //this.Controls.Add(this.radChartView1);<br>        }<br><br>        private void radButton1_Click(object sender, EventArgs e)<br>        {<br>            Application.DoEvents();<br>            this.radChartView1.ExportToImage(@"C:\Users\syahr\Documents\Visual Studio 2010\Projects\TesTelerik\OutputTes\sopp.png", new Size(1871, 1086), ImageFormat.Png);<br>            <br>            RadMessageBox.Show("ok");        <br>        }<br><br>        private void LoadData()<br>        {<br>            LineSeries lineSeries;<br>            LineSeriesDataModel model = new LineSeriesDataModel();<br><br>            for (int i = 0; i < 11; i++)<br>            {<br>                lineSeries = new LineSeries();<br>                lineSeries.CategoryMember = "Month";<br>                lineSeries.ValueMember = "Expense";<br>                lineSeries.LegendTitle = model.GetLegendText(i);<br>                lineSeries.DataSource = model.GetData(i);<br>                lineSeries.PointSize = new SizeF(3f, 3f);<br>                lineSeries.BorderColor = Color.Blue;<br>                lineSeries.IsVisibleInLegend = true;<br><br>                this.radChartView1.Series.Add(lineSeries);<br>                Application.DoEvents();<br>            }<br>        }
zake
Top achievements
Rank 1
 answered on 06 Nov 2018
2 answers
181 views

Hi every one.

I'm using radMap in my project.

I want to know that can i loading my map from tiles that has been already downloaded instead of loading from internet?

In other words can i use cache file for loading map?

thanks...

Lost
Top achievements
Rank 1
 answered on 05 Nov 2018
1 answer
65 views

is there any way to get a summery of for the count of records from radgrid after filtering. 

see attached example for your reference. 

 

thank you 

MOhammad
Top achievements
Rank 1
 answered on 05 Nov 2018
1 answer
96 views
I tried ThemeResolutionService.ApplyThemeToControlTree(this, "ThemeName") it didn't work.
Dimitar
Telerik team
 answered on 05 Nov 2018
6 answers
407 views
In CellValidating i'm doing some validation on the values of the cell and depending if good or not i set e.cancel to true or not.
I would like to had a tooltip for that cell so the user would know what is wrong.
Here is what i'm doing

myObj obj = grdSearchResults.Rows[e.RowIndex].DataBoundItem as myObj;

if(obj==null)
return;

if (e.Value != null)
newValue = e.Value.ToString();

switch (grdSearchResults.Columns[e.ColumnIndex].UniqueName)
{
case "No":
if (!Validation.IsAlphaNumeric(newValue))
{
e.Cancel = true;
errorMsg = "Invalid No PNR. Must be alphaNumeric";
}
if (!e.Cancel && curPax.NoPNR != newValue)
modified = true;
break;

e.Row.Cells[e.ColumnIndex].CellElement.ToolTipText = errorMsg;

e.Row.InvalidateRow();


When a value is not entered correctly, i woul like to show that cell in red with a brief caption but it seem's impossible. Once a cell is cancelled, the client cannot do nothing before he corrects the entered value.

Any help?
Dimitar
Telerik team
 answered on 05 Nov 2018
8 answers
183 views

Hello,

I started using Telerik just recently and this is my first post here.

I have RadChartView that gets populated with different LineSeries based on the selection I make in the Combobox. It works fine, and also I can Export single currently displayed images just fine. However, I need to export images for all combobox options at once by clicking on a single button. Currently I do this by manually switching combobox options from code and printing the charts which in the UI causes the chart to quickly switch from one to another.

My question is: is it possible to export all the charts to images without actually showing the switch visually? If not, any workaround is also welcome. 

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Nov 2018
1 answer
224 views

Hi

I’m using in . Please suggest if there any possible way to change the background in it. 

Thanks in Advance.

Dimitar
Telerik team
 answered on 02 Nov 2018
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?