Telerik Forums
UI for WinForms Forum
2 answers
155 views
Hello,

I have a rad panel bar which I want to display without the border. 

So I set the theme to ControlDefault,
open the theme builder from the smart tag,
select RadPanelBarElement from the control structure tree,
edit the Bordercolor, BorderColor2,BorderColor3,BorderColor4 to all be transparent,
preview it and it look exactly as I want it to be.
Then I save the Style sheet in theme file (tried save theme as ... as well)
Return to project,
add the theme to the project,
Go to my RadThemeManage and Load Theme from resources,
Select the theme in the control properties and save.

Now run the prject and, as well as the borders being missing, the panel bar group elements are not as high and have changed colour...

Any ideas?
Stefan
Telerik team
 answered on 17 Mar 2011
1 answer
202 views
Hey all,

I'm having a really strange problem. I created a user control with a group box on it. I placed a few controls inside the group box, docked the group box to the user control, and anchored the controls in the group box to size accordingly. The problem I'm running into is that during the development of the control, everything looks and acts fine. After I compile and drop the user control onto a form, It creates a padded area to the right of the controls... Any ideas whats going on here?

I've attached a couple of screen shots of this for reference.

Stefan
Telerik team
 answered on 17 Mar 2011
2 answers
131 views
How can I get a handle to the appointment(s) in the RadAlarmForm?
I'm trying to get the appointment(s) to mark them as dismissed.

Thanks!
Dobry Zranchev
Telerik team
 answered on 17 Mar 2011
2 answers
323 views
Hi guys,
I am getting this strange error and I am really pulling my hair at the moment. My scenario is simple. I have a drop down list for Categories. When the user Selects and category, I populate another drop down list of subcategory based on the selected category.
Here is the code
private void ddlCategory_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
        {  
            this.PopulateSubCategories();
        }
 
 private void PopulateSubCategories()
        {           
            DataTable dtSubCategories = new SubCategory().GetSubCategoryByCategoryID(Convert.ToInt64(ddlCategory.SelectedItem.Value));
            DataRow dr = dtSubCategories.NewRow();
            dr["ID"] = 0;
            dr["Name"] = "Any";
            dr["CategoryID"] = 0;
            dr["isACtive"] = true;
            dtSubCategories.Rows.InsertAt(dr, 0);
 
            this.ddlSubCategory.DataSource = dtSubCategories;
            this.ddlSubCategory.DisplayMember = "Name";
            this.ddlSubCategory.ValueMember = "ID";
            this.ddlSubCategory.SelectedIndex = 0;
        }

The problem is that ddlCategory.SelectedItem.Value statement throws exception, Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible'. If i skip this function first time and change the index to some other than it works fine. Why is it not returning the SelectedValue on first bind
Thanks
Afraz Ali
Peter
Telerik team
 answered on 17 Mar 2011
2 answers
248 views
Hello,

I encounter very strange problem while using the Telerik GridView.
I am creating the gridview on the fly & then populating the data in those gridviews.

Bydefault I am showing one row in each gridview as selected through programming.
The grid which contains the horizontal scroll bar & when I am looking at the source code of that grid, I am getting the following value which I am using in my jquery to findout the selected index of that specific grid from the 'value' attribute.

<input name="rg_02635_ClientState" id="rg_02635_ClientState" type="hidden" 
autocomplete="off" 
value="{"selectedIndexes":["33"],"reorderedColumns":[],"expandedItems":[],"expandedGroupItems":[],"expandedFilterItems":[],"deletedItems":[],"scrolledPosition":"768,0","popUpLocations":{},"draggedItemsIndexes":[]}"/><BR><BR>

But for the grid which doesn't contain the horizontal scroll bar & when I am looking at the source code of that grid, I am getting the following value, even if I have selected row in the grid.

<input name="rg_02637_ClientState" id="rg_02637_ClientState" type="hidden" 
autocomplete="off"/><BR>


Strange thing is, if I select the highlighted row one more time manually, then I am able to see the following value.
<input name="rg_02637_ClientState" id="rg_02637_ClientState" type="hidden" 
autocomplete="off" 
value="{"selectedIndexes":["0"],"reorderedColumns":[],"expandedItems":[],"expandedGroupItems":[],"expandedFilterItems":[],"deletedItems":[],"scrolledPosition":"0,0","popUpLocations":{},"draggedItemsIndexes":[]}"/><BR>

Why is this strage behaviour? How do I get the selectedIndex for the grid which doesn't contain horizontal scroll.

Looking forward to your response.

Best Regards,
Vishal

vishal
Top achievements
Rank 1
 answered on 17 Mar 2011
2 answers
409 views
Good morning!

My version of the telerik is RadControls for ASP.NET Ajax 2010 Q3.

I'm trying to remove columns that are inserted with the command gridProntuarios.MasterTableView.Columns.Add() of grid through the command "gridProntuarios.MasterTableView.Columns.Clear();" and
"gridProntuarios.Columns.Clear();" but don't work.

What would the solution for this trouble?

Thanks!
Mira
Telerik team
 answered on 17 Mar 2011
1 answer
151 views
Please, see the subject.

Is it possible? Any help, please.

Ivan Todorov
Telerik team
 answered on 17 Mar 2011
1 answer
105 views
Hi,

i create an appointment with Start time:  9:00 Am 10-Mar-2011 and End time 9:05 Am 10-Mar-2011. Another appointment is also create on the same day with Start time:  9:10 Am 10-Mar-2011 and End time 9:15 Am 10-Mar-2011. In Week view, scheduler shows the second appointment in 11-Mar-2011 column. I want the second appointment to be shown on the 10-Mar-2011 column since its the appointment for that day.
 I am using RadControl Q1 2010 SP2 version. Please specify the solution for this version, since its the version that is available in our organization. Please consider this urgent since this is a very critical issue for our application

Regards
Nitin
Nikolay
Telerik team
 answered on 17 Mar 2011
4 answers
239 views
I have a listcontrol set to MultiExtended. When the user clicks on an item the SelectedIndexChanged event fires. However, if the user holds the shift key down and clicks another item, selecting all items between clicks, the event does not fire.  I need to know that the user just added items to the SelectedItems list. What event can I use?  Thanks

Later
Art
Richard Slade
Top achievements
Rank 2
 answered on 16 Mar 2011
3 answers
164 views
I am experiencing the follow problem with the MultiColumn ComboBox control.
First I setup the MultiColumn ComboBox as follows:

 
CategoryRadMultiColumnComboBox.DataSource = _categoriesBindingSource; 
CategoryRadMultiColumnComboBox.DisplayMember = "CategoryName"; 
CategoryRadMultiColumnComboBox.ValueMember = "CategoryId"; 
CategoryRadMultiColumnComboBox.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList; 
 
RadMultiColumnComboBoxElement categoriesElement = CategoryRadMultiColumnComboBox.MultiColumnComboBoxElement;          
categoriesElement.EditorControl.MasterGridViewTemplate.AutoGenerateColumns = false;       
categoriesElement.EditorControl.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;           
categoriesElement.EditorControl.MasterGridViewTemplate.Columns.Clear(); 
categoriesElement.Columns.Add(CreateGridViewDataColumn("StandardId")); 
categoriesElement.Columns.Add(CreateGridViewDataColumn("CategoryId")); 
categoriesElement.Columns.Add(CreateGridViewTextBoxColumn("#", "CategoryNumber", 30, 30)); 
categoriesElement.Columns.Add(CreateGridViewTextBoxColumn("Name", "CategoryName", 100)); 

On the SelectedIndexChange event of another ComboBox I set the filter for the datasource as follows:

private void StandardRadMultiColumnComboBox_SelectedIndexChanged(object sender, EventArgs e) 
{ 
            RadMultiColumnComboBox cbo = (RadMultiColumnComboBox)sender; 
            _categoriesBindingSource.Filter = String.Format("StandardId = '{0}'", cbo.SelectedValue.ToString()); 
             
            RadMultiColumnComboBoxElement categoriesElement = CategoryRadMultiColumnComboBox.MultiColumnComboBoxElement; 
             
            if (categoriesElement.Rows != null && categoriesElement.Rows.Count == 0 && CategoryRadMultiColumnComboBox.SelectedItem != null) 
            { 
                CategoryRadMultiColumnComboBox.SelectedItem = null; 
                CategoryRadMultiColumnComboBox.SelectedValue = null; 
                CategoryRadMultiColumnComboBox.Text = " "; 
            }             
} 

Now when the filtering results in 0 rows in the DataSource the Text property retains the previous value and I can not seem to clear it not matter what properties I change.
Jack
Telerik team
 answered on 16 Mar 2011
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?