Telerik Forums
UI for WinForms Forum
1 answer
111 views

Hey :)

I made a radgridview  that displays too multiple columns

And within this radgridview  , it has a column FirstNAme, MiddleName, LastName,  QuizAverage, Quiz1, Quiz2, Quiz3 etc

How can I get the columns that contains the string "Quiz" such as QuizAverage, Quiz1, Quiz2, Quiz3 etc.. without specifying their indexes?
Just by mere Identifying wheter a ceratin column name contains "Quiz"

Thanks for help in this regard :)

Julian Benkov
Telerik team
 answered on 13 Jan 2012
3 answers
125 views
Hi,

We're looking at using the RichTextBox control to generate HTML elements that will appear within a page (for example, to specify a rich text product specification that will appear as part of a product information page).

When HTML is exported from the control, it is exported with large quantities of header markup and additional tags that are unnecessary for our purposes.  Unfortunately, since the styles are contained within the header section, simply stripping out this superfluous content is not possible without losing the text formatting.

Is it possible to configure the HTML provider to generate in-line styles so the formatting will remain consistent when used as part of any HTML document?  Additionally, is it possible to avoid additional markup (such as the classing of paragraphs and spans) when no modifications are being made to the styles in order to avoid the quantity of text generated?

I have the feeling the control is simply unsuitable for our needs, but please let me know if anyone has a solution to this.

Thanks.
Jack
Telerik team
 answered on 13 Jan 2012
1 answer
148 views
I have a BindingList bound to a GridView. I can make changes to the grid which are reflected back into the BindingList. The BindingList is filled from a linq result set. How do I move the changes in the BindingList back to the database?

TRACKING[] data = (from t in context.TRACKINGs
                   where SqlMethods.Like(t.EHT_ISO_DWG, "%02-02%")
                   select t).ToArray();
return new BindingList<TRACKING>(data);

The above code is what is used to fill the BindingList. The return value is the set to the DataSource property of the GridView.
Julian Benkov
Telerik team
 answered on 13 Jan 2012
1 answer
75 views
Hi,
I’m using “RadControls for WinForms Q3 2011 SP1” and I need to display the data in Hierarchical GridView from objects as shown in the attachment. I found in forum that there is a solution http://www.telerik.com/community/forums/winforms/gridview/hierachical-gridview-from-objects.aspx but this is not working with the latest version. Please help me.

Regards.
Muralidhar.
Ivan Petrov
Telerik team
 answered on 13 Jan 2012
12 answers
520 views
I want to position three buttons at the left edge of the main RadMenu of a form.  These buttons need to be created, added, and removed from the menu programmatically, via C#.  Looking through this forum I found a thread advising that I manually position the buttons, and attempted that - but the RadMenu's Size field seems to be holding an incorrect value, which is quite a bit too wide and results in the buttons ending up far off the right of the form and thus not visible.  I know of no other way to get the menu width.  Is there something else I need to do, or some other method I could try to make this work?  I am using version 2011.3.11.1116.  Thanks.
Bill
Top achievements
Rank 1
 answered on 12 Jan 2012
1 answer
250 views
Greetings,

we have just recently aquired Telerik Premium Collection and while exploring its rich funcionality a few questions have arisen about GridView. We are using WinForms and OpenAccess Q3 2011.

1) In combination with OpenAccess what is the best approach when trying to implement automatic CRUD operations on gridview, so far we have looked in knowledge base, code library and demos but information about this is scarce. So how can CRUD be implemented using only grid and binding source without any code behind?

2) Is it possible to have a custom insert template (like in ASP.NET Ajax Grid - InsertItemTemplate) in GridView which can be customized either in code or with Property Builder? Or is it possible to change the GridNewRowElement during grid binding and which event to use?

As an example lets say we have a simple table City in database with ID, Country_ID, State_ID, Name and Description columns. When we bind the grid using BindingSource we show only ID, Name and Description columns and also set the ID coulmn to be read only, however when the user wants to insert a new row the ID column should not be read only because we want the user to manually set the ID. Moreover the insert row should have two comboboxes using its own data sources (from Country and State tables) which would enable the user to select appropriate values from a dropdown menu (county name and state name). Basically we want to have two templates - one for view and one for insert (and potencially also an edit template).

3) Since we are using OpenAccess, is it possible to extract a doimain class object bound to a row during/after edit (in CellValueChanging/Changed) so we dont have to use e.Row.Cells[x].Value beacuse its more error prone?

Any kind of samples (projects especially) or links would be greatly appreciated.
Julian Benkov
Telerik team
 answered on 12 Jan 2012
0 answers
99 views
Hi everyone

public void FillGridCombo(ref Telerik.Web.UI.RadGrid grd, int iCol, DataTable lDTSrc, string sID, string sDisplay)
    {
        try
        {
            System.Collections.Specialized.ListDictionary hList = new System.Collections.Specialized.ListDictionary();
            int iRow = 0;
            for (iRow = 0; iRow <= lDTSrc.Rows.Count - 1; iRow++)
            {
                hList.Add(lDTSrc.Rows[iRow][sID], lDTSrc.Rows[iRow][sDisplay]);
            }
            grd.Columns[iCol].Initialize();
            grd.Columns[iCol].GetCustomPropertyDataFields(hList);

        }
        catch (Exception ex)
        {
            throw ex;

        }
    }

I used this function for getting data in combobox column in ASP.NET Rad GridView which works f9.
I need to know the alternate for the bold rows or if someone has better solution please let me know.

Thanks
Shah
Top achievements
Rank 1
 asked on 12 Jan 2012
1 answer
112 views
Hi Team,

when i try to use latest telerik radcontrols for winforms q3 2011 version, it is showing much differnce in design of shellform for that i am attaching 2 sample prototypes showing these differences.

In both these prototypes i have used size of radribbonbar and deckworkspace are more or less same.In sampletelerikQ2proto project,i have set layourworkspace.dock as none.if i give fill then it fills the whole form,but this does not happen in sampletelerikq3proto.

Herewith i have attached 2 small prototypes of telerik radcontrols for winforms (q3 & q2) 2011 version.

please clarify my above doubts.

Thanks,
Ulaga
Ivan Todorov
Telerik team
 answered on 12 Jan 2012
4 answers
230 views

RadPageView will be the successor of RadTabStrip and RadPanelBar by providing different views over a collection of pages. Each page is a stand-alone Panel where controls may be added through the Visual Studio Designer. The control is fully customizable yet greatly optimized for both memory consumption and performance. It will offer better item sizing and spacing, as well as extended orientation modes over the other two controls. Read more in the following blog posts:

What will happen to the old controls?

The old controls will be supported for at least one year after the release of Q2 2010. Users will nevertheless be encouraged to use RadPageView since it addresses the fundamental shortcomings of the previous controls.

Is upgrading to the new controls easy?

Upgrading from the old to the new control should be easy and painless, unless you have extended the previous controls with custom functionality. If this is the case, please contact Telerik support and we will help you move to the new version. We will also try to provide an automatic upgrade tool with Q2 2010 SP1.

Videos and instructions on how to upgrade from the old versions to the new control will be posted shortly.

How do I get support for the new controls?

To get technical support, either contact Telerik support or post in the PageView Forum.

Nikolay
Telerik team
 answered on 12 Jan 2012
3 answers
128 views
I have a RadSpinEditor with the following ValueChanging event handler:

private void CrewQtyText_ValueChanging(object sender, Telerik.WinControls.UI.ValueChangingEventArgs e)
{
     foreach (Telerik.WinControls.UI.GridViewRowInfo row in RequiredRolesGrid.Rows)
     {
          if (Convert.ToInt16(row.Cells["Workgroup"].Value) > Convert.ToInt16(e.NewValue))
          {
               e.Cancel = true;
               break;
          }
     }
     if(!e.Cancel)
          foreach (Telerik.WinControls.UI.GridViewRowInfo row in RequiredEquipGrid.Rows)
          {
                if (Convert.ToInt16(row.Cells["Workgroup"].Value) > Convert.ToInt16(e.NewValue))
                {
                     e.Cancel = true;
                     break;
                }
           }
 
           if (e.Cancel)
                 MessageBox.Show("Requirements already exist for workgroup " + e.OldValue);
}

Basically if the user has other requirements that depend on the value in the spin editor I don't want them to be allowed to change the spinner.  That seems to work fine, but the buttons on the spinner get stuck once the operation has been Cancelled, and the next time that button is pressed it behaves as though it was in it's old state.  For example (assuming the spinner has an integer value), I increment the spinner to 3 (#1 from screen shot).  Let's say the user has a requirement that prevents them from lowering the spinner value below 2.  Now I decrement the spinner twice (#2 from screen shot).  The first one works, lowering the value to 2.  The second click causes the operation to be canceled.  Now say I increment the value to 5 (#3 from screen shot, note 'depressed' spinner button').  The NEXT time I try to decrement (just once), the value returns to 2 (#4 from screen shot), the last value that caused the operation to be cancelled.  I would expect it to return to 4, 3, then 2.  You can see that the down button on the spinner stays highlighted after the operation is cancelled.  I know this probably sounds confusing.  Please try to follow the screen shot provided, and let me know if you need more detail.
Peter
Telerik team
 answered on 12 Jan 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)
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?