Telerik Forums
UI for WinForms Forum
1 answer
184 views
 GridViewTemplate childTmpt = new GridViewTemplate();

I want to set childTmpt column width as 100% as in that i want to show 30 columns with full width and this is childgrid.

rgdView.MasterGridViewTemplate.ChildGridViewTemplates.Add(childTmpt);

I dont' want to use childTmpt.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; property

is there any way to set column width 100%.



Thanks in advance.

Please reply me.

Jack
Telerik team
 answered on 25 Jan 2010
0 answers
117 views
Hi Team,

      I am using the following control in my page. ( telerik sp3 with patch files)

    1.radtextbox
    2.radlabel box
    3.radgridview (editable)

    when am leave the text box (using texbox leave event), some value is to fill in to the label control. after that once am entering some other values in gridview column(editable mode). At the time of leave from the gridview column,the textbox event fired automatically.
am unable to solved the problem. 

please help me.

subbarayan
Top achievements
Rank 1
 asked on 25 Jan 2010
5 answers
332 views
I want to say that you've done a great job and your controls look amazing. Now I'm trying to change one of the RibbonBar themes with your Visual Style Builder and I'm a little bit confused.
I have a hierarchy of Chunk - ElementWithCaptionLayoutPanel - FillPrimitive. If I want to change the BackColor of the chunk item which BackColor property I have to change? The BackColor of the Chunk, the BackColor of the ElementWithCaptionLayoutPanel or the BackColor of the FillPrimitive?
jezzicaz789 jezzicaz789
Top achievements
Rank 1
 answered on 23 Jan 2010
2 answers
190 views
  Dim sfd As New SaveFileDialog  
        Dim exporter As ExportToExcelML = New ExportToExcelML(Me.gv_urzadzenia)  
        sfd.DefaultExt = ".xls" 
        sfd.Filter = "Excel files (*.xls)|*.xls|All files (*.*)|*.*" 
        If sfd.ShowDialog() = System.Windows.Forms.DialogResult.OK Then  
 
            Try  
                exporter.SheetName = "urzadzenia" 
                exporter.SheetMaxRows = ExcelMaxRows._1048576  
                exporter.ExportVisualSettings = True 
                exporter.RunExport(sfd.FileName)  
                MsgBox(lng.zwroc_napis_z_nazwy_elementu("usr_planowanie_zostalo_poprawnie_wyeksportowane"), MsgBoxStyle.Information, lng.zwroc_napis_z_nazwy_elementu("okno"))  
 
            Catch ex As Exception  
                MsgBox(lng.zwroc_napis_z_nazwy_elementu("usr_planowanie_niezostalo_wyeksportowane"), MsgBoxStyle.Critical, lng.zwroc_napis_z_nazwy_elementu("okno"))  
 
            End Try  
              
        End If 
Hello. I have a problem with national characters. In grid they look properly but after export to excel  they are converted into question marks. Does anyone know how to solve this problem? Thank you.
bradley baker
Top achievements
Rank 1
 answered on 22 Jan 2010
1 answer
313 views
Dear everybody,

my request is it to dynamically calculate cell values.

I feed my RadGridView with a dataset or datareader. I am looking for an event which gets fired while data is bounded. The method shall allow me to modify the current cell value based on a calculation of other cells. Something similar like excel also provides with the formula stuff.

Is there any way you can help me?

I also tried events like cellvaluechanged, cellvalidation,valuechanging and the other stuff.

Thanks for a quick reply.

best,
Martin Vasilev
Telerik team
 answered on 22 Jan 2010
3 answers
288 views
Hi,
I am experiencing a problem with RadGroupBox.

Scenario...
I have added a radgroupbox in a table layout panel, and set its dock state to fill, so that now it fills a single cell of a table layout panel.
Now i want to add some controls to radgroupbox and want them to resize accordingly as my RadgroupBox resize on my form resize.
So i add a table layout panel to radgroupbox and sets (table Layout panel) dock property to fill but problem arises.

Problem...
When i fill the table layout panel it fills the whole radgroupbox container including the header, footer boundaries etc. 
In a standard group box the table layout panel should only fill the allowable control container not the whole radgroupbox container...
Any solution to this..



P.s. I am attaching some pics..
Thank you

Martin Vasilev
Telerik team
 answered on 22 Jan 2010
1 answer
125 views
I see allowing the user to hit the "Tab" key will navigate through tabs, but I do not know how to implement this.  I have the latest release of Telerik.  Thanks.
Nikolay
Telerik team
 answered on 22 Jan 2010
9 answers
477 views
Hello,

Our MDI Application has a RadDock in the main workspace.
The theme has been reset.
I allow the users to choose a theme for the application, and on choosing the theme, all of the controls have the theme applied correctly.

If the user choosers Office2007Silver, then the background colour of the RadDock changes correctly to a silver/grey colour.
On all other themes, the background colour stays the default blue.

I'd like it to change together with the theme choice correctly. My available themes to choose are:
Office2007Silver
Default
Breeze
Desert
Vista

If this is not possible, I'd like to just set the background colour to a default of my choice, but choosing a new background colour for raddock (or the document container or dock panel) doesn't seem to make any difference.

Thanks
Nikolay
Telerik team
 answered on 22 Jan 2010
2 answers
397 views
Hi,

I have a RadListBox that I fill with just some strings, like this

 

 

RadListBoxItem item = new RadListBoxItem(str);  
listBox.Items.Add(item); 

I want this ListBox to stay sorted, so I set

 

listBox.Sorted = Telerik.WinControls.Enumerations.SortStyle.Ascending; 

Yet, the string are not sorted. What am I missing?

I tried listBox.Items.Sort. The string are sorted, but then selection is screwed up. Clicking the first item in the list will select the actual first item added to the list.

Pierre Alain
Top achievements
Rank 1
 answered on 22 Jan 2010
1 answer
179 views
Dear all ,
I am facing problem with Heirachichal data grid view.
i went thorug the online sample. for bounded and unbouded grid views

with the unbounded grid
 
------------------------------------
i am facing problem for adding the chilld templte rows
GridViewTemplate template = radGridView1.MasterGridViewTemplate.ChildGridViewTemplates[0];
template.Rows.Add()

template.Rows.Add()  functionality is not  supporting. :(


with the bouded grid
--------------------------------
below given is the source code used for bouded grid

 

DataSet

 

ds = new DataSet ();  

 

 

ds.ReadXml(

@"Parent.xml");  

 

 

 

DataTable Parent = ds.Tables[0];

ds =

new DataSet();  

 

ds.ReadXml(

@"Child.xml");  

 

 

DataTable Child = ds.Tables[0]; 

 

radGridView1.AutoGenerateHierarchyFromDataSet =

true;  

 

radGridView1.MasterGridViewTemplate.AllowAddNewRow =

true;  

 

radGridView1.MasterGridViewTemplate.DataSource = Parent;

 

//setup the child template 

 

 

GridViewTemplate template = new GridViewTemplate();  

template.AllowAddNewRow =

true;  

 

template.DataSource = Child; 

 

//create the relation  

 

 

GridViewRelation relation = new GridViewRelation(radGridView1.MasterGridViewTemplate);  

relation.ChildTemplate = template;

relation.RelationName =

"ModuleID";  

 

relation.ParentColumnNames.Add(

"ModuleID");  

 

relation.ChildColumnNames.Add(

"ModuleID");  

 

radGridView1.Relations.Add(relation);

 

// Adding child template to Main Grid  

radGridView1.MasterGridViewTemplate.ChildGridViewTemplates.Add(template);

radGridView1.AutoGenerateHierarchyFromDataSet =

true

Sample Data in Parent Table.
---------------------------------------- 

 

<

 

Table
<
ModuleID>1</ModuleID>  

 

<

 

ModuleName>Organisation</ModuleName>  

 

<

 

ArbModuleName>arbOrganisation</ArbModuleName>

 

 </

 

Table>
Sample Data in child Table
----------------------------------

 

<

 

Table>

 

 <

 

ModuleID>1</ModuleID>

 

 <

 

FormID>2</FormID>  

 

<

 

FormName>frmCountry</FormName>

 

 <

 

FormDescription>Country Details</FormDescription>

 

 <

 

FormArbDescription>Arb Country Details</FormArbDescription>

 

 </

 

Table 

The grid is displaying only the parent table data.
I didnt changed any property of the grid except in the above code

please give me a solution.

Thanking you

Sabindas K S

Julian Benkov
Telerik team
 answered on 22 Jan 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
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?