Telerik Forums
UI for WinForms Forum
13 answers
700 views
Hello

I have an query that how can i customize Rad grid view custom filter dialog box.
Like mun text and all.

Thanks & regards
Pulkit Jain
Svett
Telerik team
 answered on 27 Jul 2012
3 answers
218 views
WinForms RadControls Q3 2007
Visual Studio 2005
.NET 2.0

In other grid when I work with check box column I can set value of checkbox pressing space bar. I tried to set value with space bar but RadGridView have a strange behaviour.

1. on first load on first row press once space bar but grid doesn't check
2. after few seconds press another time space bar and grid check cell
3. go to second row with arrow keys
4. press space bar first time on second row and... check on first row disappear ?!? and on check on second row stay off
5. press space bar second time on second row and appears check on second row
6. go to third row and appers check also on the first row ?!?!?

I want a simple way to set checkbox in column similar Microsoft standard control ListView when set with CheckBoxes  = true.

Placed a listview and a radgridview this code can reproduce error and my favourite behaviour.

Thanks in advance,
Emanuele Savarese

        private void Form1_Load(object sender, EventArgs e) 
        { 
            DataTable dt = new DataTable(); 
            dt.Columns.Add("From", typeof(bool)); 
            dt.Columns.Add("To", typeof(bool)); 
            dt.Columns.Add("Description", typeof(string)); 
 
            dt.Rows.Add(false, false, "hi1"); 
            dt.Rows.Add(false, false, "hi2"); 
            dt.Rows.Add(false, false, "hi3"); 
            dt.Rows.Add(false, false, "hi4"); 
            dt.Rows.Add(false, false, "hi5"); 
            dt.Rows.Add(false, false, "hi5"); 
            dt.Rows.Add(false, false, "hi6"); 
            dt.Rows.Add(false, false, "hi7"); 
            dt.Rows.Add(false, false, "hi8"); 
            dt.Rows.Add(false, false, "hi9"); 
            dt.Rows.Add(false, false, "hi10"); 
 
            radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false; 
            radGridView1.Columns.Add(new GridViewBooleanColumn("From")); 
            radGridView1.Columns[0].IsPinned = true; 
            radGridView1.Columns.Add(new GridViewBooleanColumn("To")); 
            radGridView1.Columns[1].IsPinned = true; 
            radGridView1.Columns.Add(new GridViewTextBoxColumn("Description")); 
            radGridView1.Columns[2].ReadOnly = true; 
            radGridView1.Columns[2].Width = 600; 
 
            radGridView1.SelectionMode = GridViewSelectionMode.FullRowSelect; 
            radGridView1.DataSource = dt; 
 
            listView1.View = View.Details; 
            listView1.FullRowSelect = true; 
            listView1.CheckBoxes = true;             
            listView1.Columns.Add("To"); 
            listView1.Columns.Add("Description"); 
            listView1.Items.Add(new ListViewItem(new string[] { "hi", "hi1" })); 
            listView1.Items.Add(new ListViewItem(new string[] { "hi", "hi2" })); 
            listView1.Items.Add(new ListViewItem(new string[] { "hi", "hi3" })); 
        } 



Stefan
Telerik team
 answered on 27 Jul 2012
1 answer
212 views
I am exporting a GridView of about 1500 rows and 20 columns to Excel and PDF.  I do both in a BackgroundWorker Thread.  The Excel export works fantastic and does not lock my UI.  However, the PDF export takes significantly longer and locks my UI thread even though I am running it from a different thread.  

What gives?

This is in my DoWork() method.  It 'hangs' on the "RunExport()" line.

ExportToPDF pdfExporter = new ExportToPDF(uxResultsView);
    pdfExporter.FileExtension = "pdf";
    pdfExporter.PageTitle = "Provider Search Results";
    pdfExporter.FitToPageWidth = true;
    pdfExporter.ExportVisualSettings = true;
 
    pdfExporter.RunExport(fileName);
Svett
Telerik team
 answered on 27 Jul 2012
1 answer
775 views
Hi,

I'm using Radchart in winform to databind to a generic list. How can I show both the Percentage and actual value as the label?

Attached is the desired output.

Below is the sample data

columnname valuedata
< 20 days 112
<= 50 days 532
<= 90 days 40
> 90 days 168

Codes
protected void CreateChart()
        {
            RadChart chartObj = new RadChart();
            chartObj.SkinsOverrideStyles = false;
            chartObj.ChartTitle.TextBlock.Text = "No of Items";
            chartObj.Size = new Size(800, 600);
            chartObj.ItemDataBound += new EventHandler<ChartItemDataBoundEventArgs>(chartObj_ItemDataBound);
            chartObj.DataManager.DataSource = _objBLL.GetData();
            chartObj.DataManager.LabelsColumn = "ColumnName";
            chartObj.IntelligentLabelsEnabled = true;
            chartObj.DataBind();
            chartObj.Series[0].Type = ChartSeriesType.Pie;
            chartObj.Series[0].Name = "Days";
            chartObj.Series[0].Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
            chartObj.Update();
  
            this.Controls.Add(chartObj);
  
        }
  
        protected void chartObj_ItemDataBound(object sender, ChartItemDataBoundEventArgs e)
        {
            if (e.SeriesItem != null)
            {
                DataRowView dtView = e.DataItem as DataRowView;
  
                if (dtView != null)
                {
                    e.SeriesItem.Label.TextBlock.Text = string.Format("{0}%", dtView["ChartValue"]);
                }
            }
        }

Evgenia
Telerik team
 answered on 27 Jul 2012
1 answer
168 views
Hi,

I am using radgrid with autogenerated future. i have around 184 dynamic columns. but i need third position column as Gridviewcomboboxcolumn for this i am using below code. i removed the mold name column and inserted new gridviewcomboboxcolumn in the same position.

    Private Sub gv_CPS_DataBindingComplete(sender As Object, e As Telerik.WinControls.UI.GridViewBindingCompleteEventArgs) Handles gv_CPS.DataBindingComplete
        Dim grid = TryCast(sender, RadGridView)
        If grid Is Nothing OrElse Not grid.Columns.Contains("MOLD NAME") Then
            Return
        End If
        grid.Columns.Remove("MOLD NAME")
        Dim MOLD_NAME_COMBO = New GridViewComboBoxColumn("MOLD NAME")
        MOLD_NAME_COMBO.Name = "MOLD_NAME_COMBO"
        MOLD_NAME_COMBO.HeaderText = "MOLD NAME"
        MOLD_NAME_COMBO.DataSource = objCom.Dynamic_Combo_load("cast(mold_type_id as varchar(100)) as mold_type_id", "Name", "T_SFS_MOLD_TYPE ORDER BY NAME")
        MOLD_NAME_COMBO.ValueMember = "mold_type_id"
        MOLD_NAME_COMBO.DisplayMember = "Name"
        MOLD_NAME_COMBO.FieldName = "MOLD NAME"
        MOLD_NAME_COMBO.Width = 100
        MOLD_NAME_COMBO.DropDownStyle = RadDropDownStyle.DropDown
        MOLD_NAME_COMBO.AutoCompleteMode = AutoCompleteMode.SuggestAppend
        grid.Columns.Insert(3, MOLD_NAME_COMBO)
    End Sub

Please have look the attached image file.
Both combo box values are stored database when i retrieved the record combo value is not displayed. but combo box have the both value.

Please help on this same(urgent)
Kamalakannan
Top achievements
Rank 1
 answered on 26 Jul 2012
3 answers
244 views
Hi every body;
Dear all;


We would like to have the summation of each column row by row without using summary row item (the summary row item is used when we have grouping).
It is appreciated if you can answer that, how we can improve the calculation speed whilst the data source is very large (i.e. grater than 200,000 row).

the scheme of our propose is illustrated in following:

Column A     Column B               Calculated Column
   A                     10                       10
   B                      3                        13
   C                      9                        22
   D                      5                        27


 
Yours Sincerely.
Svett
Telerik team
 answered on 26 Jul 2012
3 answers
416 views
Can someone show me the best way to develop the image for the ribbon bar start button?
Stefan
Telerik team
 answered on 26 Jul 2012
1 answer
288 views
I have a radgrid filled with data that contains date column
I have applied filter to all the column successfully and its working fine.
I am making a report based on radgrid data and I want to show on report From and To dates that has been entered into filtering date columns.

How can I get those two dates that I entered while filtering a date column?
Stefan
Telerik team
 answered on 26 Jul 2012
3 answers
188 views
Hi telerik ,

i  have downloaded the free trail of latest winforms controls. after installation am getting the below error


I tried uninstalling the controls and installed 3 times ,facing the same issues .also i couldn't able to delete this controls from GAC saying some user using this ..please guide me to use the latest version... waiting for the reply.
Thanks.
Dev.
Stefan
Telerik team
 answered on 26 Jul 2012
1 answer
143 views

Hello
i'm using the 2012 Q2 release and when i try to use the value from maskededitbox it doesn't works
if i have this mask: 000-000-0000 and used the value property it will bring me the same mask

and in the RadGridView if i use the Mask Column no matter what kind of mask i tried to use it doesn't works

thanks

Peter
Telerik team
 answered on 26 Jul 2012
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?