Telerik Forums
UI for WinForms Forum
4 answers
158 views
Hi,

Is there a way to hide a tab without removing it from the Pages collection? Can't find a property to do that.

Thanks!
Adrian
Top achievements
Rank 1
 answered on 20 Jun 2011
1 answer
205 views
Hi,

I have a requirement where I have to compare dates which are in the binded data set to grid. The priority column has to be set to a value and format the cell color to red/orange/gree based on the value of Targetdt and warningdate which is available in the datasource binded to the grid.

I am doing the following.
void rGridViewTasks_ViewCellFormatting(object sender, CellFormattingEventArgs e)
        {
                if (e.CellElement.ColumnInfo.Name == "Priority")
            {
                //if ((DateTime)e.CellElement.RowInfo.Cells["TargetDt"].Value >= DateTime.Now )
                //{
                //    e.CellElement.BackColor = Color.DarkRed;
                //    e.CellElement.Value = "1";
                //}
                //else if (((DateTime)e.CellElement.RowInfo.Cells["WarningDate"].Value >= DateTime.Now) &&
                //     ((DateTime)e.CellElement.RowInfo.Cells["TargetDt"].Value < DateTime.Now))
                //{
                //    e.CellElement.BackColor = Color.DarkOrange;
                //    e.CellElement.Value = "2";
                //}
                //else
                //{
                //    e.CellElement.BackColor = Color.DarkGreen;
                //    e.CellElement.Value = "3";
                //}
            }

}

the above WarningDate and TargetDt columns are not added as the columns in the grid, hence they are coming as null and giving a exception.

I checked the rowinfo databounditem and it is also null. Please advice.

regards,
Khizar

Alexander
Telerik team
 answered on 20 Jun 2011
1 answer
182 views
I am using Telerik Ribbon on my Application's Main Form. which I call from the Login Form within a Separate Thread (i.e. I start a thread, and within that thread, I load Main Form) using Application.Run(new frmMain()). On Main Form's Load Event, I am selecting a tab of Back Stage View dynamically. using following code

mainRibbon.BackstageControl.SelectedItem = bsvTabAccount;
mainRibbon.BackstageControl.ShowPopup(new System.Drawing.Point(0, 56), mainRibbon.RibbonBarElement);

My problem is, if I hit Enter key on back stage view, application throws exception which states,

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.BackstageViewElement.ProcessKeyboardSelection(Keys keyCode)
   at Telerik.WinControls.UI.RadRibbonBarBackstageView.OnKeyDown(KeyEventArgs e)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Note: Exception does not appear if I click any tab of back stage view before I press Enter key.

Any help would be highly appreciated.








Ivan Todorov
Telerik team
 answered on 20 Jun 2011
4 answers
128 views
Hi,

i have a datasource where there is a status column and it is a enumerator having just a status code, I have a requirement that it should show the status text in the grid, but the control should not be a dropdown, it is just a simple text field in the grid.

is this possible to implement something like a combo or lookup but not as a dropdown field?

Regards,
Khizar
Stefan
Telerik team
 answered on 20 Jun 2011
5 answers
893 views
how do i install the internal builds? where do i need to put he assemblies? in GAC or somewhere else? and do i have to add them to the toolbox manually?
Stefan
Telerik team
 answered on 20 Jun 2011
1 answer
87 views
Hi,

I have the following code, It encrypts the text into my access database but when I reopen the application I get encrypted text on the scheduler (it doesnt decrypt). Is there anything I am missing?
 
var summarySchedulerMapping = appointmentMappingInfo.FindBySchedulerProperty("Summary");
summarySchedulerMapping.ConvertToScheduler = new ConvertCallback(ConvertSummaryToScheduler);
summarySchedulerMapping.ConvertToDataSource = new ConvertCallback(ConvertSummaryToDataSource);

private object ConvertSummaryToScheduler(object item)
{
     return Encryption.Decrypt((string)item);
}

private object ConvertSummaryToDataSource(object item)
{
     return (object)Encryption.Encrypt((string)item);
}


Cheers
Ivan Todorov
Telerik team
 answered on 20 Jun 2011
1 answer
170 views

HI,

I have  a need to display dynamic items on X axis i.e form one item to n number of items (may go to 100 or more)

problem is X-Axies label overlapping. i need do not overlap the label item

Need help to fit in my dynamic series and dynamic items on x-axis and the chart should look consistent.

Attached is the image for bad chart i am getting, there are more then 150 items .



Regards
Elumalai.K
Evgenia
Telerik team
 answered on 20 Jun 2011
1 answer
102 views
I'm binding to business objects for Appointments & Resources using EventMappingInfo and ResourceMappingInfo which is working ok, however I cannot see a way to add a Color property ResourceMappingInfo. I am grouping by resource in Timeline view. When the UI is displayed the resources all show up as a dark gray colour which is very hard to read. How can I set the colors of the resources?
RachelThornton
Top achievements
Rank 1
 answered on 20 Jun 2011
1 answer
104 views
Hello,

i am trying to change the background color a row based on specific criteria.  I have been able to successfully able to change the color using CellFormatting event, but the color is only seen when I hover the mouse over a specific cell.  Is there a way to have the color always show?

Scott
Scott
Top achievements
Rank 1
 answered on 17 Jun 2011
1 answer
116 views
Is there a way to make the RadEditor insert <br /> instead of <p> tags when the user presses the Enter key.
Iva Toteva
Telerik team
 answered on 16 Jun 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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?