Telerik Forums
UI for WinForms Forum
5 answers
172 views
Hi everyone!

I need to add a multiline TextBox to the RibbonBar. I used that code in the desingercode (short version ;) )

private InitializeComponent() 
//(...) 
this.radTextBoxElement = new RadTextBoxElement(); 
 
//(...) 
// radRibbonBarGroupMessageText 
//  
this.radRibbonBarGroupMessageText.Items.AddRange(new Telerik.WinControls.RadItem[] {this.radTextBoxElement}); 
this.radRibbonBarGroupMessageText.Name = "radRibbonBarGroupMessageText"
this.radRibbonBarGroupMessageText.Orientation = System.Windows.Forms.Orientation.Horizontal; 
this.radRibbonBarGroupMessageText.Text = "Treść"
// 
//(...) 
// 
 
RadTextBoxElement radTextBoxElement; 

then, using the designer I heve set the properties of this TextBoxElement.TextBoxItem : multiline to true, and the null text to proper info and AcceptReturn = true;

When I run my application, I see the null text, but I can start a new line with enter key and even when I put a lot of text (reach right edge) text doesn,t break to new line... Can someone help me fix that? I will be greatfull.


Peter
Telerik team
 answered on 21 Aug 2009
12 answers
775 views
Hi,

while some of your controls have a "UseDefaultDisabledPaint" property I can't find this on RadTextBox.

My need:
I hav a data entry application.
Left I have a list of items - and on the right the details of it.
The user can edit the details by pressing a button which enables the controls (textboxes and so on).

For better visibility it would be great to have a special style on disalbed Textboxes.

By the way -  the only reason to use RadTextBox instead of Forms.Textbox is the idea to use styles for better visiblity.
Because I see no other reason -- it's more oposite! With Forms.Textbox SHIFT-TAB works!!

So is there a way to change the disabled style?
Even having BLACK as ForeColor would be enough!

Regards

Manfred
Peter
Telerik team
 answered on 21 Aug 2009
28 answers
675 views
What is the best place to update the DB when a new row are added, deleted or modified in the Grid?

Validating?
Validated?
ValueChaging?
ValueChanged?

Thans a lot
Nick
Telerik team
 answered on 20 Aug 2009
3 answers
135 views
I have a docking manager on the main form.  I have a docking manager in each dynamically generated document pane.  How can I restrict docking of panels in the document pane to the docking manager of the same document pane?  I don't want the user to be able to drag dockables from one docking manager to another...


Julian Benkov
Telerik team
 answered on 20 Aug 2009
3 answers
329 views
Hi All,

I have a radGridView that is populated via a TableAdapter:

buUserTableAdapter buUserTA = new buUserTableAdapter();  
protected BindingSource buUserBindingSource = new BindingSource();  
 
buUserBindingSource.DataSource = buUserTA.GetData();  
this.radGvAdminUsers.DataSource = buUserBindingSource; 

The radGridView is read only, however, I have a "detail" section below the radGridView where users can edit the contents of the records.  The database is updated upon clicking a "save" button via a stored procedure of the TableAdapter:

private void radBtnAdminSaveUser_Click(object sender, EventArgs e)  
{  
    int userId = Convert.ToInt32(lblAdminUserDBID.Text);  
    string userLogin = this.radTxtAdminLoginId.Text.ToUpper();  
    string lastName = this.radTxtAdminLastName.Text;  
    string firstName = this.radTxtAdminFirstName.Text;  
    string userPhone = this.radMTxtAdminPhone.Value.ToString().Trim();  
    int userRole = Convert.ToInt32(this.radComboAdminRole.SelectedValue);  
      
    string userRoleDesc = radComboAdminRole.Text;  
    bool userActive = Convert.ToBoolean(this.radCbAdminUserIsActive.Checked);  
    if (userId != 0)  
    {  
        buUserTA.UpdateSP(userId, userLogin, lastName, firstName, userPhone, userRole, userActive, System.Configuration.ConfigurationManager.AppSettings["UserNetworkId"].ToString());  
    }  
    else 
    {  
        //Need to do an insert for a new user and update for the new id  
        userId = Convert.ToInt32(buUserTA.InsertSP(userLogin, lastName, firstName, userPhone, userRole, System.Configuration.ConfigurationManager.AppSettings["UserNetworkId"].ToString()));  
    }  

When this is clicked, the database is properly updated, however, the radGridView does not refresh to reflect the changes.  

From what I've read, it seems like the radGridView is supposed to automatically updated.  What am I missing or doing wrong?  Any help with this is greatly appreciated.

Robert

Victor
Telerik team
 answered on 20 Aug 2009
2 answers
183 views
Hello,

I would like to not allow the user to select an item in my radListBox. I have set the selection mode to none, but this still places a border around the edge of the item. How can I ensure that items do not show as selected in any visible way?

Thanks

Richard
Richard Slade
Top achievements
Rank 2
 answered on 20 Aug 2009
1 answer
114 views
Hi,
I have been facing problems adjusting the column length to best fit based on the maximum data present in any of the columns field.
i.e.
the column should automatically maximize to the maximum length of the records in that column
Can you please Help me out, as currently all of my columns are compressed and i have to manually expand each column to have a look at my data.

Note: My gridview is being populated by list using the (datasource) property.

Victor
Telerik team
 answered on 20 Aug 2009
6 answers
141 views
I'm looking for a way to toggle hide and unhide for the menu bar on an application. I want it to toggle when the user presses 'Alt' just like on Internet Explorer 8.
All attempts I have made so far have failed. Capturing KeyDown has a tendancy to make the toggling flicker if the Alt key is pressed too long. Also, the menu toggles if the user trys ALT+Tab or any other Alt key function.
Victor
Telerik team
 answered on 20 Aug 2009
3 answers
147 views
Hi,

I refer to the three telerik.dll(Telerik.WinControls.dll / Telerik.WinControls.UI.dll / TelerikCommon.dll) for adding Radribbon UI.
Now I should make msi file for installing and testing on other computers.

I just added three dll file on the msi project, and I installed this file on other computer.
After install process, I ran my application and failed process before load ribbon form.

I think my msi file have some problem about telerik dll files.
What should I do for add dll file in msi file? Do I need any setting about registry?

Do you have any suggestions about that? Actually I didn't use msi file before. 
Please let me know, how to add telerik dll..


P.S This msi run normally on my computer.(I installed radcontrols for winforms on my desktop.)
       However it is not a situation what I want.

Regards,
Peter
Telerik team
 answered on 20 Aug 2009
5 answers
195 views
I have created a new EditAppointDialog form, using a custom Appointment Factory.  C#

1)  How can I set the new custom appointment data during manual creation?  I don't see "Email" show as an option.  Am I missing something?  The email data does save & load within the session.   


Appointment appointment = null;
appointment = new Appointment(start, end, summary, description, location);
this.radScheduler.Appointments.Add(appointment);


this.radScheduler.AppointmentFactory = new CustomSchedFactory();


public class CustomSchedFactory : IAppointmentFactory
    {
        #region IAppointmentFactory Members

        public IEvent CreateNewAppointment()
        {
            return new MySched();
        }

        #endregion
    }

public class MySched : Appointment
    {
        public MySched() 
            :base()
        { }

        string email = String.Empty;

        public string Email
        {
            get { return this.email; }
            set 
            {
                if (this.email != value)
                {
                    this.email=value;
                    this.OnPropertyChanged("Email");
                }
            }
        }



2)  I also will have a new combobox added to the custom AppointmentDialog, and I want to add items at form load (similiar to Resources). How I can I add drop-down values to my custom combobox on the radScheduler during Onload of RadForm (not Appointment form)?

this.radScheduler.Resources.Add(new Resource(1,"Test"));
(I have a new "Types" combobox on the custom EditAppointmentDialog)



Jeremy Murtishaw
Top achievements
Rank 1
 answered on 19 Aug 2009
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?