Telerik Forums
UI for WinForms Forum
0 answers
84 views
I want to have a filter for radgridview like as we have for Datawindow platform
http://en.helpdoc-online.com/powerbuilder_9.0/source/pbugp187.htm
so It would be nice if i can have a dll or some solution for its implementation or some application which i can integrate to my solution.
Lokesh
Top achievements
Rank 1
 asked on 03 Nov 2014
2 answers
361 views
How do I get this controls row count?  I would have thought it would be something like ComboBox1.Rows.Count but alas that would be way too easy.  
SSirica
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 31 Oct 2014
4 answers
242 views
I have a dropdownlist bound to a data source with 3 items, iid, cPolicyNo, GroupFundID
I need to reference both iid and groupfundid when the user selects an item.

The method I am trying to use is as below however I am getting an error:

    Error 1 Cannot convert type 'Telerik.WinControls.UI.RadListDataItem' to 'System.Data.DataRow' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion


Thanks for any help.




    private void Underwriting_Load(object sender, EventArgs e)
        {

            this.vPolicyNoForCBOTableAdapter.Fill(this.rG.vPolicyNoForCBO);

            // Load CBO Source
            this.cboPolicyNo.DataBindings.Clear();
            this.cboPolicyNo.DataSource = this.rG.vPolicyNoForCBO;
            this.cboPolicyNo.DisplayMember = "cPolicyNo";
            
            
        }

        private void cboPolicyNo_SelectedValueChanged(object sender, EventArgs e)
        {
            // TheSWShop 103014 Find Policy
            // Behavior - Allow the user to search for the Policy Number, cbo follows this behavior.
            //            In original system, once the first 3 letters are typed pull all of the related Policy Data.
            //            Get latest Year for Policy
            //            Get Group Fund

            DataRow cboPolicyRow = (this.cboPolicyNo.SelectedItem as DataRow);

            var groupfundid = cboPolicyRow["groupfundid"].ToString();

            this.groupFundID = Int32.Parse(groupfundid);

         }
Sam
Top achievements
Rank 1
 answered on 31 Oct 2014
3 answers
3.8K+ views
Hello everybody

I'm using Telerik RadGridView. I'm trying to change the color of one cell depending on the value of another cell. I'm trying to achieve this using this code:

if (e.Column.Name == "colDate" && !string.IsNullOrEmpty(e.CellElement.Value.ToString()))
{
    if (DateTime.Now > DateTime.Parse(e.CellElement.Value.ToString()))
    {
        e.Row.Cells["colColor"].Style.DrawFill = true;
        e.Row.Cells["colColor"].Style.BackColor = Color.Red;
        e.Row.Cells["colColor"].Style.NumberOfColors = 1;
    }
}

But for some reason it doesn't change the color. What I noticed is that when i replace

"e.Row.Cells["colColor"].Style"

with

"e.CellElement"

it changes the color. But I don't want to change the color of the current cell. I want it to change the color of another cell.

Any suggestions? :)
Stefan
Telerik team
 answered on 31 Oct 2014
3 answers
231 views
Dear ,I have your product installed and integrated into Visual Studio 2012 , I am working with UI for WinForms .The question is ;Using the TreeView Visual Studio I was doing this:Dim ret as TreeNode () = Tree.Nodes.Find (node , True) now I want to do the same using the RadTreeView . Can you help me please with this issue , I have several days trying to do this .
Stefan
Telerik team
 answered on 31 Oct 2014
7 answers
2.1K+ views
Hi

I was looking for a way to add items to a radcombobox with a value and a different displayvalue.

For example Display member with Customer Name & Value member with Customer Id

Thanks

Raj
clint
Top achievements
Rank 1
 answered on 31 Oct 2014
3 answers
252 views
The latest release - Q3 2014 - has broken the dropdown control unless we are overlooking something.

Create a RadForm, drop a RadDropDownList control on the form.

Add _8_ items (enough so it goes beyond what shows in the list when you click the drop down) to the dropdown list.

Run the program.

Click the dropdown and you see items 1 through 6, now try to scroll to see items 7 and 8.  The dropdown immediately closes.

Unless we are overlooking something this seems fairly serious as it more or less breaks any app that uses the simplest of dropdown.
Stefan
Telerik team
 answered on 30 Oct 2014
0 answers
111 views
Hi,
I have a main grid on a winform.
When adding rows to it(ONCE) i use a background thread that creates a 2nd grid programmaticlly and adds the rows to it. when it finishes, the main thread calls MainGrid.AddRange(backgroundgrid.rows.toArray()).
It gets the info right, but the values aren't refreshed.
It seems to only refresh when the UNSEEN rows are shown:
When i scroll down the values that weren't shown(below) are correct, when scroll back up it refreshed the grid also.

How do i fix this situation?
NO DB no Dataset no datatable.
Zeev
Top achievements
Rank 1
 asked on 30 Oct 2014
1 answer
107 views
Hi,
I have a radgridview and it has 5 columns and 36 rows
(1 and 2 columns are GridViewTextBoxColumn and
 4 and 5 columns are GridViewComboBoxColumn)
.I wanna add the images as the combobox's items, so I search and
apply the source base on this example.
http://www.telerik.com/forums/gridviewcomboboxcolumn-that-displays-only-icons-images

When I finished the code and run it, some problems happened.

First, in the first picture,
When the scroll of the table is moved down, some cells not conserned with
image combobox display the images(solid dash line image).
I wanna know how to fix that.

Second, in the second picture, when I open and select the
image of comboBox, some texts are shown as figure.
Although these texts are disappeared if I clicked other place,
but I don't want skip that step. (In upper example source, that has same reaction.)
Can I fit that? If it could, I wanna know how to remove that step.

Third picture is about my source.
Please point out my problem.
And if it is possible, I wanna example source about
successful case of my problems.

Thank you.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Oct 2014
3 answers
455 views
I want to sort the grid only on Header click. In sorting when ever we modify the value of the sorted column the rows get auomatically sorted based on the value.
I just want to avoid this auto sorting during modifying the cell values, it should happen only on header click. Is this possible in RadGridView for win form ?
Dimitar
Telerik team
 answered on 30 Oct 2014
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
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
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?