Telerik Forums
UI for WinForms Forum
5 answers
177 views
Hi,

Ive incorperated your carousel into my application but im having some trouble. Based upon the user clicking a movie from the listview i generate and index in which i wish to use to bring the correct poster to the front of the carousel.

which methods should i be looking at for this?

i just want the carousel to move into the correct position just like when the user clicks on any other visible item.

Regards
Kevin
Peter
Telerik team
 answered on 21 Jun 2012
1 answer
225 views
i develop C# application on VS2010
i use gridview verion 2011-1-11-419
the grid is very slow in form loading for the first time i call the form , it takes 4 seconds with an empty code form
but after the form is loaded and reopen the form it take approx zero seconds
note : if i make a new project with new form and i just dragdrop a new grid in the form then run the application  the problem will be occured

what to do?

thank you
Jack
Telerik team
 answered on 20 Jun 2012
5 answers
478 views

Requirements

RadControls version

 

.NET version

 

Visual Studio version

 

programming language

 

browser support

all browsers supported by RadControls


PROJECT DESCRIPTION                                    
Hi, im new to Rad controls and im developing an app that implements your RadCarosel.

I was adding images / items to the carosel and it works great.The problem i have is, the carosel has a hold on the image which lock me out of modifying the image with another command
eg i have an array of posters that i assign to the carosel, i then have another function that will change the size of the image. Theres a lock/ handle holding the image in memory and i dont know how to dispose if it correctly. I thought it might have been eary to .dispose of all the images in the carosel and reload it when i have finished making changes but this has proved difficult!!

Vb.Net Code

RadCarousel1.VisibleItemCount = 7

 

 

 

 

 

 

Dim i As Integer = 0

 

While i < directorylist.Count

 

Try

 

 

Dim image2 As New RadImageItem

image2.Image =

 

Image.FromFile(directorylist(i) + "\folder.jpg")

 

RadCarousel1.Items.Add(image2)

 

 

Catch ex As Exception

 

 

End Try

Any ideas on how to assign an image to a carosel and then dispose of the image correctly when i need to?

Very limited threads on this control and the documentation is very vague!

Thanks for any help :)

Peter
Telerik team
 answered on 20 Jun 2012
2 answers
1.7K+ views
Hello everyone,

i need to know how i can select the whole text in a RichTextBox by code-behind.

My target is to apply a default font size and font family to the content of the RichTextBox, but ChangeFontSize() and ChangeFontFamily() only applys to selected text and has no effect if there is no selected text. And i can't find any other possibility to set the size and family.

Or does anyone have another solution for applying the styles to the content of the RichTextBox ?

Kind Regards,
Michael
Michael Hilgers
Top achievements
Rank 1
 answered on 20 Jun 2012
4 answers
315 views
I exported HTML from the RadRichTextBox as a fragment and then later tried to import this fragment back into a new RadRichTextBox.  It blows up with a null reference exception when I try to import it back in.  It worked with no errors when I used the default export options. Are fragments not possible to round trip with RadRichTextBox?

HtmlFormatProvider prov = new HtmlFormatProvider();
prov.ExportSettings = new HtmlExportSettings()
    {
        DocumentExportLevel = DocumentExportLevel.Fragment,
        StylesExportMode = StylesExportMode.Inline
    };
string data = prov.Export( _editor.Document );
 
// later...
 
HtmlFormatProvider prov2 = new HtmlFormatProvider();
_editor.Document = prov2.Import( data );    // this line gets the null reference exception at the location below


   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.ConvertToFontStyle(Object value)
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.CreateSpanFromTextNode(INode childNode)
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.ProcessContentNode(INode node)
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.<>c__DisplayClass3.<ProcessNode>b__2()
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.ProcessNode(INode node)
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.ProcessGenericNode(INode node)
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.<>c__DisplayClass3.<ProcessNode>b__2()
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.ProcessNode(INode node)
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.ProcessParagraphNode(INode node)
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.<>c__DisplayClass3.<ProcessNode>b__2()
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.ProcessNode(INode node)
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.ProcessGenericNode(INode node)
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.<>c__DisplayClass3.<ProcessNode>b__2()
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.ProcessNode(INode node)
   at Telerik.WinControls.RichTextBox.FileFormats.Html.Import.HtmlDocumentImporter.Import(Stream input)
   at Telerik.WinControls.RichTextBox.FileFormats.Html.HtmlFormatProvider.Import(Stream input)
   at Telerik.WinControls.RichTextBox.FileFormats.Html.HtmlFormatProvider.Import(String input)
   at Documents._list_SelectedValueChanged(Object sender, EventArgs e) in DocumentsTab.cs:line 99

Fragment contents:
<p style="margin: 0px 0px 0px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px;">
    <span style="font-family: 'Arial';font-style: ;font-weight: bold;font-size: 13.33333px;color: #000000;text-decoration: underline;">High return net</span>
</p>
<p style="margin: 0px 0px 0px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px;">
    <span style="font-family: 'Arial';font-style: ;font-weight: bold;font-size: 13.33333px;color: #000000;text-decoration: underline;">High return gross</span>
</p>
<p style="margin: 0px 0px 0px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px;">
    <span style="font-family: 'Arial';font-style: normal;font-size: 13.33333px;color: #000000;">See handbook page 128</span>
</p>
Michael Hilgers
Top achievements
Rank 1
 answered on 20 Jun 2012
1 answer
80 views
I use this code but I dont' work. Please help me.
// Add data into gridview multicolumnbobox

bool isColumnAdded = false;
bool isColumnAdded1 = false;
void radGridViewDetail_CellBeginEdit(object sender, EventArgs e)
        {
            GridViewEditManager edit = (GridViewEditManager)sender;
             
            GridViewColumn data = edit.GridViewElement.CurrentColumn;
            //MessageBox.Show(data.Index.ToString());
            if (data.Index == 1)
            {
                if (this.radGridViewDetail.CurrentColumn is GridViewMultiComboBoxColumn && data.Index == 1)
                {
                    if (isColumnAdded == false)
                    {
                        isColumnAdded = true;
                        RadMultiColumnComboBoxElement editor = (RadMultiColumnComboBoxElement)this.radGridViewDetail.ActiveEditor;
                        editor.EditorControl.MasterTemplate.AutoGenerateColumns = false;
                        editor.EditorControl.Columns.Clear();
                        editor.EditorControl.Columns.Add(new GridViewTextBoxColumn("strProductID"));
                        editor.EditorControl.Columns.Add(new GridViewTextBoxColumn("memDescription"));
                        editor.EditorControl.Columns.Add(new GridViewTextBoxColumn("dblUnitsInStock"));
                        editor.EditorControl.Columns.Add(new GridViewTextBoxColumn("dblUnitsAllocated"));
                        editor.EditorControl.Columns.Add(new GridViewTextBoxColumn("curSalesPrice"));
                        editor.EditorControl.Columns.Add(new GridViewTextBoxColumn("strWarehouseID"));
                        editor.EditorControl.Columns[0].HeaderText = "Item No";
                        editor.EditorControl.Columns[1].HeaderText = "Description";
                        editor.EditorControl.Columns[2].HeaderText = "Stock";
                        editor.EditorControl.Columns[3].HeaderText = "Available";
                        editor.EditorControl.Columns[4].HeaderText = "Price";
                        editor.EditorControl.Columns[5].HeaderText = "Warehouse";
                        editor.AutoSizeDropDownToBestFit = true;
                        //if (editor.EditorControl.Columns.Count == 8)
                        //{
                        //    editor.EditorControl.Columns.RemoveAt(7);
                        //    editor.EditorControl.Columns.Remove("strNotes");
                        //}
                    }
                }
            }
            if (data.Index == 2)
            {
                if (this.radGridViewDetail.CurrentColumn is GridViewMultiComboBoxColumn &&  data.Index == 2)
                {
                    if (isColumnAdded1 == false)
                    {
                        isColumnAdded1 = true;
                        RadMultiColumnComboBoxElement editor = (RadMultiColumnComboBoxElement)this.radGridViewDetail.ActiveEditor;
                        editor.EditorControl.MasterTemplate.AutoGenerateColumns = false;
                        editor.EditorControl.Columns.Clear();
                        editor.EditorControl.Columns.Add(new GridViewTextBoxColumn("strWarehouseID"));
                        editor.EditorControl.Columns.Add(new GridViewTextBoxColumn("strNotes"));
                        editor.EditorControl.Columns[0].HeaderText = "Warehouse ID";
                        editor.EditorControl.Columns[1].HeaderText = "Notes";
                        editor.AutoSizeDropDownToBestFit = true;  
                    }
                }
            }
 
 
        }
Stefan
Telerik team
 answered on 19 Jun 2012
18 answers
769 views
I am trying to collapse the ribbonbar programmically at times in order to give more real estate to other elements in the application.
I tried setting the Expanded property to false. This does get rid of all of the buttons that were on the bar and the outline of the bar, however it leaves a space where the bar was, the panel below/under it doesn't expand to fill the space.
Ivan Todorov
Telerik team
 answered on 18 Jun 2012
3 answers
192 views
We are developing a new implementation of Microsoft Navision (Dynamics NAV) which will make use of the Role Tailored Client (RTC) and on one of the pages/forms they wish to have an interactive scheduler control, where they can view/edit/create appointments.

We already have a subscription to Telerik so we would like to use the Scheduler control.

Can anyone shed any light on how to integrate this control into the RTC, or point me in the right direction so I work it out?

Thanks
Karl
Karl
Top achievements
Rank 1
 answered on 18 Jun 2012
1 answer
193 views
I'm writing a booking system and am using the Winforms Scheduler control. Based on data provided from the database for each resource, I need to be able to disable and change the display certain days.

For instance, if a consultant (resource row in the Schedule) cannot work on a specific day, then this day for that consultant should be visibly shown to be unavailable (highlighted/dimmed/greyed-out) and any clicking in the day cell for that resource should not trigger any events (new/edit appointmnent, and no context menu)

Can this be done, and if so, how?

thanks
Karl

Ivan Todorov
Telerik team
 answered on 18 Jun 2012
3 answers
188 views
Hi,
i have to use Touchpad instead of Mouse. All Gestures do work with mouse. With touchpad without radcarousel works too. but after i put carousel Control, Touchpad doesn't recognize any points over this control. should i install something or any trick?
thanks
Gary

PS:i mean, is it possible, that we send radcarousel to background of a panel, but visuelly i could see it and doesn't disappeared? therefore all Gestures can be recognized over the panel, but radcarousel would be effected
Ivan Todorov
Telerik team
 answered on 18 Jun 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?