Telerik Forums
UI for WinForms Forum
1 answer
159 views
Hello Telerik radgridview team,
i am developing a solution in which user uploads some .txt file to radgridview, can any one help me how to achieve this
i have radgridview control, and i want to assign .txt file fields to datagridview
Plamen
Telerik team
 answered on 27 Dec 2012
17 answers
4.1K+ views
Hi Team,
I am new to winform development.
I have bound the RadDropdownList with values from database with DisplayMember and ValueMember properties set properly.
I can see the items in dropdown with no problem. 
But when I want to assign the value to RadDropdownList, it sets always to 0 (zero).

Please take a look at my code to bind dropdown :
public void FillInvoiceTypeCombo(int EventTypeID)
 {
     object businessObject = null;
      if (EventTypeID == GlobalConstants.ACCOUNTJOURNAL_EVENT_TYPE_ID_FOR_AP_INVOICE)
          businessObject = VoucherDocumentTypeNameValue.GetVoucherTypeNameValue(GlobalConstants.ACCOUNTJOURNAL_EVENT_TYPE_ID_FOR_AP_INVOICE);
      else
            businessObject = VoucherDocumentTypeNameValue.GetVoucherTypeNameValue(GlobalConstants.ACCOUNTJOURNAL_EVENT_TYPE_ID_FOR_PO_WO_SERVICING);
 
     cmbInvoiceType.DataSource = (VoucherDocumentTypeNameValue)businessObject;
     cmbInvoiceType.DisplayMember = "Value";
     cmbInvoiceType.ValueMember = "Key";
}


And in another method, I am setting the value of dropdown :
pub void SetControls()
{
 // Fill DataSet ds with values from db
 
FillInvoiceTypeCombo(int.Parse(ds.Tables[0].Rows[0]["AccountJournalEventTypeID"].ToString()));
cmbInvoiceType.SelectedValue = int.Parse(ds.Tables[0].Rows[0]["InvoiceTypeID"].ToString());
}

But every time I get SelectedValue as 0 (zero).

Can you please tell me how can I set the value of the RadDropdownList?

Peter
Telerik team
 answered on 27 Dec 2012
1 answer
257 views
Hi
I used radmulticolumncombobox and have several problem.
1.I have some column in datasource that it is possible to be null .in this case when press enter ، select first item in multiCol
2.I have several filter in multicol .in this case when press enter ، select first item in multiCol
3.if write number ØŒselect this item only Tab not enter.
when write in multiCol and press Enter ØŒclear text.because write this code . but editorcontrol get me mistake information

 

private

 

 

void CmbMulCol_KeyDown(object sender, KeyEventArgs e)

 

{

 

 

if (e.KeyCode == Keys.Enter)

 

{

 

CmbMulCol.MultiColumnComboBoxElement.ApplyFilter();

 

 

 

if (CmbMulCol.EditorControl.CurrentRow != null && CmbMulCol.EditorControl.CurrentRow.Index >= 0)

 

{

 

 

if (CmbMulCol.EditorControl.CurrentRow.Cells["Title"].Value != null)

 

 

 

if (CmbMulCol.EditorControl.CurrentRow.Cells["Title"].Value.ToString() != "")

 

{

CmbMulCol.Text = CmbMulCol.EditorControl.CurrentRow.Cells[

 

"Title"].Value.ToString();

 

CmbMulCol.SelectedValue = CmbMulCol.EditorControl.CurrentRow.Cells[

 

"Id"].Value;

 

}

}

 

 

else

 

 

 

 

 

{

CmbMulCol.Text =

 

"";

 

}

 

 

if (CmbMulCol.SelectedValue == null)

 

CmbMulCol.Text =

 

"";

 

}

}

 

 

can you help me?

Jack
Telerik team
 answered on 27 Dec 2012
5 answers
894 views
Hi Telerik,
I got 2 forms...I got some datagridview in the form2. I want to change the column header names into French when the user clicks on the french button.

I have created a method in Form2 and called from Form 1:
I made the radgrid modifiers to public and the radpageview changed to public.  When i excute it nothing is changing. When i test with RadMessagebox, it works.

Please assist me. Thannk you.
private void radButton1_Click(object sender, EventArgs e)
     {
         timer1.Enabled = true;
         radLabel1.Visible = true;
         radProgressBar1.Visible = true;
         var f = new Form1();
         f.changeRadGridview();
 
     }
//Form 2 where I want to change the col name of the radgrid
internal  void changeRadGridview()
        {
           
            radGridView1.Columns[2].HeaderText = "First Name";
            radLabel5.Text = "hi";
        }
Julian Benkov
Telerik team
 answered on 27 Dec 2012
4 answers
314 views
I was wondering how exactly exceptions are stored.  In the master event's recurrence rule? 

For example, if I had deleted an occurrence of a recurring appointment, how would that be stored in a database?  Maybe something like DELETEDDATES=ddMMyyyy in the recurrence rule?

Thanks!
Stefan
Telerik team
 answered on 27 Dec 2012
1 answer
375 views
Hi everybody.

I have a problem with CurrentRowChanged event of GridView. My problem is next.

At form's load event  I do this: (rgvClientes is the GridView)

this.rgvClientes.CurrentRow = null;
this.rgvClientes.CurrentRowChanged += new CurrentRowChangedEventHandler(this.rgvClientes_CurrentRowChanged);

And when I click on a Row from the GridView the event CurrentRowChanged fires twice but only the first time, after that it fires only ojne time when a click on a different row.

Someone can explaine me this issue?

Thanks an sorry about my English.
Julian Benkov
Telerik team
 answered on 26 Dec 2012
1 answer
122 views
Hello,

I use RadScheduler in my project and my appointments have custom colors, icons etc.
I add appointments to RadScheduler manually in the following way:
foreach (var app in appointments)
    radScheduler1.Appointments.Add(app);

I have a problem with RadScheduler MonthView. I want to add appointments to MonthView and I want them to be shown sorted by time (IEvent.Start.TimeOfDay), so if app1.Start.TimeOfDay > app2.Start.TimeOfDay and app1.Start.Date == app2.Start.Date then app1 should appear under app2.

I tried to solve this problem by ordering my appointments collection:
var appointments = src.OrderBy(a => a.Start.TimeOfDay);
foreach (var app in appointments)
    radScheduler1.Appointments.Add(app);

But this did not help, so is there a way to solve this problem? Actually I need a way for sorting appointments by time in MonthView.

I am sending you an image of the MonthView, where you can see that appointments are ordered in an inccorrect way. Take a look at Dec 20 and you will see the appointment, that appears at the bottom has its Start.TimeOfDay 09:15, so it should appear as the second starting from the top. Why does it behave in such a strange way?

Thank you for your support.

Karl
Julian Benkov
Telerik team
 answered on 26 Dec 2012
1 answer
283 views
Hi,

I have conditional formatting rules on a parent grid that are defined as expression types 

New ExpressionFormattingObject ("COL1",Expression:="COL2 = 1", etc.)

The compare data is in a different column than the formatting. This works OK for the Grid.MasterTemplate.Columns.

I also have identical rules defined for Grid.MasterTemplate.Templates(0).Columns, however the styling does not get applied for these rows on the child grid. If I change the child rules to be ConditionalFormattingObject type as:

New ConditionalFormattingObject ("COL1", Equals, Value:="1", etc.)

the styles are applied correctly. I can't do this though as the data item is in a different column than the formatting. (test against COL1, style COL2)

Is there something I need to do to get the expression rules to format correctly?

Many thanks,

Mark.
Julian Benkov
Telerik team
 answered on 26 Dec 2012
0 answers
94 views
I had created a radTree binded with sqldatabase
node creation,deletion etc are working fine
Table is like this
Table 1
CREATE TABLE [dbo].[Node0] (
[Node0ID] INT IDENTITY (1, 1) NOT NULL,
[NodeID] INT NULL,
[Node0Name] TEXT NULL,
[Node0Note] TEXT NULL,
PRIMARY KEY CLUSTERED ([Node0ID] ASC)
);

Table 2
CREATE TABLE [dbo].[Node1] (
[Node1ID] INT IDENTITY (1, 1) NOT NULL,
[Node0ID] INT NULL,
[Node1Name] TEXT NULL,
[Node1Note] TEXT NULL,
PRIMARY KEY CLUSTERED ([Node1ID] ASC)
);
Table 3
CREATE TABLE [dbo].[Node2] (
[Node2ID] INT IDENTITY (1, 1) NOT NULL,
[Node1ID] INT NULL,
[Node2Name] TEXT NULL,
[Node2Note] TEXT NULL,
PRIMARY KEY CLUSTERED ([Node2ID] ASC)
);

i want to access Node2Note (value of Node2Note for the selected node)when i clicked a node corresponding to it.Any way?
Julian Benkov
Telerik team
 answered on 26 Dec 2012
2 answers
136 views
I had binded rad tree with an sql database.it is showing nodes perfectly.Using default context menu i add more nodes to the tree.how to save these newly added nodes back to data base like method provided to update scheduler when it is attached to a databse
Stefan
Telerik team
 answered on 26 Dec 2012
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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?