Telerik Forums
UI for WinForms Forum
3 answers
217 views
Hi

 I have a requirement like shortfall kind of line graph.Kindly anyone give suggetion whether this is possible or not.I attached the screenshot for your reference.
Giuseppe
Telerik team
 answered on 11 Aug 2010
1 answer
111 views
hi,

Recently I downloaded trial version of your products, I think those are good components makes developing stage easier. My question is. Database doesn't support boolean datatypes, so, I use char(1) to represent 'Y', 'N' values, but I need this be displayed by gridviewcheckboxcolumn, how can I do to make it possible since gridviewcheckboxcolumn must be binded to a boolean column into datatable and no way to translate string column datatable into boolean column datatable? 



'Y' - On

'N' - Off



thanks
Svett
Telerik team
 answered on 11 Aug 2010
1 answer
182 views
Hi

In my project I have the following senario:



ColumnGroupsViewDefinition

 

view =  new ColumnGroupsViewDefinition();

 

 

 

 

view.ColumnGroups.Add(new GridViewColumnGroup("Group"));

view.ColumnGroups.Add(new GridViewColumnGroup("ID"));

view.ColumnGroups.Add(new GridViewColumnGroup("Amount"));

view.ColumnGroups.Add(new GridViewColumnGroup("Date "));

view.ColumnGroups.Add(new GridViewColumnGroup("method"));

view.ColumnGroups.Add(new GridViewColumnGroup("request"));

view.ColumnGroups[3].Rows.Add(new GridViewColumnGroupRow());

view.ColumnGroups[4].Rows.Add(new GridViewColumnGroupRow());

view.ColumnGroups[5].Rows.Add(new GridViewColumnGroupRow());

 

view.ColumnGroups[3].Rows[0].Columns.Add(this.grid1.Columns["Now"]);

view.ColumnGroups[3].Rows[0].Columns.Add(this.grid1.Columns["yesterday"]);

view.ColumnGroups[4].Rows[0].Columns.Add(this.grid1.Columns["now"]);

view.ColumnGroups[4].Rows[0].Columns.Add(this.grid1.Columns["yesterday"]);

view.ColumnGroups[5].Rows[0].Columns.Add(this.grid1.Columns["now"]);

view.ColumnGroups[5].Rows[0].Columns.Add(this.grid1.Columns["yesterday"]);

 

DataTable

 

 

 

table = new DataTable();

 

 

 

 

 

 

table.Columns.Add(

 

 

"grp",typeof(string));

 

 

 

 

table.Columns.Add("ID",typeof(string));
table.Columns.Add("Amt",typeof(string));
table.Columns.Add("date",typeof(string));
table.Columns.Add("metd",typeof(string));
table.Columns.Add("req",typeof(string));

 

grid1.MasterGridViewTemplate.AutoGenerateColumns = false;

 

grid1.DataSource = table;

grid1.ViewDefinition = view;






My problem is that I get "Object reference not set to an instance of an object." error on last line that is:
"grid1.ViewDefinition = view;"

I have tryed many things to solve this but I couldn't.


Any help will be appreciated.

Thanks In advance.
Svett
Telerik team
 answered on 11 Aug 2010
4 answers
203 views
Hi!

Could you write a short example with the chart control displaying a point series? My problem is that while I easily can se the point:s value labels in the chart I dont understand how to get the actual dots to be displayed.

I would apreciate a quick response.

Regards,
Oskar
shinu rag
Top achievements
Rank 1
 answered on 11 Aug 2010
1 answer
185 views
I upgraded to 2010.2.10.713 and the themes disapeared off of the dropdown lists for Grid View, as well as several other Telerik controls I use. FIrst pass, there where no themes selected in the Themes tab of the Upgrade/Configuration options. I reran both of them now with Vista selected as well as a view other random ones and there isn't anything in the drop down. The reference is in the project for the theme. Just typing in the name doesn't seem to do anything, no differences in appearance.

What happen, and how do I get it back?

Randy Miller
Vassil Petev
Telerik team
 answered on 10 Aug 2010
1 answer
137 views
Hi,

I am using ColumnGroupsViewDefinition to bind to my grid , however i want to allign the group header as right allign but watever i try it doesnt work , i am able to allign the columns wihin the group but allignment of group header text is what i really need.

Please let me know whether this is possible or not.

Thanks
Pinaki
Martin Vasilev
Telerik team
 answered on 10 Aug 2010
2 answers
198 views
Hello,

I just updated my code and the refrenced dlls to use the Q2 2010 release of telerik controls.

I have a functionality incorporated which calculates values on a cell basis referring to other cells within the grid.
I am using the cellvaluechanged-event to submit the current position and the entered value to my calculation routine.

If grid.Rows(e.RowIndex).Cells(5).Value = "Adjusted Net Requirement (User Input)" Or grid.Rows(e.RowIndex).Cells(5).Value = "Supply Adj. Forecast (User Input)" Then
            If IsNumeric(e.Value) Then
                _supplyLogicLayer.calculateOnTheFly(dsSupply, grid, e.RowIndex, e.ColumnIndex, e.Value)
                '_supplyLogicLayer.calculateOnTheFly(grid, e.RowIndex, e.ColumnIndex, e.Value)
            End If
        End If


the caluclateonthefly procedure basically grabs values from specific cells and does the calculation with them.

Since I upgraded to the new release this procedure takes a tremendous amount of time - the Q1 release has been much faster in processing it that way. Addionaly after setting a new value to a certain cell (f.e. dr.Cells(ColumnIndex).Value = 1000) it isn't shown in the grid directly. I need to refresh it or expand and collapse a child to see the new value.

It is probably important to know that I am using a childgridrelation within the grid.

Let me know what you think.

Thanks

P.S.: We could do a netviewer remote session that you guys can see what is happening here.
Julian Benkov
Telerik team
 answered on 10 Aug 2010
1 answer
153 views
Hi, I bind the gridview in winforms to a generic list with a custom object.
The object implements the INotifyPropertyChanged interface and has the "OnPropertyChanged" event in the setter of almost all properties of said object.
Now the list is being run in a service to update the data and only when scrolling the gridview the gridview is being updated.
Is there a way to have this done automatically? Am I missing something?

Thanks
Julian Benkov
Telerik team
 answered on 10 Aug 2010
1 answer
126 views
Hi.

I've encountered the following strange bevaviour in my GridViews.

Some GridViews in my application use bound ComboBox columns (NOT multi column).
Recently, I added functionality for saving/restoring the grid layout to/from files, using SaveLayout() and LoadLayout() functions of the grid.
Now, it seems, that after calling LoadLayout, my ComboBox columns are no long working properly. When I try to edit the content, I can see the DrowDown-Arrow button, but no content is displayed. The same code works perfectly when I leave out the LoadLayout() call.

I've debugged the code a bit, and it seems to me, that the combo box column "forgets" its data source (assigned during design time) upon calling LoadLayout(). If I re-assign the data source to the column in code after calling LoadLayout(), everything's fine again.

I can live with this workaround, but still wanted to ask if this is a known issue, or if I'm doing something wrong.

Thanks
Martin Vasilev
Telerik team
 answered on 10 Aug 2010
2 answers
246 views
Hi,
   The following is the code I use.  I have attached the pie chart generated by this code.

 

ICollection<PieChartSeries> pieChartList = new List<PieChartSeries>();

 

 

GeneratePieChart generatePieChart = new GeneratePieChart();

 

pieChartList = generatePieChart.GenerateChartSeries();

radChart1.DataManager.DataSource = pieChartList;

radChart1.DataManager.LabelsColumn =

"ItemName";

 

radChart1.DataManager.ValuesXColumn =

"Value";

 

radChart1.IntelligentLabelsEnabled =

true;

 

radChart1.DataBind();

radChart1.Series[0].Name =

"LegendName";

 

radChart1.Series[0].Appearance.LegendDisplayMode =

ChartSeriesLegendDisplayMode.ItemLabels;

 

radChart1.Update();


The legends are not displaying the values of the LegendName property of the colloection pieChartList. 
The LegendName property will have some names like Arvind, Robin, Kumar, Mark, etc...

Now the radChart is taking the legends as the radChart1.DataManager.LabelsColumnradChart1.DataManager.LabelsColumn's data (ItemName). Is it possible to display a different text for the legend (It should be other than the ItemName)?

In the above code I am using the line
radChart1.Series[0].Name = "LegendName";

Does it have any significance?

Regards,
Arvind Robin Kumar.
André Paulo
Top achievements
Rank 1
 answered on 10 Aug 2010
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
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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?