Telerik Forums
UI for WPF Forum
2 answers
391 views
Hello, I have a problem to understand how the GridViewCheckBoxColumn three state works on a end-user perspective.

What happens: I have a grid having a checkbox column with IsThreeState = true, I launche the form: if i click the checkbox the first time it shows me an horizontal line (undetermined state??), if i click it again it shows no check sign (unchecked state), if I click it again it shows a check sign (checked state). The next click set the check box state to unchecked, the following click to checked state .. and so on, no way to set undetermined state again.

What I need: I need to know how the user can set the state to undetermined state again.

Sample code attached (just in case I'm missing something)

note: The data source is a CollectionListView whose source is a EntityFramework Table bound to an sql 2008 table that have a nullable bit column, mapped to a Nullable<bool> CLR property.

<Window.Resources>
        <CollectionViewSource x:Key="tQTZ_NoliVociViewSource" d:DesignSource="{d:DesignInstance my:TQTZ_NoliVoci, CreateList=True}" />
    </Window.Resources>
    <Grid DataContext="{StaticResource tQTZ_NoliVociViewSource}">
        <telerik:RadGridView  Name="tQTZ_NoliVociRadGridView" ItemsSource="{Binding}" AutoGenerateColumns="False">
            <telerik:RadGridView.Columns>
 <!-- other columns -->
                <telerik:GridViewCheckBoxColumn IsTreeState="True"
                    DataMemberBinding="{Binding colonnaLordo}" UniqueName="colonnaLordo" Name="colonnaLordo" Header="Lordo" Width="70">                   
                </telerik:GridViewCheckBoxColumn>

            </telerik:RadGridView.Columns>
        </telerik:RadGridView>       
    </Grid>
Andrea
Top achievements
Rank 1
 answered on 11 Apr 2011
2 answers
576 views
Hi
I want to  apply  a style when a RadComboBox is not selected value
I try with ComboBox its working correctly but how to apply it in to a telerik:RadComboBox
please help.

My Style

 <Style x:Key="requiredFieldValidationStyle">
            <Style.Triggers>
                <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Text}" Value="">
                    <Setter Property="telerik:RadComboBox.BorderBrush" Value="Red" />
                    <Setter Property="telerik:RadComboBox.BorderThickness" Value="2" />
                </DataTrigger>
            </Style.Triggers>
        </Style>

Combobox

  <ComboBox Style="{StaticResource requiredFieldValidationStyle}" Margin="12,99,24.442,0" Height="24" VerticalAlignment="Top">
            <ComboBoxItem />
            <ComboBoxItem> </ComboBoxItem>
            <ComboBoxItem>1</ComboBoxItem>
            <ComboBoxItem>2</ComboBoxItem>
        </ComboBox>

RadComboBox
   <telerik:RadComboBox Style="{StaticResource requiredFieldValidationStyle}" telerik:Theming.Theme="Vista" Height="53.169" Margin="24.442,12,12,0" Width="219.558" VerticalAlignment="Top">
            
            <telerik:RadComboBoxItem Content=""/>
            <telerik:RadComboBoxItem Content="Item 1"/>
            <telerik:RadComboBoxItem Content="Item 2"/>
        </telerik:RadComboBox>



Thank you
Dani
Telerik team
 answered on 11 Apr 2011
3 answers
163 views

Hi,

I want to Wrap the Group Column Header.How to do that?

Thanks
Anand
Top achievements
Rank 1
 answered on 11 Apr 2011
1 answer
135 views

Hello

Is there way that user can add items to combo Box from the text box of the combo?

Is there sample for this?

Best regard

Ehud

Yana
Telerik team
 answered on 11 Apr 2011
3 answers
394 views
Hello,

I'd like to set the height of a radsplitter container.

<telerik:RadSplitContainer InitialPosition="FloatingOnly" x:Name="ZoomContainer" > 
                <telerik:RadPaneGroup  > 
                    <telerik:RadPane CanDockInDocumentHost="False" CanUserClose="True" x:Name="paneZoom"   
                          Header="Zoom" > 
                            <Grid> 
  <myoject Width="200" Height="200"/> 
</Grid> 
</telerik:RadPane> 
<telerik:RadSplitContainer> 

My object has a fixed size, I'd like the RadSplitContainer to have the same....

And finally I don't want the user can resize splitcontainer. have you a property to do that ?

Thanks Aurore
Yana
Telerik team
 answered on 11 Apr 2011
1 answer
169 views
Dear Support!

Today we updated our telerik WPF controls from 2010 Q3 to 2011 Q1. Stumbled upon the problem that the header of our TabControl is disappeared. We using custom Theme based on Office_Blue.
What files needs to add / check to bring back the headers?

Look forward to your response,
Záby
Petar Mladenov
Telerik team
 answered on 11 Apr 2011
1 answer
175 views
If I use a GridView without TabControl, it is displayed fine:

<telerikgridview:RadGridView IsReadOnly="True" AutoGenerateColumns="False" ItemsSource="{Binding SelectedPatient.Weighings}" ShowGroupPanel="False" RowIndicatorVisibility="Collapsed">
    <telerikgridview:RadGridView.Columns>
        <telerikgridview:GridViewDataColumn DataMemberBinding="{Binding WeightDate}" Header="{lex:LocText S3.ParametersUE.PatientManagement:UIStrings:PatientDetailsView_GridWeighingsHeaderDate}" DataFormatString="{}{0:d}"/>
        <telerikgridview:GridViewDataColumn DataMemberBinding="{Binding Weight}" Header="{lex:LocText S3.ParametersUE.PatientManagement:UIStrings:PatientDetailsView_GridWeighingsHeaderWeight}"/>
    </telerikgridview:RadGridView.Columns>
</telerikgridview:RadGridView>

However, if I put it in a RadTabItem of a RadTabControl, not all horizontal gridlines are visible.

If I set ShowGroupPanel of the grid to True, all gridlines are visible!

Is there a drawing problem in the RadTabControl?

Edit: if i try a regular .NET TabControl, it has the same issue! So maybe it's a GridView issue...
Edit 2: if I set ShowColumnHeaders to False, all lines are visible
Maya
Telerik team
 answered on 11 Apr 2011
3 answers
164 views
I use a dataview as my itemsource. All columns show fine except for one. This data column has values that are mixture of strings, percentages and currency.

Sample values:
N/A
10%
$50


Any ideas why this column show as blank data in the radgridview?
Joshua
Top achievements
Rank 1
 answered on 11 Apr 2011
2 answers
268 views
I have a problem with my ClickOnce deployment that I am doing and I have had this problem multiple times with all of my new applications that are deployed this way. This same problem occurs every time a new Telerik controls version comes out and I am not sure what to do to fix it, or how I have fixed it in the past. The problem always just seems to go away after tweaking some unrelated things.

What is happening is that I have a lot of references to the Telerik.windows.controls dlls. When I use the ClickOnce deployment to deploy one of my projects, I usually get an error message after running the installer that says

'Unable to intall or run the application. The application requires that assembly Telerik.Windows.Controls.Input Version 2010.1.309.35 be installed in the Global Assembly Cache (GAC) first.'

I first check to make sure that the required version is not in the GAC and that is fine but I also check all of my projects and none of the have a reference to that version. Right now, they all have references to the Version 2010.1.603.35. I have also gone in and checked the ClickOnce manifest to see if the problem is present in that as well and sure enough I find both of the following records.

<dependency>
  <dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true">
    <assemblyIdentity name="Telerik.Windows.Controls" version="2010.1.309.35" publicKeyToken="5803CFA389C90CE7" language="neutral" processorArchitecture="msil" />
  </dependentAssembly>
</dependency>
<dependency>
  <dependentAssembly dependencyType="preRequisite" allowDelayedBinding="true">
    <assemblyIdentity name="Telerik.Windows.Controls.Input" version="2010.1.309.35" publicKeyToken="5803CFA389C90CE7" language="neutral" processorArchitecture="msil" />
  </dependentAssembly>
</dependency>

as well as

<dependency>
    <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Telerik.Windows.Controls.dll" size="1207296">
      <assemblyIdentity name="Telerik.Windows.Controls" version="2010.1.603.35" publicKeyToken="5803CFA389C90CE7" language="neutral" processorArchitecture="msil" />
      <hash>
        <dsig:Transforms>
          <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
        </dsig:Transforms>
        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <dsig:DigestValue>e4iP0pIbW/339jWRaqDifRptJ0E=</dsig:DigestValue>
      </hash>
    </dependentAssembly>
  </dependency>
<dependency>
    <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="Telerik.Windows.Controls.Input.dll" size="770560">
      <assemblyIdentity name="Telerik.Windows.Controls.Input" version="2010.1.603.35" publicKeyToken="5803CFA389C90CE7" language="neutral" processorArchitecture="msil" />
      <hash>
        <dsig:Transforms>
          <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
        </dsig:Transforms>
        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <dsig:DigestValue>3Wibpvrir1Btx4aXnHuzt82AWO0=</dsig:DigestValue>
      </hash>
    </dependentAssembly>
  </dependency>

If anyone has any idea why this keeps happening to me then please tell me what I can do to fix it or prevent it from happening again.

As further information, this problem also only seems to occur when I publish and not when someone else publishes the exact same project.

Thank you,
Alex
taras
Top achievements
Rank 1
 answered on 11 Apr 2011
4 answers
188 views
I am trying to use the icon images that are retrieved from the ShGetFileInfo API call.  In this way, for my file explorer I can use all of the windows default images without having to extract them and then place them into separate files.  I would appreciate it if anyone could let me know if this is possible?  Also, is it possible to use an ImageList collection with the TreeView?

Thanks.

Martin Reich

Update:

I have created a set of classes that will place the Shell32.dll icons (or from any other file the user wishes) into an images directory below the executable.  I then point DefaultImageSrc to the file in the images directory.  This works fine except for the 'light yellow' color in the icons.  When the icon is saved to a file, the 'light yellow' is being transformed into white.  If someone can help with his issue, I will post the code for others to use.

Update 2:

I have gotten the correct colors working.  Using an ImageList, I put the icon into the ImageList and then save the icon from the ImageList instance.  This process handles all of the color issues.  If someone would like this code just let me know and I will send it on.
fred williams
Top achievements
Rank 1
 answered on 10 Apr 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?