I have been unable to figure out an appropriate column type for my situation. What I need is to on Item data bound check if there is a string in the column. If there is I need to display an image. When the user clicks the image I need to fire a command event which I will then download a file for the user. The issue is that when I use Grid Bound Column and add an Image Button on item data bound to the control the command event does not fire. If I click the cell the image disappears and the text shows. If I then click on the text the event fires. If i use the Image Column then I have no way to fire the command event on click. There has to be a way to do this. Any suggestions would be appreciated. Thank you.
Hi,
I am trying to implement RadCompression in my project.
I have followed the steps listed at http://www.telerik.com/help/aspnet-ajax/compression.html for Rad Compression as well as Viewstate compression.
I was able to add the code changes and build my solution.
Then I generated a report using Fiddler to capture Viewstate size, % of Uncompressed page size and File size but could not see any difference in the metrics pre and post implementation.
Is there anything else we should include in the code to make it work?
I have a RadMenu within a rather complex arrangement of RadPanes and RadSplitters.
The problem is that sometimes the area which contains the RadMenu has an active horizontal scrollbar and when the RadMenu expands, the expansion is hidden. This is an especially big problem in low-res screens.
I've found an assortment of references that refer to setting the z-index of the Radmenu in a variety of ways but these appear to be obsolete. (Such as switching style settings in and out using client side calls that no longer exist?)
Is there any way to insure the current RadMenu is always on top?
<
telerik:radgrid
id
=
"rgItems"
runat
=
"server"
autogeneratecolumns
=
"false"
enableembeddedskins
=
"false"
onneeddatasource
=
"rgItems_NeedDataSource"
onitemdatabound
=
"rgItems_ItemDataBound"
allowmultirowselection
=
"true"
>
<
clientsettings
enablerowhoverstyle
=
"true"
>
<
selecting
allowrowselect
=
"true"
/>
</
clientsettings
>
<
mastertableview
datakeynames
=
"itemID,subItemID"
allowsorting
=
"true"
>
<
columns
>
<
telerik:gridclientselectcolumn
uniquename
=
"clientSelectColumn"
itemstyle-width
=
"30px"
headerstyle-width
=
"30px"
headerstyle-horizontalalign
=
"Center"
itemstyle-horizontalalign
=
"Center"
/>
<
telerik:gridboundcolumn
datafield
=
"itemName"
sortexpression
=
"itemName"
headertext
=
"Item Name"
/>
</
columns
>
</
mastertableview
>
</
telerik:radgrid
>
Hello,
i have implemented a RadGrid with DetailItemTemplate, which works fine,
but the DetailItemTemplate isn't exported to Excel / PDF.
Is this behaviour by design or am I doing anything wrong ?
Thanks in advance.
Hello,
I am trying to print just my RadHtmlChart using JavaScript but when I press the event button to activate the script the chart disappears, the components I want to hide successfully hide. I specifically state in my JavaScript code to only hide 2 other components but keep the chart. Also, when I cancel the prompt to print all of the components stay hidden, instead of being shown. Here is my code:
01.
<script type=
"text/javascript"
>
02.
function
printChart() {
03.
//Hide components but show chart
04.
document.getElementById(
"divGrid"
).style.display =
'none'
;
05.
document.getElementById(
"divOptions"
).style.display =
'none'
;
06.
document.getElementById(
"divChart"
).style.display =
'block'
;
07.
08.
//Call the browser print method
09.
window.print();
10.
11.
//Show components
12.
document.getElementById(
"divGrid"
).style.display =
'block'
;
13.
document.getElementById(
"divOptions"
).style.display =
'block'
;
14.
document.getElementById(
"divChart"
).style.display =
'block'
;
15.
</script>
Thank you in advance!
Hello Telerik-Team,
we would like to use our own columntypes in a RadGrid in order to make the filter control a combobox.
We have the following code in the ColumnCreated-Event:
if (boundColumn.UniqueName.Equals("CaseStage"))
{
grid.MasterTableView.Columns.Remove(boundColumn);
CustomFilteringColumn cfBoundColumn = new CustomFilteringColumn();
grid.MasterTableView.Columns.Add(cfBoundColumn);
cfBoundColumn.DataField = "CaseStage";
cfBoundColumn.HeaderText = "CaseStage";
}
When we then try to filter the Grid using one of the other filter fields we get the following error message:
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Cannot create column with the specified type name: CustomFilteringColumn
Can you help us interpret the error message or perhaps suggest an alternative way to make the filtercontrol a combobox when using auto-generated columns?
Thank you in advance!
Roxane
I have a telerik grid. I have taken an item template column , in which a label control is taken. I don't use Eval to bind data to a column. I have set the label Id with Datafield property. I want to bind the grid via client side databinding using web method. first I am returning a serialized json string , then I Deserialized this json string in a javascript, which is converted to a list object. then I pass this list object using set_dataSource(listobject). My requirement is that I have a search button. By clicking it , it will fire an OnClientClick event and binds the grid. My problem is that my grid is binding but no data is showing in label control of that grid. I mean to say, suppose i have four records. After clicking search button grid shows four rows but no data will be shown.
My grid is looking like that
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="false" AutoGenerateColumns="true" Skin="Web20" AllowSorting="false" Visible="true" >
<HeaderStyle BackColor="#3ABD59" Font-Bold="True" Wrap="False" />
<mastertableview cellspacing="-1" AllowMultiColumnSorting="true" DataKeyNames="CustomerId" ClientDataKeyNames="CustomerId">
<Columns>
<telerik:GridTemplateColumn HeaderText="Customer ID" UniqueName="UniCustomerId" >
<ItemTemplate>
<asp:Label runat="server" ID="CustomerId" Style="width:150px;" ></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</mastertableview>
<PagerStyle AlwaysVisible="True" />
</telerik:RadGrid>
I have tried with databound column like below
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="false" AutoGenerateColumns="true" Skin="Web20" AllowSorting="false" Visible="true" >
<HeaderStyle BackColor="#3ABD59" Font-Bold="True" Wrap="False" />
<mastertableview cellspacing="-1" AllowMultiColumnSorting="true" DataKeyNames="CustomerId" ClientDataKeyNames="CustomerId">
<Columns>
<telerik:GridBoundColumn DataField="CustomerId" HeaderText="Customer ID" UniqueName="UniCustomerId" DataType="System.String" >
</telerik:GridBoundColumn>
</Columns>
</mastertableview>
<PagerStyle AlwaysVisible="True" />
</telerik:RadGrid>
but results are same.
I am stuck with this problem. Any help would be a great favor for me.