Telerik Forums
UI for WinForms Forum
3 answers
272 views
Hi

I am currently evaluating your GridView control and I would like to know if it supports lookup columns when data bound.

Just to clarify I want to, for example, bind a grid to the Northwind orders table and have the EmployeeID column show the LastName from the Employees table rather than the EmployeeID.

Regards, Carl Gilbert
Georgi
Telerik team
 answered on 19 Oct 2007
3 answers
164 views
    I think it will be great to have a statusbar control
Nikolay
Telerik team
 answered on 19 Oct 2007
2 answers
288 views
I list by business objects in a listbox. It find it extremly slow to load.
Here is my code:
                    Dim lngTick As Long = Environment.TickCount  
                    lbxPromotionProduct.BeginUpdate()  
                    Dim prods As ProductROCollection = ProductROCollection.GetProductsRO(_identity.CompanyId)  
                    Debug.WriteLine("Time to Load collection" & vbTab & Environment.TickCount - lngTick)  
                    lngTick = Environment.TickCount  
                    If prods.Count > 0 Then 
                        If optPromotionProductListByName.Checked Then 
                            prods.SortStable("productName", System.ComponentModel.ListSortDirection.Ascending)  
                        Else 
                            prods.SortStable("productRef", System.ComponentModel.ListSortDirection.Ascending)  
                        End If 
                    End If 
                    Debug.WriteLine("Time to SortStable" & vbTab & Environment.TickCount - lngTick)  
                    lngTick = Environment.TickCount  
                    With lbxPromotionProduct  
                        .DataSource = Nothing 
                        .DisplayMember = "productRefName" 
                        .ValueMember = "productRef" 
                        .DataSource = prods  
                        Debug.WriteLine("Time to DataSource" & vbTab & Environment.TickCount - lngTick)  
                        lngTick = Environment.TickCount  
                        If .SelectedIndex > -1 Then .SetSelected(.SelectedIndex, False)  
                        Debug.WriteLine("Time to Selected" & vbTab & Environment.TickCount - lngTick)  
                        lngTick = Environment.TickCount  
                    End With 
                    lbxPromotionProduct.EndUpdate()  
                    Debug.WriteLine("Time to EndUpdate" & vbTab & Environment.TickCount - lngTick)  
 
and the output is:
Time to Load collection 501  
Time to SortStable  110  
Time to DataSource  6820  
Time to Selected    0  
Time to EndUpdate   2213 

We are only talking about 584 records so it's not a huge amont of data.

Any advice?
Lovsten
Top achievements
Rank 1
 answered on 19 Oct 2007
2 answers
299 views
Hi,

I'm dynamically populating a RadPanelBar with a series of GroupElements and RadButtonElements. I'd like to know how I can add an onClick handler to each generated RadButtonElement so that I can get the dyncamically generated buttons to perform some function.

I've done similar code with Menu Items which allow an OnClick eventHandler as a parameter when you add items to the Menu;

ReportMenu.MenuItems(f).MenuItems(g).Add("Report X"), New System.EventHandler(AddressOf openReport_Click)) 

Any ideas how I can get this all happening?

Cheers,
Karin
Karin
Top achievements
Rank 1
 answered on 19 Oct 2007
7 answers
226 views
Hi ,

I am using RadPanelBar and I have 2 RadButtonElement inside RadpanelBarGroupElement. I need to have an arrow pointer ( pointing to the right ) of the button whenever the user moves its mouse over it. This will help user to know which form is chosen on the right from these RadButtonElement.
As an example:
Please see any menu items that has arrow buttons on it when it contains submenus.
I want the arrow to appear on the RadButtonelement only when its selected and the respective details are shown on the right side of the form.

Any help on this is appreciated.

Thanks
barkha
Barkha
Top achievements
Rank 1
 answered on 19 Oct 2007
2 answers
144 views
Hi All,

I have a radPanelBar control in my form and by default it has blue color on it group elements and while on the content layout. Also when mouse moves the group button item elements, they highlight as yellow.

I created theme using RadPanel Tasks bar and "Open Theme Builder" to create a new theme and then saved the xml file at the Resources folder and set the compile option to the Embedded Resource.

After this I ran the application but didn't see any chane in the colors of the control.

Can someone please tell me where I am wrong?

Is there any way to send you the sample application that I am trying?

Thanks
barkha
Barkha
Top achievements
Rank 1
 answered on 17 Oct 2007
2 answers
205 views
I have a DockingManger that has two DockPanels setup at design time.
One of the DockPanels I want to allow auto hiding and pinning, the other not.  This works just fine, but I also do not want to allow other potential DockPanels to be docked to this DockingManger.  To do so I set the AllowDocking property on the DockingManger to false.

Unfortunately a side effect of doing so prevents an auto hidden DockPanel from being re-pinned. 

Is there a way around this?
johns
Top achievements
Rank 1
 answered on 17 Oct 2007
1 answer
124 views
Hi Team,

I working with GridView Q2 2007 When I use propery builder for condtional formatting to provide condition if valu is less than 0 then color shld be red.
It is giving me error.
Please provide solution how to set it through property builder step by step.

Thanks
Nicky
Jack
Telerik team
 answered on 17 Oct 2007
1 answer
189 views
hi,

i wanted to restore all elements into my docking manaer,  i could not use this solution as i do not know how many panells i will have and what kind of usercontorlls they will host , i do not want to make if/then for each control deserialization so I wrot this code, which uses aditional xml file to store data about controls stored in panels, and than it uses reflection to reinitilize it


private void SaveLayout()

{

dockingManager1.SaveXML(fileName);

XmlDocument doc = new XmlDocument();

XmlElement root = doc.CreateElement("SerializedControlCollection");

doc.AppendChild(root);

//go through the sites

foreach (IDockingSite site in dockingManager1.DockingSites)

{

//now get panels

foreach (DockPanel pan in site.ManagedDockables)

{

//check if there is anything in panel

if (pan.Controls.Count > 0)

{

//get first child of panel, this one is interesting for me

UserControl userControl = pan.Controls[0] as UserControl;

//check if this is user control

if (userControl != null)

{

XmlElement contElement = doc.CreateElement("Control");

XmlAttribute att = doc.CreateAttribute("DockableGuid");

contElement.Attributes.Append(att);

att.InnerText = pan.ID.ToString();

contElement.InnerText = userControl.GetType().FullName;

root.AppendChild(contElement);

}

}

}

}

doc.Save(controlFile);

}


private void RestoreLayout()

{

if (File.Exists(fileName))

{

dockingManager1.LoadXML(fileName);

}

XmlDataDocument controlInfo = new XmlDataDocument();

controlInfo.Load(controlFile);

//create hashtable to make it easier later

Dictionary<string, string> idToTypeMap=new Dictionary<string, string>();

foreach (XmlElement el in controlInfo.FirstChild.ChildNodes)

{

string guid = el.GetAttribute("DockableGuid");

idToTypeMap[guid] = el.InnerText;

}

//restore contorls inside

foreach (IDockingSite site in dockingManager1.DockingSites)

{

//now get panels

foreach (DockPanel pan in site.ManagedDockables)

{

if(idToTypeMap.ContainsKey(pan.ID.ToString()))

{

string typeName = idToTypeMap[pan.ID.ToString()];

Type t = this.GetType().Assembly.GetType(typeName);

Control con = (Control) Activator.CreateInstance(t);

pan.Controls.Add(con);

}

}

}

}



Julian Benkov
Telerik team
 answered on 17 Oct 2007
2 answers
144 views
I have a problem with removing dockable elements from panel, i registred a eventhandler and I call 
//pan.DockingSite.Remove(pan);
dckingManager1.PrimarySite.Remove(pan);

//dockingManager1.RemoveDocument(pan);


and than I call SaveLayout, but after loading panel is still there, if i however add a new dockable and save it it will persist .
in examples it is only possible to remove all nodes or add new nodes, so i can not see how (and if this can be implemented)


what i have to do to remove panel and save layout without thid panel ?
thanks
almir
Julian Benkov
Telerik team
 answered on 17 Oct 2007
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
ScrollablePanel
DataEntry
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?