Telerik Forums
UI for WinForms Forum
8 answers
173 views
I am new to using visual studio.

How can I bind RadScheduler to a local database already created?

Regards.
Stefan
Telerik team
 answered on 07 May 2015
15 answers
892 views
Hi Telerik team.
I am using Telerik's RadListView in ListView mode. (latest library)
I am implementing some log window and visually It looks like some chat window, each new log entry is new ListViewDataItem and the window itself is a RadListView.
I do ask it to wrap text in visual item formatting event handler by :
  private void OnTextAreaVisualItemFormatting(object sender, ListViewVisualItemEventArgs e)
        {
            e.VisualItem.TextWrap = true;
        }

And I also allow arbitrary item height, since I should be able to display in each list item text of any length.
There is something I have to take care about and  I can't figure out how to do it. ListView leaves too much space around text in every visual item. I mean it wraps text fine, but leaves spare 15 pixels on top and at the bottom of each visual item.
I tried to add line
 e.VisualItem.Padding = new Padding(0);
to formatting even handler, but it didn't helped.
 
Do I have any control on VisualItem size, padding while text wrap is enabled? Am I clear?
Regards, Artem
Igor
Top achievements
Rank 2
 answered on 06 May 2015
1 answer
215 views

Hi,

I have a RadTreeView with some items inside and want to drag and drop items to a custom control derived from RadControl (which is inside a DocumentWindow in a RadDock).

I tried to attach TreeViewElement.DragDropService.PreviewDragOver event but it does not fire for my custom control. (Have set AllowDrop to true and tried to implement ISupportDrop interface but no luck)

Any help would be appreciated.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 May 2015
2 answers
325 views

Hi,

we got a pretty infuriating problem with Telerik for WinForms. We don't know why but the project started to producing errors when renaming RadControls: "Property value is not valid." (see attached screenshot). The renaming is still done, but the code for the old name is still left behind in the designer. So if I add a checkbox, it gets the name "radCheckBox1" and rename it to "radCheckBoxUser", the error will pop up and code for both will stay in the designer code. Also, if I create an event via the property window in VS for radCheckBoxUser, it will still reference the old checkbox and create a "radCheckBox1_ToggleStateChanged" event. So almost every time we add or change a control, we have to clean up designer code and code behind, which is too time consuming.

Can anybody give us a clue as to why this behavior occurs and help us to solve this problem? It would be really appreciated.

Thanks and regards,

Steve.

Steve
Top achievements
Rank 1
 answered on 06 May 2015
8 answers
566 views
Morning,

I'm testing out these controls and have run into a problem...  I hope someone can help.

I have a problem with automatically setting the item heights of the dropdown items.   In the attached image, you will see that the textbox font size is much larger than the items that appear in the drop down.   Since my application is a touch screen application, I need these to be larger so the users can actually interact with the items in the drop down and also the dropdown style must be combobox like so the user's can search the drop downs.

I have tried the following in several different groupings:
RadDropDownList1.ListElement.AutoSizeItems = True
RadDropDownList1.ListElement.ItemHeight = 34
RadDropDownList1.DropDownListElement.ItemHeight = 34
RadDropDownList1.DropDownListElement.AutoSize = True
RadDropDownList1.DropDownListElement.AutoSizeItems = True

If there are additional details/settings that would help, please let me know and I will include them.
Cheers
DJ
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 May 2015
1 answer
149 views

There's a step property in the RadTimePicker, which I up untill this point believed set the amount of hours / minutes to step when the buttons in the timepicker were clicked, this however, doesn't seem to be the case. Why is there no step property for hours and minutes? 

 

To explain further: I want the user to only be able to step by one hour or by 30 minutes, is there no way of achieving this with the given properties existing within the Timepicker?

Hristo
Telerik team
 answered on 05 May 2015
1 answer
47 views
I updated my version of telerik in Telerik_UI_for_WinForms_2015_1_331_dev, it has a bug, even in demo of telerik. When scrolling the pageview with mutiple page in explorer mode. Please advise us what to do. Thanks
Dimitar
Telerik team
 answered on 04 May 2015
1 answer
77 views

I make a query to a database SQL attempt to bring the result to a radGridView .... I add the row but no data as it should?

private void radButton1_Click(object sender, EventArgs e)
{
if(txtNro.Text=="")
MessageBox.Show("DEBE INGRESAR UN NRO DE ORDEN", "ATENCION", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
else
if (txtNro.Text != "")
{
conexion.Open();
SqlCommand consulta = new SqlCommand("select Convert(varchar(10),fecIni,103) as fecIni ,Convert(Varchar(10),fecFin,103) as fecFin from ordenes where nro_orden=@nro", conexion);
consulta.Parameters.AddWithValue("@nro", Convert.ToInt32(txtNro.Text));
SqlDataReader registro = consulta.ExecuteReader();
if (registro.Read())
{
labelIni.Text = Convert.ToString(registro["fecIni"]);
labelFinal.Text = Convert.ToString(registro["fecFin"]);
}
else
{
MessageBox.Show("NO SE ENCONTRO EL NUMERO DE ORDEN INGRESADO", "ATENCION", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
labelIni.Text = "";
labelFinal.Text = "";
}
conexion.Close();
DataTable dt = new DataTable();
conexion.Open();
SqlCommand consulta2 = new SqlCommand("select medicamento,cantidad,programa,precioUnit,precioFin from DetalleOrden where nro_orden=@nro",conexion);
consulta2.Parameters.AddWithValue("@nro", Convert.ToInt32(txtNro.Text));
SqlDataAdapter da = new SqlDataAdapter(consulta2);
da.Fill(dt);
rgv.DataSource = dt;
conexion.Close();


}
}

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 May 2015
1 answer
78 views

 

Input string in TextBox then use RadTreeView.FindNodes(string) to search, how can I do that can auto select the result node and focus on the result node?

very appreciated!!

 

Stefan
Telerik team
 answered on 04 May 2015
3 answers
180 views

Hi, I am using a GridViewMaskBoxColumn to edit and display a 12 character long string as follows: "AAAA-AAAA-AAAA"

I am using standard mask type and mask as  ">LLLL-LLLL-LLLL"  which forces all input characters to uppercase.

The editor works fine when inputing the string in the cell, displaying correctly the prompt characters ("_") and seperation literals ("-").

However, the text after editing is finished appears in the grid as "AAAAAAAAAAAA" instead of the desired "AAAA-AAAA-AAAA" of the mask format, which incidently is the default behavior of the maskededitbox editor I use in other parts of my application.

Can you please suggest why the desired text format behavior of the maskededitbox is not implemented in the gridview, or a way to go around this problem?

 

Regards,

 

George

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 May 2015
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?