Telerik Forums
UI for WinForms Forum
1 answer
769 views

hi, i use raddropdownlist to get value from raddatagrid when i click cell

this my dropdownlist databind code

private void showKategori()
        {
            try
            {
                string query = "select ID_Kategori, Nama from Kategori";
                SqlDataAdapter da = new SqlDataAdapter(query, con);
                con.Open();
                DataSet ds = new DataSet();
                da.Fill(ds, "Kategori");
                ddlkat.DisplayMember = "Nama";
                ddlkat.ValueMember = "ID_Kategori";
                ddlkat.DataSource = ds.Tables["Kategori"];
                //ddlkat.Text = "Pilih Kategori";
                con.Close();
            }
            catch (Exception ex)
            {
                con.Close();
                RadMessageBox.Show(ex.Message.ToString());
            }
        }

 

and this my datagrid code

try
            {
                con.Open();
                SqlCommand cmd = new SqlCommand("Select a.ID_Obat,a.ID_Kategori, b.Nama,a.ID_Supplier, c.Nama, a.Nama, a.Stok, a.Harga, a.Tanggal_Kadaluarsa,a.Tanggal_Masuk From Obat a JOIN Kategori b ON a.ID_Kategori=b.ID_Kategori JOIN Supplier c ON a.ID_Supplier=c.ID_Supplier", con);
                SqlDataAdapter da = new SqlDataAdapter(cmd);
                DataSet ds = new DataSet();
                da.Fill(ds);
                cmd.ExecuteNonQuery();
                if (ds.Tables[0].Rows.Count > 0)
                {
                    Griddataobat.DataSource = ds.Tables[0];
                    Griddataobat.Columns[0].HeaderText = "ID Obat";
                    Griddataobat.Columns[1].HeaderText = "IDKat";
                    Griddataobat.Columns[2].HeaderText = "Kategori";
                    Griddataobat.Columns[3].HeaderText = "IDSup";
                    Griddataobat.Columns[4].HeaderText = "Supplier";
                    Griddataobat.Columns[5].HeaderText = "Nama Obat";
                    Griddataobat.Columns[6].HeaderText = "Stok Obat";
                    Griddataobat.Columns[7].HeaderText = "Harga Satuan";
                    Griddataobat.Columns[8].HeaderText = "Tanggal Kadaluarsa";
                    Griddataobat.Columns[9].HeaderText = "Tanggal Obat Masuk";
                    Griddataobat.MasterGridViewTemplate.BestFitColumns();
                }
                con.Close();
            }
            catch(Exception ex)
            {
                con.Close();
                RadMessageBox.Show(ex.Message.ToString());
            }

 

 

and this my datagrid when cell is click

private void Griddataobat_CellClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
        {
            txtnamaobat.Text = Griddataobat.Rows[e.RowIndex].Cells[0].Value.ToString();
            ddlkat.SelectedValue = Griddataobat.Rows[e.RowIndex].Cells[1].Value.ToString();
        }

 

 

but my raddropdownlist not change after i click rad gridview

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Apr 2016
6 answers
556 views

Hi!

I'm trying to filter in a Treeview. The filter is working, but I need to show all the childs from the result-nodes.

I know there is custom filtering, but I have no clue how to do this.

Thanks in advance

Willi

 

 

willi
Top achievements
Rank 1
 answered on 12 Apr 2016
7 answers
1.0K+ views

I am using Win7 SP1-64. I've had VS 2013 installed for a year or so. I installed a demo version of the UI for WinForms about a month ago. I installed VS 2015 this week, but didn't run it. (Got busy elsewhere.) I removed the demo version of UI for WinForms and installed the licensed version shortly after installing VS 2015.

So, I have both VS 2013 (Pro, Update 5) and VS 2015 (Community) on the PC.

VS 2013 has a Telerik menu and the Telerik WinForms VSExtensions is an installed extension. VS 2015 does not.have a Telerik menu and the Telerik WinForms VSExtensions is not listed.

 

What do I need to do to enable UI for WInforms in VS 2015? My first inclination is to reinstall it, but I hate doing that without some idea of why it's necessary.

Taras
Top achievements
Rank 1
 answered on 11 Apr 2016
1 answer
139 views
I need to run a code when a row order is changed in GridView. How can I do this?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Apr 2016
1 answer
99 views
It is possible to have heading tags on two lines?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Apr 2016
1 answer
110 views

I am trying to use the sechuler to provide just reminders I dont no if i need the full blown component though as i just seen the reminder dialog component however the code is doing something weird but

 

01.private void Form1_Load(object sender, EventArgs e)
02.      {
03.          setupReminders();
04.          ApertureNetIcon.BalloonTipText = "Aperture Net Notfications.";
05.          ApertureNetIcon.BalloonTipTitle = "ApertureNet";
06.          this.WindowState = FormWindowState.Minimized;
07.      }
08. 
09.      private void Form1_Resize(object sender, EventArgs e)
10.      {
11.          if (WindowState == FormWindowState.Minimized)
12.          {
13.              ShowInTaskbar = false;
14.              ApertureNetIcon.Visible = true;
15.              ApertureNetIcon.ShowBalloonTip(1000);
16.          }
17.      }
18. 
19.      private void setupReminders()
20.      {
21.          SchedulerBindingDataSource dataSource = new SchedulerBindingDataSource();
22.          AppointmentMappingInfo appointmentMappingInfo1 = new AppointmentMappingInfo();
23.          dataSource.EventProvider.DataSource = _dal.GetAllAppointments();
24. 
25.          appointmentMappingInfo1.Description = "Subject";
26. 
27.          appointmentMappingInfo1.End = "End";
28.          appointmentMappingInfo1.Start = "Start";
29.          appointmentMappingInfo1.Reminder = "Reminder";
30.          appointmentMappingInfo1.ResourceId = "ResourceID";
31.          dataSource.EventProvider.Mapping = appointmentMappingInfo1;
32.          this.radScheduler1.DataSource = dataSource;
33.      }

This is the get all appointments

 

01./// <summary>
02./// Gets all apointments.
03./// </summary>
04./// <returns></returns>
05.public IQueryable<Appointment> getAllApointments()
06.{
07.    try
08.    {
09.        var _appointments = apertureNetEntities.Appointments.Where(f => f.isDeleted == false).OrderByDescending(o => o.TimeCode).ToList();
10.        return _appointments.AsQueryable();
11.    }
12.    catch (Exception ex)
13. 
14.    {
15.        string inner = string.Empty;
16.        if (ex.InnerException != null)
17.        {
18.            inner = ex.InnerException.ToString();
19.        }
20.        logger.Error("Error in IQueryable function getAllApointments " + ex.ToString() + " " + inner);
21.        return null;
22.    }
23.}

And if you look in my sql data and my app screen shot its not matching up to whats in the db so it is not i dont understand as displays fine in the web version ?.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Apr 2016
8 answers
4.9K+ views
Hello,

I'm trying to set the rows height for my GridView but I can't find a method...

How can I set the custom rowheight for each row?

I readed lot of thread on this forum but the properties that they use seems to not exists...

May be the forum thread are old and that they are no more valid for the 2014 telerik version...

Thanks
Ciao
Chirag
Top achievements
Rank 1
 answered on 11 Apr 2016
1 answer
288 views

Hello,

I would like to know if there is a way to add an email feature to resources.  For example, when a resource (staff) gets added to a project, is there a way to send that person an email notification that he/she has been included in a project? 

 

Also, is there a way to add staff to the resources table directly from the graphical interface?

 

Thank you in advance for your time.

Luis

Hristo
Telerik team
 answered on 08 Apr 2016
16 answers
738 views
I have a folder with shortcuts in witch I use to build my menu in the panorama control. When I break the code it shows all the shortcuts are in the control, but only the last one shows.
Hristo
Telerik team
 answered on 08 Apr 2016
1 answer
170 views
I would like to ask about a few questions:

1) What will be the effect of trail expiration on our product (local version still in development) ?
2) What is meaning of license per developer (we are targeting two 999 license per developer) ? but we can't understand how will it work in case to team members shifting or machine replacements.
Jennifer
Telerik team
 answered on 08 Apr 2016
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
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?