Telerik Forums
UI for WinForms Forum
2 answers
1.4K+ views
I have a RadListView, with a ViewType of Listview, and VerticalScrollBar set to AutoHide.  I simply want to get the width of the control including the scrollbar if visible.

I have tried ClientRectangle.Width - it did not take into account the scrollbar.width

So I tried checking the visibility of the scrollbar, if visible then subtract the scrollbar width.  Even when the scrollbar is visible, it always comes back as Visible=False.

Is this a bug or am I doing wrong something wrong? 
Dim iScroll As Integer = 0
 
'get scrollbar width if needed
If Me.lvwLoadForms.VerticalScroll.Visible = True Then iScroll = SystemInformation.VerticalScrollBarWidth
 
'resize items and group widths
With Me.RadListView1
    .GroupItemSize = New Size(.Width - iScroll, .GroupItemSize.Height)
    .ItemSize = New Size(.Width - .GroupIndent - iScroll, .ItemSize.Height)
End With

Brendan
Top achievements
Rank 1
 answered on 16 Oct 2014
5 answers
801 views
Hi,

I've already performed a search here, and I think I'm doing this right, but the fact is that my RadGridView does not show the image.
The only thing that the field shows is "System.Drawing.Bitmap"

'Loading image from file ( path in database )
     Dim img As Image = Image.FromFile(Reader("Imagem"))
 
'Attempt 1
     r.Cells(2).Value = img
 
'Attempt 2
'Writing to a memory stream
     Dim ms As New MemoryStream
     img.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg)
'passing the bytes to the value field
     r.Cells(2).Value = ms.ToArray
 
'Attempt 3
'Simply loading an image from resources to the value field
     r.Cells(2).Value = My.Resources.icon_fantasma_05


I know I'm doing something wrong, I just don't know what. These 3 attempts , are based / copy from examples given on the intermet..
I've attached a image, which shows what I'm getting at the GridView.

Could somebody please help?

Thank you very much !
Stefan
Telerik team
 answered on 16 Oct 2014
1 answer
91 views
Hi,

We use a gridview with a gridviewrelation.

The Case:

We have a list of projects, for each project we have employees working on a specified project.
For each week they have to put amount of hour(s), W1 -2014, etc... (see picture)
We have also a column W1Description2014 etc... we want to add this below the column of W1-2014, etc...

See picture for more information.

This is de code we use to add the grid relation:

Dim MyProjectRelation As New GridViewRelation(MyBase.SearchGrid.MasterTemplate, template)
MyProjectRelation.RelationName = "ProjectRelations"
MyProjectRelation.ParentColumnNames.Add("projectnr")
MyProjectRelation.ChildColumnNames.Add("projectnr")

In telerik screenshot we see difrent styles, but we can't find this issue in code.

Do you have any solution for this issue ?

With friendly regards.











Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Oct 2014
5 answers
205 views
Hi

            RadGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill
            or
            RadGridView1.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill

            is it possible to fit 100%?

Thank You
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 15 Oct 2014
1 answer
213 views
I am trying to provide a hide and show functionality with tabbed DocumentWindow instances.

The idea is to hide all DocumentWindow instances except one, and then later re-show all the hidden DocumentWindow instances.

The issue is that after hiding them, these windows are no more accessible through the Dock object.
Even when I add the following line when I create a new DocumentWindow instance.
 
documentWin.CloseAction = DockWindowCloseAction.Hide;<br>

It seems as if the Hide() method actually closed the DocumentWindow.

Appreciate any help on this issue.
Thanks
Meir
Dimitar
Telerik team
 answered on 15 Oct 2014
3 answers
154 views
I was wondering if there is a way to change all RadPanorama tile Backcolors at once instead of going through each tile individually.
Shahiran
Top achievements
Rank 1
 answered on 15 Oct 2014
2 answers
576 views
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<script type="text/javascript">  
    function ShowMessage(url) {  
        var win = GetRadWindowManager().GetWindowByName("Message");  
        win.SetUrl(url);  
        win.SetSize(600, 430);  
        win.Show();  
    }  
</script> 
 
<span style="font-size:medium; font-weight:bold"><asp:Label ID="lblTitle" runat="server" Visible="false"></asp:Label></span>  
<br /><br /> 
<asp:GridView ID="gvMessages" runat="server" AllowPaging="True" AllowSorting="False" AutoGenerateColumns="False" onpageindexchanging="gvMessages_PageIndexChanging">  
    <PagerSettings Mode="NextPreviousFirstLast"   
        FirstPageImageUrl="~/DesktopModules/Message/Images/first.gif"   
        FirstPageText="First"   
        LastPageImageUrl="~/DesktopModules/Message/Images/last.gif"   
        LastPageText="Last"   
        NextPageImageUrl="~/DesktopModules/Message/Images/next.gif"   
        NextPageText="Next"   
        PreviousPageImageUrl="~/DesktopModules/Message/Images/previous.gif"   
        PreviousPageText="Previous" /> 
    <Columns> 
        <asp:TemplateField> 
            <ItemTemplate> 
                <div id="divMessageTitle" style="overflow: hidden; width: 150px; text-overflow: ellipsis" Wrap> 
                    <asp:Literal ID="ltMessageTitle" runat="server" Text='<%# FormatTitle(Eval("MessageTitle"), Eval("MessageStyle")) %>'></asp:Literal> 
                </div> 
                <href='#' style="font-size:10px" onclick="ShowMessage('<%# Page.ResolveUrl("~/DesktopModules/Message/Message.aspx?msgid=" + Eval("MessageId")) %>');">[more]</a> 
                <br /> 
                <br /> 
            </ItemTemplate> 
        </asp:TemplateField> 
    </Columns> 
</asp:GridView> 
<asp:Literal ID="ltContent" runat="server"></asp:Literal> 
<br /><br /> 
<telerik:RadWindowManager ID="Singleton" runat="server" Skin="Outlook">  
    <Windows> 
        <telerik:RadWindow ID="Message" runat="server" Modal="True" Behavior="Close" /> 
    </Windows> 
</telerik:RadWindowManager>
 

This is the code which I am using to show a popup on radwindow through javascript but when I run the page the var win = GetRadWindowManager().GetWindowByName("Message"); returns null

please help me on this, the version I am using is 2009.2.826.35


Regards,

Roshin.K

niraj
Top achievements
Rank 1
 answered on 14 Oct 2014
1 answer
166 views
Note: SelectionMode is "FullRowSelect".

Example:
Let us assume the user has 3 rows selected and the "CurrentCell" is the second cell on the third row.

If the user holds Ctrl and clicks the second cell of the third row (still CurrentCell), then the third row will be deselected (highlight goes away).

However, mygrid.SelectedRows.Count is still 3 and SelectionChanging does not fire!

If the user had instead held Ctrl and clicked any other cell in the third row, the visual update is the same but the grid will additionally fire the SelectionChanging event and SelectedRows.Count will be 2, as expected.

This seems like a bug, how can I make this functionality be made more intuitive for the end user?
George
Telerik team
 answered on 14 Oct 2014
3 answers
326 views
Let's say I have a RadButton of width 200 px.  I want the button text to be automatically shortened with an ellipsis (...) at the end if the text is too long to fit in the button width.

How do I do that?
Stefan
Telerik team
 answered on 14 Oct 2014
1 answer
116 views
Hello,

Is it possible to take pre-made telerik theme and customize it?

We really like the "Office2010Black" theme but we want to change some of the colors
Is it possible to customize this theme? this will save us a lot of work

Thanks
Dimitar
Telerik team
 answered on 14 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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?