I build Sharepoint webpart with RadScheduler on one server, then I deployed with sharepoint package on another server, why I get different layout for both server?
How to make it default like documentation on this link https://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/recurrence-editor/overview
I use Teleriks controls for asp ajax and have a question regarding the
skin files...
I've copied the Skins folder to my project folder and have included it
in my project, but almost all of the items in these folders have a
"Build Action" of "Content" and a "Copy to Output Directory" value of
"Do not copy" in the properties window.
Do I have to go through all these folders to change the "Copy to
Output Directory" to "Copy Always" to ensure all my skin items are
copied over when I publish or build my site?
Of course, this question relates to any file that gets included to a
project, not just Telerik skins...
This page (http://msdn.microsoft.com/en-us/library/0c6xyb66.aspx)
suggests that the "Build Action" - "Content" that...
"The file is not compiled, but is included in the Content output
group. For example, this setting is the default value for an .htm or
other kind of Web file."
but this page also states the seetings for "Copy to Output Directory"
are ...
"This property specifies the conditions under which the selected
source file will be copied to the output directory. Select Do not copy
if the file is never to be copied to the output directory. Select Copy
always if the file is always to be copied to the output directory.
Select Copy if newer if the file is to be copied only when it is newer
than an existing file of the same name in the output directory."
If I do have to set all my content skins and images etc to "Copy
Always", is there a quick way to do this when there could be hundreds
of these files spread through a large number of folders and sub
folders?
Hi from France !
I need to make specific filter by column. columns are itemTemplate. in my original projet i've got many data in different columns/template like this :
<
telerik:GridTemplateColumn
UniqueName
=
"situationCertif"
ItemStyle-CssClass
=
"situationBloc"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"libFacture"
runat
=
"server"
Text='<%# String.Format("Facture n° {0}", Eval("LibFacture"))%>'></
asp:Label
>
<
asp:Label
ID
=
"lMontantHT"
runat
=
"server"
Text='<%# String.Format("Montant HT : {0:C2}", Eval("MontantHT"))%>'></
asp:Label
>
<
asp:Label
ID
=
"lMontantTTC"
runat
=
"server"
Text='<%# String.Format("Montant TTC : {0:C2}", Eval("MontantTTC"))%>'></
asp:Label
>
<
asp:Label
ID
=
"lEtat"
runat
=
"server"
Text='<%# String.Format("Etat : {0}", Eval("Etat.LongString"))%>'></
asp:Label
>
<
div
>
Payer à :
<
asp:Label
ID
=
"lTiersPayeur"
runat
=
"server"
CssClass
=
"tiers"
Text='<%# String.Format("{0}", Eval("NomTiersPayeur"))%>'></
asp:Label
>
</
div
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
I've maked a sample to search how to made this (see Grid.png)
i've got a class "TestData" binded to template columns :
Public
Class
TestData
Property
Nom
As
String
Property
Prenom
As
String
Property
age
As
Integer
Property
statut
As
String
Property
Infos
As
String
Public
Sub
New
(nom
As
String
, prenom
As
String
, age
As
Byte
, statut
As
String
, infos
As
String
)
Me
.Nom = nom
Me
.Prenom = prenom
Me
.age = age
Me
.statut = statut
Me
.Infos = infos
End
Sub
End
Class
Private
Sub
SetGridData()
Dim
list
As
New
List(Of TestData) From
{
New
TestData(
"Albert"
,
"Bebert"
, 28,
"Directeur"
,
"ux texte standard de l'imprimerie depuis les années 1500, quand un imprimeur anonyme assembla ensemble des morceaux de texte pour réaliser un livre spécimen"
),
New
TestData(
"Bilal"
,
"Ournis"
, 25,
"Ingénieur"
,
""
),
New
TestData(
"Jerôme"
,
"Nimo"
, 35,
"Commercial"
,
" sans que son contenu n'en soit modifié. Il a été popularisé dans les années 1960 grâce à la "
),
New
TestData(
"Elvira"
,
"Pas"
, 50,
"Commercial"
,
""
),
New
TestData(
"Sylvestre"
,
"Saint"
, 47,
"Commercial"
,
"s suites logicielles de mise en page ou éditeurs de sites Web ont fait du Lorem Ipsum leur faux texte par défaut, et une recherche pour 'Lorem Ipsum' vous cond"
)
}
RadGrid1.DataSource = list
End
Sub
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
AllowFilteringByColumn
=
"true"
AutoGenerateColumns
=
"false"
OnInit
=
"RadGrid1_Init"
OnItemCommand
=
"RadGrid1_ItemCommand"
>
<
MasterTableView
>
<
Columns
>
<
telerik:GridTemplateColumn
FilterListOptions
=
"VaryByDataTypeAllowCustom"
DataField
=
"demo"
UniqueName
=
"demo"
>
<
ItemTemplate
>
<
h1
><%# Eval("Nom") %></
h1
>
<
h3
><%# Eval("Prenom") %></
h3
>
<
i
><%# Eval("Age") %></
i
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
FilterListOptions
=
"VaryByDataTypeAllowCustom"
DataField
=
"infos"
UniqueName
=
"infos"
>
<
ItemTemplate
>
<
p
><
b
><%# Eval("Statut") %></
b
></
p
>
<
p
><%# Eval("Infos") %></
p
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
example :
First column i need to search in "Nom" or "Prenom" or "Age" properties (contain mode)
Second column i need to search in "Statut" or "Infos" properties (contain mode)
How to define a filter menu by column ?
Thanks for your help, and excuse me for my bad english.
Hi,
RadGrid Grid - Excel-like Filtering not work in .ascx page... but it work in .aspx.
In .ascx page when i click on the Header Context Filter Menu button the Filter Popup is not show .... nothing is happen but in .aspx page it works well
would you please help me so that Excel-like Filtering is also work on a grid that is in my .aspx page
Here is my grid code Mostly taken from your example
//////////////////
<telerik:RadGrid ID="grdBracketPlayers" Width="1120" runat="server" Skin="Metro"
AllowFilteringByColumn="true" FilterType="HeaderContext" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" AllowPaging="True" OnFilterCheckListItemsRequested="grdBracketPlayers_FilterCheckListItemsRequested" AllowSorting="true" GroupingEnabled="true"
OnNeedDataSource="grdBracketPlayers_NeedDataSource">
<MasterTableView DataKeyNames="FullName" AutoGenerateColumns="False" >
<Columns>
<telerik:GridBoundColumn FilterCheckListEnableLoadOnDemand="true" DataField="FullName" FilterControlAltText="Filter ContactName column" HeaderText="PlayLevelName" SortExpression="PlayLevelName" UniqueName="PlayLevelName" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>​
The following code produces 'test' message on initial load, before actual click.
<telerik:RadImageTile ID="ritTREDAIR" Name="TREDAir"
Height="385" Width="340px"
runat="server"
OnClientClicking="alert('test')">
<Title Text="TREDAir"></Title>
</telerik:RadImageTile>
Am i doing something wrong?
Hello,
I have an old style ASP .NET AJAX SharePoint web part with a user control that has a grid on it. I have a Search button which, when clicked, posts back to the server and populates the grid with search results based on search text. In IE11 everything works fine. In Chrome (and Edge), the first search works, but subsequent searches do not refresh the grid. In debug mode, I see the server code works correctly to retrieve the data, data bind and rebind the results, but those results never get back to the client and the grid is not refreshed. I repeat - everything works correctly in IE.
I also noticed that on the second search, when the server is finished, none of the client side JavaScript is executed - e.g. I added an alert which is never executed.
I need some guidance on how to identify the problem, or if this is a known issue.
Chrome: Version 67.0.3396.99 (Official Build) (64-bit)
IE: 11.165.17134.0 Update version: 11.0.75
Telerik: v4.0_2017.3.913
Thank you
<
form
id
=
"form1"
runat
=
"server"
>
<
asp:ScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
/>
<
div
>
<
br
/>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
AllowMultiRowSelection
=
"true"
DataSourceID
=
"SqlDataSource1"
GridLines
=
"None"
AutoGenerateColumns
=
"False"
OnItemCreated
=
"RadGrid1_ItemCreated"
Skin
=
"Hay"
>
<
MasterTableView
DataSourceID
=
"SqlDataSource1"
>
<
RowIndicatorColumn
Visible
=
"False"
>
<
HeaderStyle
Width
=
"20px"
/>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Resizable
=
"False"
Visible
=
"False"
>
<
HeaderStyle
Width
=
"40px"
/>
</
ExpandCollapseColumn
>
<
GroupByExpressions
>
<
telerik:GridGroupByExpression
>
<
GroupByFields
>
<
telerik:GridGroupByField
FieldName
=
"State"
FieldAlias
=
"State"
/>
</
GroupByFields
>
<
SelectFields
>
<
telerik:GridGroupByField
FieldName
=
"State"
FieldAlias
=
"State"
/>
</
SelectFields
>
</
telerik:GridGroupByExpression
>
</
GroupByExpressions
>
<
Columns
>
<
telerik:GridBoundColumn
SortExpression
=
"LastName"
HeaderText
=
"Last Name"
HeaderButtonType
=
"TextButton"
DataField
=
"LastName"
UniqueName
=
"LastName"
ItemStyle-Width
=
"40px"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
SortExpression
=
"FirstName"
HeaderText
=
"First Name"
HeaderButtonType
=
"TextButton"
DataField
=
"FirstName"
UniqueName
=
"FirstName"
>
</
telerik:GridBoundColumn
>
</
Columns
>
<
EditFormSettings
>
<
PopUpSettings
ScrollBars
=
"None"
/>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
><
br
/>
<
br
/>
<
asp:SqlDataSource
ID
=
"SqlDataSource1"
ConnectionString="<%$ ConnectionStrings:ConnString %>"
ProviderName="System.Data.SqlClient" SelectCommand="select * from TAZTestData order by State, LastName"
runat="server">
</
asp:SqlDataSource
>
</
div
>
</
form
>
Protected
Sub
RadGrid1_ItemCreated(sender
As
Object
, e
As
Telerik.Web.UI.GridItemEventArgs)
If
TypeOf
e.Item
Is
GridHeaderItem
Then
Dim
header
As
GridHeaderItem =
DirectCast
(e.Item, GridHeaderItem)
Dim
headerchkbx
As
New
CheckBox()
headerchkbx.ID =
"CheckBox1"
headerchkbx.AutoPostBack =
True
AddHandler
headerchkbx.CheckedChanged,
AddressOf
headerchkbx_CheckedChanged
header(
"column"
).Controls.Add(headerchkbx)
End
If
If
TypeOf
e.Item
Is
GridGroupHeaderItem
Then
Dim
header
As
GridGroupHeaderItem =
DirectCast
(e.Item, GridGroupHeaderItem)
Dim
groupchkbx
As
New
CheckBox()
groupchkbx.ID =
"CheckBox2"
groupchkbx.AutoPostBack =
True
AddHandler
groupchkbx.CheckedChanged,
AddressOf
groupchkbx_CheckedChanged
header.Controls(0).Controls.Add(groupchkbx)
End
If
If
TypeOf
e.Item
Is
GridDataItem
Then
Dim
header
As
GridDataItem =
DirectCast
(e.Item, GridDataItem)
Dim
detailchkbx
As
New
CheckBox()
detailchkbx.ID =
"CheckBox3"
detailchkbx.AutoPostBack =
True
AddHandler
detailchkbx.CheckedChanged,
AddressOf
detailchkbx_CheckedChanged
header.Controls(0).Controls.Add(detailchkbx)
End
If
End
Sub
Private
Sub
headerchkbx_CheckedChanged(sender
As
Object
, e
As
EventArgs)
Dim
headerchkbx
As
CheckBox =
DirectCast
(sender, CheckBox)
For
Each
groupHeader
As
GridGroupHeaderItem
In
RadGrid1.MasterTableView.GetItems(GridItemType.GroupHeader)
Dim
children
As
GridItem() = groupHeader.GetChildItems()
Dim
groupchkbx
As
CheckBox =
DirectCast
(groupHeader.Controls(0).FindControl(
"CheckBox2"
), CheckBox)
For
Each
child
As
GridItem
In
children
Dim
detailchkbx
As
CheckBox =
DirectCast
(child.Controls(0).FindControl(
"CheckBox3"
), CheckBox)
detailchkbx.Checked = headerchkbx.Checked
Next
' If headerchkbx.Checked Then
groupchkbx.Checked = headerchkbx.Checked
'Else
'item.Selected = False
'groupchkbx.Checked = False
'End If
Next
For
Each
item
As
GridHeaderItem
In
RadGrid1.MasterTableView.GetItems(GridItemType.Header)
item.Selected = headerchkbx.Checked
Next
End
Sub
Private
Sub
groupchkbx_CheckedChanged(sender
As
Object
, e
As
EventArgs)
Dim
chkCount
As
Integer
= 0
For
Each
groupHeader
As
GridGroupHeaderItem
In
RadGrid1.MasterTableView.GetItems(GridItemType.GroupHeader)
Dim
children
As
GridItem() = groupHeader.GetChildItems()
Dim
groupchkbx
As
CheckBox =
DirectCast
(groupHeader.Controls(0).FindControl(
"CheckBox2"
), CheckBox)
If
(groupchkbx.Checked)
Then
chkCount += 1
End
If
For
Each
child
As
GridItem
In
children
Dim
detailchkbx
As
CheckBox =
DirectCast
(child.Controls(0).FindControl(
"CheckBox3"
), CheckBox)
detailchkbx.Checked = groupchkbx.Checked
'Dim dataItem As GridDataItem = TryCast(child, GridDataItem)
'dataItem.Selected = groupchkbx.Checked
For
Each
item
As
GridHeaderItem
In
RadGrid1.MasterTableView.GetItems(GridItemType.Header)
Dim
headerchkbx
As
CheckBox =
DirectCast
(item(
"column"
).FindControl(
"CheckBox1"
), CheckBox)
If
(
Not
groupchkbx.Checked)
Then
headerchkbx.Checked =
False
End
If
If
RadGrid1.MasterTableView.GetItems(GridItemType.GroupHeader).Length = chkCount
Then
headerchkbx.Checked =
True
End
If
Next
Next
Next
End
Sub
Private
Sub
detailchkbx_CheckedChanged(sender
As
Object
, e
As
EventArgs)
Dim
totalCount
As
Integer
= 0
Dim
groupCount
As
Integer
= 0
Dim
totalChkCount
As
Integer
= 0
Dim
groupChkCount
As
Integer
= 0
'Loop through all groups
For
Each
groupHeader
As
GridGroupHeaderItem
In
RadGrid1.MasterTableView.GetItems(GridItemType.GroupHeader)
Dim
groupchkbx
As
CheckBox =
DirectCast
(groupHeader.Controls(0).FindControl(
"CheckBox2"
), CheckBox)
Dim
grpChildren
As
GridItem() = groupHeader.GetChildItems()
For
Each
child
As
GridItem
In
grpChildren
'Count total number of checkboxes in whole grid and in each group
totalCount += 1
groupCount += 1
Dim
detailchkbx
As
CheckBox =
DirectCast
(child.Controls(0).FindControl(
"CheckBox3"
), CheckBox)
'Count number of checkboxes that are checked in whole grid and in each group
If
(detailchkbx.Checked)
Then
totalChkCount += 1
groupChkCount += 1
End
If
Next
'Check the group check box if all the children are checked
If
groupCount = groupChkCount
Then
groupchkbx.Checked =
True
Else
groupchkbx.Checked =
False
End
If
groupCount = 0
groupChkCount = 0
Next
For
Each
hdr
As
GridHeaderItem
In
RadGrid1.MasterTableView.GetItems(GridItemType.Header)
Dim
headerchkbx
As
CheckBox =
DirectCast
(hdr(
"column"
).FindControl(
"CheckBox1"
), CheckBox)
If
totalCount = totalChkCount
Then
headerchkbx.Checked =
True
Else
headerchkbx.Checked =
False
End
If
Next
End
Sub