Hey
I have some problem with Kendo.Grid()
I wanna add filter for some column value then is NULL.
Code here:
x.Ajax().Read(r => r.Action("DataSource", "SRV_Service", new { area = "SRV" }))
.Filter(f => f.Add(s => s.PID).IsEqualTo((Guid?)null))
Datasource when i use null value filter.
https://resimyukle.xyz/resim/KU48JA
MVC Enums for filter operators
public enum FilterOperator
{
IsLessThan = 0,
IsLessThanOrEqualTo = 1,
IsEqualTo = 2,
IsNotEqualTo = 3,
IsGreaterThanOrEqualTo = 4,
IsGreaterThan = 5,
StartsWith = 6,
EndsWith = 7,
Contains = 8,
IsContainedIn = 9,
DoesNotContain = 10
}
And your "Operator used in FilterDescriptor" keys has IsNull operator
http://docs.telerik.com/aspnet-mvc/api/Kendo.Mvc/FilterOperator
How can i do append IsNull operator on Kendo.Mvc.FilterDescriptor ?
Please help me
Hi,
I want to add button at the end to drop down in AutoCompleteBox. Can Any one suggest me the best approach.
Regards,
Viswa Teja.
Hi!
Last two days I have been recording tests on Web types and Wpf types separately
Seems like 'random name generator' is working fine in Web Type test. But is it possible to use random ‘DataBindVariableName’ from Web types test to Wpf Type test?
Thanking you!
Kind Regards
Sheerin
Hi!
I have been using Test Studio in 2 days, so far Its working fine on WPF project. But I get into a problem. In our WPF project, we have a part web site for login. Seems like teststudio doesn’t recognize whatever happends inside the red markings (see the image) as that is website part in our WPF project.
1. Is there any way around this problem?
2. I suppose I also need to login first to run other testes in Wpf project. Or Can I somehow connect to running Wpf Application to execute other recorded tests without login part.
Hi Every Body…
I use RadRichTextBox control, and my requirement is to add border to every page in the document, like that shown in the attached image.
As RadRichTextBox control doesn't support adding shapes, I tried using DecorationUILayerBase, but unfortunately I couldn't use it with the headers (to achieve my requirement).
So I tried another technique utilizing InlineUiContaineers, where I created the required structure (including the require border) and added them to a Grid control, then adding that Grid to an instance of InlineUIContainer class, and adding that instance to the header section of an instance of RadDocument class, and finally setting that instance to the Document property of my RadRichTextBox control.
This solution worked for
the header of the first page only, but as the user continues writing and
reaching end of this first page and new page is added the following error is
thrown:
"Specified element is already the logical child of another element.
Disconnect it first."
My code snippet is as the following:
Me.radRichTextBox.Document
= CreateDocumentWithCustomHeader()
Public Function CreateDocumentWithCustomHeader() As RadDocument
Dim doc As New RadDocument()
doc.LayoutMode = DocumentLayoutMode.Paged
Dim headerDoc As New RadDocument()
Dim hSection As New Section()
headerDoc.Sections.Add(hSection)
headerDoc.SectionDefaultPageMargin = New Telerik.Windows.Documents.Layout.Padding(5,
5, 5, 5)
Dim hparagraph As New Paragraph()
hSection.Blocks.Add(hparagraph)
Dim grid As New Grid
Dim column1 As New ColumnDefinitionWith {.Width = NewGridLength(150)}
Dim column2 As New ColumnDefinitionWith {.Width = NewGridLength(0, GridUnitType.Star)}
Dim column3 As New ColumnDefinitionWith {.Width = NewGridLength(150)}
grid.ColumnDefinitions.Add(column1)
grid.ColumnDefinitions.Add(column2)
grid.ColumnDefinitions.Add(column3)
Dim MinistryImage As New Image
MinistryImage.Source = BitmapManager.CreateBitmapImage("pack://application:,,,/Images/ Logo1.png",
150)
Dim LogoImage As New Image
LogoImage.Source = BitmapManager.CreateBitmapImage("pack://application:,,,/Images/Logo2.png",
150)
grid.SetColumn(LogoImage, 0)
grid.SetRow(LogoImage, 0)
grid.SetColumn(MinistryImage, 2)
grid.SetRow(MinistryImage, 0)
grid.Children.Add(LogoImage)
grid.Children.Add(MinistryImage)
Dim border As New Controls.BorderWith {.BorderThickness = New Thickness(4),
.CornerRadius = New CornerRadius(5),
.BorderBrush = New SolidColorBrush(Colors.Black)}
grid.SetColumn(border, 0)
grid.SetRow(border,
0)
grid.SetColumnSpan(border, 3)
grid.Children.Add(border)
border.HorizontalAlignment = Windows.HorizontalAlignment.Stretch
border.VerticalAlignment = Windows.VerticalAlignment.Stretch
border.Margin = New Thickness(5,
5, 5, -500)
grid.HorizontalAlignment = Windows.HorizontalAlignment.Stretch
grid.VerticalAlignment = Windows.VerticalAlignment.Stretch
Dim container As New InlineUIContainer()
container.UiElement
= grid
container.Height =
150
container.Width =
700
hparagraph.Inlines.Add(container)
Dim header As New Header()
header.Body =
headerDoc
Dim section As New Section()
section.Headers.Default = header
doc.Sections.Add(section)
doc.SectionDefaultPageMargin = New Telerik.Windows.Documents.Layout.Padding(10, 10, 10, 10)
Return doc
End Function
Hi,
I am trying to apply background color to particular GridViewDataColumn in RadTreeListView.If I directly set the background color it is working fine, but when I use CellStyle Parameter and set the style it is not working and data also not populating once CellStyle Parameter is given.
Xaml Code realted to GridViewDatacolumn as below
<telerik:RadTreeListView.Columns>
<telerik:GridViewDataColumn Width="*" ShowFilterButton="False" Header="Action Descriptor"
IsReadOnly="True" CellStyle="{StaticResource cellStyleTemplate}"
DataMemberBinding="{Binding DataContext,RelativeSource={RelativeSource Self} ,Converter={StaticResource NodeToDisplayNameConverter}}" >
</telerik:RadTreeListView.Columns>
Template used
<Style x:Key="cellStyleTemplate" TargetType="telerik:GridViewCell">
<Setter Property="Background" Value="Red"/>
</Style>
Regards,
Nagasree
Hello,
Value was either too large or too small for an Int32 when I type a long number.
Any Idea to handle that?
Version: 2016.3.914.45
Thnaks in advance for your help.
Hello,
I'm using Telerik 2016.3.1024.45
I figure out how to save the layout with your documentation and I have now the xml of the layout
But when I tried to use LoadFromXmlString with the xml it did nothing and the layout stays empty
So I thought that my xml wasn't good and I took the one from your example and it didn't work either.
Here the xml I tried to load (it's your sample)
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
RadLayoutControl
Type
=
"Telerik.Windows.Controls.RadLayoutControl"
Width
=
"NaN"
Height
=
"NaN"
MinWidth
=
"0"
MinHeight
=
"0"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
SerializationId
=
"myLayoutControlID"
Orientation
=
"Horizontal"
IsAutoGenerated
=
"false"
IsInEditMode
=
"false"
>
<
Items
>
<
Button
Type
=
"System.Windows.Controls.Button"
Width
=
"NaN"
Height
=
"NaN"
MinWidth
=
"0"
MinHeight
=
"0"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
SerializationId
=
"buttonID_1"
/>
<
Border
Type
=
"System.Windows.Controls.Border"
Width
=
"NaN"
Height
=
"NaN"
MinWidth
=
"0"
MinHeight
=
"0"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
SerializationId
=
"buttonID_2"
/>
<
LayoutControlGroup
Type
=
"Telerik.Windows.Controls.LayoutControlGroup"
Width
=
"NaN"
Height
=
"NaN"
MinWidth
=
"0"
MinHeight
=
"0"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
SerializationId
=
"layoutGroup_1"
Orientation
=
"Vertical"
IsAutoGenerated
=
"false"
>
<
Items
>
<
TextBlock
Type
=
"System.Windows.Controls.TextBlock"
Width
=
"NaN"
Height
=
"NaN"
MinWidth
=
"0"
MinHeight
=
"0"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Center"
SerializationId
=
"txtBlock_1"
/>
<
LayoutControlGroup
Type
=
"Telerik.Windows.Controls.LayoutControlGroup"
Width
=
"NaN"
Height
=
"NaN"
MinWidth
=
"0"
MinHeight
=
"0"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Center"
SerializationId
=
"layoutGroup_2"
Orientation
=
"Vertical"
IsAutoGenerated
=
"false"
>
<
Items
>
<
TextBlock
Type
=
"System.Windows.Controls.TextBlock"
Width
=
"NaN"
Height
=
"NaN"
MinWidth
=
"0"
MinHeight
=
"0"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
SerializationId
=
"txtBlock_2"
/>
</
Items
>
</
LayoutControlGroup
>
</
Items
>
</
LayoutControlGroup
>
</
Items
>
</
RadLayoutControl
>
And I use this to load the xml :
LayoutControl.LoadFromXmlString(@
"<xml_here>"
);
Can you help me please ?
Thank You
Hervouet Thomas
private void cbxGroupByRegion_Checked(object sender, RoutedEventArgs e)
{
RadGridView grdView = this.MyGrid;
grdView.GridLinesVisibility = GridLinesVisibility.None;
grdView.GroupDescriptors.Add(new ColumnGroupDescriptor()
{
Column = grdView.Columns["Region"],
SortDirection = ListSortDirection.Ascending
});
grdView.ExpandAllGroups();
}
private void cbxGroupByRegion_Unchecked(object sender, RoutedEventArgs e)
{
RadGridView grdView = this.MyGrid;
grdView.GridLinesVisibility = GridLinesVisibility.Horizontal;
grdView.GroupDescriptors.Clear();
}