{"d":[]} ) in this case I'd like to write something like 'No data records' to the first row/cell.
How can I do this using the client-side API?
Thx
<
telerik:RadGrid
ID
=
"MyGrid"
runat
=
"server"
AllowAutomaticInserts
=
"false"
AllowFilteringByColumn
=
"true"
AllowSorting
=
"true"
PageSize
=
"15"
ShowFooter
=
"true"
EnableLinqExpressions
=
"true"
OnUpdateCommand
=
"MyGrid_UpdateCommand"
OnItemDataBound
=
"MyGrid_ItemDataBound"
DataSourceID
=
"MyLinqDataSource"
>
<
PagerStyle
Mode
=
"NextPrevNumericAndAdvanced"
/>
<
MasterTableView
AutoGenerateColumns
=
"false"
EditMode
=
"InPlace"
AllowFilteringByColumn
=
"true"
DataKeyNames
=
"Id"
OverrideDataSourceControlSorting
=
"true"
Width
=
"1700px"
TableLayout
=
"Fixed"
CommandItemDisplay
=
"Top"
>
<
CommandItemTemplate
>
<
asp:Button
ID
=
"SearchButton"
runat
=
"server"
Text
=
"Search"
Width
=
"100px"
Height
=
"2em"
CommandName="<%=RadGrid.FilterCommandName %>" />
</
CommandItemTemplate
>
<
Columns
>
...
</
Columns
>
</
MasterTableView
>
<
ClientSettings
AllowColumnsReorder
=
"true"
>
<
Resizing
AllowColumnResize
=
"true"
AllowResizeToFit
=
"true"
EnableRealTimeResize
=
"true"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
Hello
Im trying to filter the radgrid with filtertemplate. the code look's like this
<
telerik:GridTemplateColumn
DataField
=
"Obraz"
Resizable
=
"false"
Visible
=
"false"
UniqueName
=
"TemplateColumn"
AllowFiltering
=
"true"
>
<
FilterTemplate
>
<
telerik:RadComboBox
ID
=
"RadComboBoxCountry"
DataTextField
=
"Text"
DataValueField
=
"Obraz"
Height
=
"100px"
AppendDataBoundItems
=
"true"
SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("TemplateColumn").CurrentFilterValue %>'
runat="server" OnClientSelectedIndexChanged="CountryIndexChanged">
<
Items
>
<
telerik:RadComboBoxItem
Text
=
"Bez filtra"
value
=
"1"
/>
<
telerik:RadComboBoxItem
Text
=
"Pojedynczy skan"
value
=
"~/Ikony/Gify/Skan.png"
/>
<
telerik:RadComboBoxItem
Text
=
"Multi skan"
value
=
"~/Ikony/Gify/SkanMulti.png"
/>
<
telerik:RadComboBoxItem
Text
=
"Brak skanu"
value
=
"~/Ikony/Gify/BrakSkanu.png"
/>
<
telerik:RadComboBoxItem
Text
=
"Bez filtra1"
value
=
""
/>
</
Items
>
</
telerik:RadComboBox
>
<
telerik:RadScriptBlock
ID
=
"RadScriptBlock3"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function CountryIndexChanged(sender, args) {
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
tableView.filter("Obraz", args.get_item().get_value(), "EqualTo");
}
</
script
>
</
telerik:RadScriptBlock
>
</
FilterTemplate
>
<
ItemTemplate
>
<
asp:Image
ID
=
"Image1"
runat
=
"server"
ImageUrl="<%# bind('Obraz') %>" ForeColor="White" />
</
ItemTemplate
>
<
HeaderStyle
Width
=
"199px"
/>
<
ItemStyle
Width
=
"199px"
/>
</
telerik:GridTemplateColumn
>
<
telerik:RadHtmlField ID="RadHtmlField1" FieldName="Content" runat="server" ToolsFile="/_wpresources/RadEditorSharePoint/5.8.6.0__1f131a624888eeed/Resources/QAAInternetToolsFile.xml" ConfigFile="/_wpresources/RadEditorSharePoint/5.8.6.0__1f131a624888eeed/Resources/QAAInternetConfigFile.xml"></telerik:RadHtmlField>
I wish to use Image Manager to insert images from both the SiteCollection and the current website. Looking at the documentation my ConfigFile.xml should look like this:
<configuration>
<property name="ToolbarMode">Default</property>
<property name="ToolsWidth">680px</property>
<property name="ImagesPaths">
<item>PublishingImages</item>
<item>/SiteCollectionImages</item>
</property>
</configuration>
When I click ImageManager it shows both folder locations defaulting to the current website image folder which is good. When I click on the second folder it displays the site collections images which is also fine. But, if I then click on the first folder again it will not change - it stays fixed on the site collection folder.
This looks like a bug. Is there a way around it?
When there is a single column relating two tables defining GridRelationFields is straight forward:
GridRelationFields rf = new GridRelationFields(); |
rf.MasterKeyField = "col1"; |
rf.DetailKeyField = "col1"; |
tvProtocols.ParentTableRelation.Add(rf); |
However, how do you define a GridRelationFields when the keys are compound, such as:
GridRelationFields rf = new GridRelationFields(); |
rf.MasterKeyField = "col1,col2,col3"; |
rf.DetailKeyField = "col1,col2,col3"; |
tvProtocols.ParentTableRelation.Add(rf); |
This is not uncommon.
Must I create an autoincremented column in the parent table and then rely only upon that in the child table?