Telerik Forums
UI for WinForms Forum
1 answer
248 views
HI,

is there any way that i can use Autocomplete with PropertyGridTextBoxEditor ?

Thanks ,
Ishara
Ivan Petrov
Telerik team
 answered on 20 Nov 2012
7 answers
195 views
Hello,

We currently have a field of our class that is the list of possible Texture that we can assign to a Sprite. It is a collection received by our Converter
class TextureConverter : ResourceConverter
    {
        public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            Type[] tType = new Type[] { typeof(Texture), typeof(TextureAtlas) };
            string[] tResource = ProjectManager.Singleton.CurrentProject.GetResourceNameListForType(tType, false);
            return new StandardValuesCollection(tResource);
        }
    }
And our class member goes like this:
[Category("Settings Sprite")]
        [DisplayName("Texture")]
        [Description("Current Texture")]
        [TypeConverter(typeof(TextureConverter))]
        public virtual string Texture
        {
            get
            {
                return mTextureCBValues;
            }
            set
            {
                if (mTextureCBValues != value)
                {
                    if (value == "")
                    {
                        ResetTexture();
                    }
                    else
                    {
                        Item tTex = ProjectManager.Singleton.CurrentProject.GetResourceByName(value, true, Name);
                        if (tTex is Texture)
                        {
                            mTextureCBValues = value;
                            SetTexture(tTex as Texture);
                        }
                        else if (tTex is TextureAtlas)
                        {
                            mTextureCBValues = value;
                            SetTextureAtlas(tTex as TextureAtlas);
                        }
                        else
                        {
                            SetStatus(Item.StatusState.ERROR, "Texture " + value + " is not found or invalid");
                            ResetTexture();
                        }
                    }
 
                    Refresh();
                    NotifyPropertyChanged();
                }
            }
        }

How is it possible to make that field so we can "search" (auto-suggestion) for the texture name we want?

Kaven
Ivan Petrov
Telerik team
 answered on 20 Nov 2012
0 answers
71 views

deleted  wrong forum

Dave
Top achievements
Rank 1
 asked on 20 Nov 2012
2 answers
200 views
Hi , I have to do a list of thumb images with on the left side a dropdown to select a print format
but whe I try to add a RadDropDownList
to this.Children in the CreateChildElements event I get this error "unknown method add(Telerik.WinControl.UI.RadDropDownList) of telerik.wincontrol.radElementCollection

here is the code
protected override void CreateChildElements()
         {
             base.CreateChildElements();
 
             this.stackLayout = new StackLayoutPanel();
             this.stackLayout.Orientation = Orientation.Horizontal;
 
             this.contentElement = new LightVisualElement();
               this.contentElement.StretchHorizontally = true;
             this.contentElement.MinSize = new Size(220, 2200);
             this.stackLayout.Children.Add(this.contentElement);
 
             imageElement = new clsBackDropItem(null,160,106);
             imageElement.ImageLayout = System.Windows.Forms.ImageLayout.Center;
             this.stackLayout.Children.Add(this.imageElement);
 
             this.buttonElement2 = new RadButtonElement();
             this.buttonElement2.Text = "Button2";
             this.stackLayout.Children.Add(this.buttonElement2);
 
             this.dd=new RadDropDownList();
             this.stackLayout.Children.Add(this.dd);
             this.Children.Add(this.stackLayout);

thanks in advance for any suggestion
ciao
Ivan Todorov
Telerik team
 answered on 20 Nov 2012
1 answer
165 views
Wondering if there is a simple way to do this...

I add an object to my entity context but I have not saved changes yet.  Therefore there is no ID or key associated to the entity.
I do however bind the grids datasource to the entities context.  The data appears in the grid in the appropriate file.

However, if I want to modify or delete a row whereas the entity hasn't been saved, I can't execute a LINQ query or something to get the record; again because it hasn't been saved yet.

Is there a way to get and assign the entity based upon the row selected?

dim detail as Invoice_Detail = gridview.selectedrow(0)....  Or something to that extent.

Thanks
Bob
Julian Benkov
Telerik team
 answered on 20 Nov 2012
2 answers
117 views
I have 2 lineseries charts, one under another.  The horizonal axes labels come from the same data set, however the vertical axes for both vary.

Since the labels for the vertical axes are different, the 0 points for each chart are not aligned.  I haven't been able to figure out how to get these to line up.  What am I missing?

I am trying to accomplish something like that is in the demo for ChartView -> Chart Types -> Stock Series \ Indicators except that I want the vertical axes on the right hand side.

Attached is a screen shot of the 2 graph unaligned.
Boryana
Telerik team
 answered on 20 Nov 2012
3 answers
256 views
When I retrieve a SortDescriptors.Expression from my RadGridView the column names are not escaped when they have a space in the name. The FilterDescriptors.Expression does this correctly (IMO) or at least returns what I expect.

For example, I have a RadGridView bound to a DataTable with the following columns: ID, Unit ID, Name
I have the grid sorted by the column 'Unit ID' and also filtered to include only records where 'Unit ID'=1 at run-time.
I then run the following commands:
string sort = this.myRadGridView.SortDescriptors.Expression;
Console.WriteLine(sort);
 
string filter = this.myRadGridView.FilterDescriptors.Expression;
Console.WriteLine(filter);

I get the following output:
Unit ID ASC
([Unit ID] = 1)

With the FilterDescriptors.Expression value I can insert that string directly  back into a SQL query with no issues. With the SortDescriptors.Expression I have to run an addional routine on the result before I can use it in a query.

I have a workaround I am using right now (simple string replace) but the inconsistant results were something I thought I should bring up here. Maybe the SortDescriptors could be changed to work more like the FilterDescriptors in the future? Anyway, this post is mainly an 'FYI' but if anyone has any comments or tips, they would be appreciated.
Julian Benkov
Telerik team
 answered on 20 Nov 2012
3 answers
160 views
Hi,

When I click the "Click here to add a new row" text on a grid, the new row is overlaid on the text and I insert values in place. The RowIndex of the new row is -1, and this allows me to differentiate between an insert and an edit,

If I call Rows.AddNew though it looks like the row is inserted and then edited, which means it is assigned a RowIndex and I can't now check whether this is an insert or update.

In the BeginEdit event, I check the RowIndex to determine whether we are inserting or editing as some of the columns are Insert Only as :

Dim rowindex As Integer = e.RowIndex
            If rowindex > -1 Then
                If CustomCheckForInsertOnly Then
                    e.Cancel = True
                    Exit Sub
                End If
            End If

This works fine for a click initiated insert, but doesn't for a programmatic insert as the RowIndex is now assigned. 

Is there a way to simulate the "Click here to add a new row" behaviour when calling Rows.AddNew, or alternatively another way to differentiate between an insert and an update in BeginEdit?

Thanks,

Mark.
Stefan
Telerik team
 answered on 20 Nov 2012
10 answers
602 views
Hello,

does any body know how to download

Q2 2010 SP2 (version 2010.2.10.914)  version for winforms.

or
RadControls_WinForms_2010_2_10_914_dev.exe file

i am unable to find for downloading.

help appreciated.


Thanks

Stefan
Telerik team
 answered on 20 Nov 2012
4 answers
119 views
I've set up a Context Tab Group which contains at least 1 tab.  The Name of the tab is shorter than the name of the Context Tab Group name.  This results in the Context Tab Group not fully displaying the name.  It appears that the width of the Context Tab Group takes on the width of all the children tabs associated to it.  How can I lengthen the width of the Context Tab Group to fully display the text regardless of cumulative width of the children tabs?  I've done some trial and error with the AutoSize, AutoSizeMode, and FitToSizeMode to no avail.

Regards,
Stefan
Telerik team
 answered on 20 Nov 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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
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
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Missing User
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Missing User
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?