Telerik Forums
UI for WPF Forum
2 answers
1.0K+ views

Have several type of data bound to RadGridView.ItemsSourceProperty, and target cell is in a Not ReadOnly column, how to make cell ReadOnly when DataItem is specified type?

The effect I want is make a column Editable except some cell with specified data type bound to that row, prevent these cell enter EditMode.

I have tried CellStyleSelector, but didn't find IsReadOnly DependencyProperty in GridViewCell.

Also tried using same Template in CellTemplateSelector for CellEditTemplateSelector, but these is no such CellEditStyleSelector, so the cell looks different when enter edit mode.

Thanks.

runer
Top achievements
Rank 1
 answered on 08 Apr 2018
3 answers
116 views
Hi,

Is it possible to Drag Files from a WPF application to the Windows Explorer? If so could you plese let me know on how to do it.

Thank you.
Stefan
Telerik team
 answered on 06 Apr 2018
3 answers
307 views

Using RadGridView in as a Hierarchical grid is it possible to bind the initial parent level and then load any other levels on demand as they are being opened by the user?  If so, does anyone have sample code on how to make this work?  I do not see much in the way of documentation for this in the RadGridView WPF documentation.

With some larger customer datasets our screen is slow at loading all of the data at one time.

Thanks...

Stefan
Telerik team
 answered on 06 Apr 2018
13 answers
236 views
Hello,

How can I achieve a FilterRow that looks like the one I've attached?

Greetings
Sia
Telerik team
 answered on 06 Apr 2018
1 answer
226 views

Hi:

   How can I Merge Multiple xaml files with different styles and retain their respective styles?

 And generate a directory automatically?

   

Tanya
Telerik team
 answered on 06 Apr 2018
1 answer
183 views

I had a xaml document Contains the following contents:

<t:TableRow>
        <t:TableCell ColumnSpan="1" PreferredWidth="Fixed,284.066680908203" RowSpan="1">
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="21" />
            <t:Span Text="the master Name: John" />
            <t:ReadOnlyRangeEnd AnnotationID="21" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="22" />
            <t:Span ForeColor="#FFFFFFFF" Text="c4c030c8-c0d1-4fa3-8d06-92e34ee25072" />
            <t:ReadOnlyRangeEnd AnnotationID="22" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="23" />
            <t:Span Text="Sign:" />
            <t:ReadOnlyRangeEnd AnnotationID="23" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="25" />
            <t:Span Text="IdNo:" />
            <t:ReadOnlyRangeEnd AnnotationID="25" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="26" />
            <t:Span Text="Date:" />
            <t:ReadOnlyRangeEnd AnnotationID="26" />
            <t:ReadOnlyRangeStart AnnotationID="27" />
            <t:Span  Text="     "  UnderlineDecoration="Line" />
            <t:ReadOnlyRangeEnd AnnotationID="27" />
            <t:ReadOnlyRangeStart AnnotationID="28" />
            <t:Span  Text="year" />
            <t:ReadOnlyRangeEnd AnnotationID="28" />
            <t:ReadOnlyRangeStart AnnotationID="29" />
            <t:Span  Text="     " UnderlineDecoration="Line" />
            <t:ReadOnlyRangeEnd AnnotationID="29" />
            <t:ReadOnlyRangeStart AnnotationID="30" />
            <t:Span   Text="month" />
            <t:ReadOnlyRangeEnd AnnotationID="30" />
            <t:ReadOnlyRangeStart AnnotationID="31" />
            <t:Span  Text="     " UnderlineDecoration="Line" />
            <t:ReadOnlyRangeEnd AnnotationID="31" />
            <t:ReadOnlyRangeStart AnnotationID="32" />
            <t:Span Text="day" />
            <t:ReadOnlyRangeEnd AnnotationID="32" />
          </t:Paragraph>
          <t:Paragraph />
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="33" />
            <t:Span Text="the slave  Name: slave" />
            <t:ReadOnlyRangeEnd AnnotationID="33" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="34" />
            <t:Span ForeColor="#FFFFFFFF" Text="076b7ada-a564-454a-9933-3ca6f856876f" />
            <t:ReadOnlyRangeEnd AnnotationID="34" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="35" />
            <t:Span Text="Sign:" />
            <t:ReadOnlyRangeEnd AnnotationID="35" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="37" />
            <t:Span Text="IdNo:" />
            <t:ReadOnlyRangeEnd AnnotationID="37" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:ReadOnlyRangeStart AnnotationID="38" />
            <t:Span Text="Date:" />
            <t:ReadOnlyRangeEnd AnnotationID="38" />
            <t:ReadOnlyRangeStart AnnotationID="39" />
            <t:Span  Text="     " UnderlineDecoration="Line" />
            <t:ReadOnlyRangeEnd AnnotationID="39" />
            <t:ReadOnlyRangeStart AnnotationID="40" />
            <t:Span   Text="year" />
            <t:ReadOnlyRangeEnd AnnotationID="40" />
            <t:ReadOnlyRangeStart AnnotationID="41" />
            <t:Span  Text="     " UnderlineDecoration="Line" />
            <t:ReadOnlyRangeEnd AnnotationID="41" />
            <t:ReadOnlyRangeStart AnnotationID="42" />
            <t:Span  Text="month" />
            <t:ReadOnlyRangeEnd AnnotationID="42" />
            <t:ReadOnlyRangeStart AnnotationID="43" />
            <t:Span  Text="     " UnderlineDecoration="Line" />
            <t:ReadOnlyRangeEnd AnnotationID="43" />
            <t:ReadOnlyRangeStart AnnotationID="44" />
            <t:Span  Text="day" />
            <t:ReadOnlyRangeEnd AnnotationID="44" />
          </t:Paragraph>
        </t:TableCell>
        <t:TableCell ColumnSpan="1" PreferredWidth="Fixed,284.066680908203" RowSpan="1">
          <t:Paragraph StyleName="a">
            <t:Span Text="legal Name:" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:Span Text="Sign:" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:Span Text="IdNo:" />
          </t:Paragraph>
          <t:Paragraph StyleName="a">
            <t:Span Text="Date: " />
            <t:Span  Text="     " UnderlineDecoration="Line" />
            <t:Span  Text="year" />
            <t:Span  Text="  " UnderlineDecoration="Line" />
            <t:Span  Text="month" />
            <t:Span  Text="  " UnderlineDecoration="Line" />
            <t:Span  Text="day" />
          </t:Paragraph>
          <t:Paragraph FontSize="18.6666660308838" StyleName="a">
            <t:Paragraph.ParagraphSymbolPropertiesStyle>
              <s:SpanProperties FontSize="18.6666660308838" FontWeight="Bold" />
            </t:Paragraph.ParagraphSymbolPropertiesStyle>
          </t:Paragraph>
        </t:TableCell>
      </t:TableRow>
    </t:Table>

 

what i knew is the string "the master Name:" how can I get the next span with the text "c4c030c8-c0d1-4fa3-8d06-92e34ee25072" (the text is I want to get) 

 

 

Tanya
Telerik team
 answered on 06 Apr 2018
2 answers
133 views
I have a problem 
<telerik:VisualizationLayer x:Name="informationLayer" ItemsSource="{Binding MapItems}"
                                           ClusteringEnabled="True"
                                           ClusterItemTemplate="{StaticResource ClusterTemplate}"/>

 

when I re-create my item source like

MapItems = new ObservableCollection<MapItem>(list);

Clustering disappear


Martin
Telerik team
 answered on 06 Apr 2018
2 answers
109 views

Curiously; after the last update thad i did, the icon that I configured in the contentImage isn't shown. It has relation with the update or maybe I am configuring something in an erroneous way.

Thank you so much

 

My code: 

Telerik.WinControls.UI.RadDesktopAlert deskp = new Telerik.WinControls.UI.RadDesktopAlert();
deskp.ContentImage = Properties.Resources.alert_danger;
deskp.ThemeName = "TelerikMetroBlue";
deskp.AutoCloseDelay = 6;
deskp.Opacity = (float)1.0;
deskp.PopupAnimationFrames = 20;
deskp.PopupAnimationDirection = (Telerik.WinControls.UI.RadDirection)Enum.Parse(typeof(Telerik.WinControls.UI.RadDirection), "Up");
deskp.FadeAnimationFrames = 20;
deskp.ShowPinButton = false;
deskp.ShowOptionsButton = false;
deskp.CaptionText = "<html><b><span style=\"font-size:14;color:#44224D;\">" + title + "</span></b></html>";
deskp.FixedSize = new System.Drawing.Size(450, 120);


deskp.ContentText = "<html><span style=\"font-size:12;\">" + msg + "</span></html>";
deskp.Show();

wiquezada
Top achievements
Rank 1
 answered on 05 Apr 2018
1 answer
719 views

Hi Team,

 

I am trying to set minheight and maxheight for row while using text wrapping in radgridview.

Please let me know any way to handle rowheight.

 

Thanks,

Amit Kulha

Vladimir Stoyanov
Telerik team
 answered on 05 Apr 2018
11 answers
142 views
Hello, I should introduce Dates values in a pivot, with the possibility to find min and max values. Is it possible? Thanks in advance,
best regards
Kalin
Telerik team
 answered on 05 Apr 2018
Narrow your results
Selected tags
Tags
+? 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?