Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
50 views

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.

 

Eyup
Telerik team
 answered on 22 May 2015
1 answer
92 views

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?

 

 

Maria Ilieva
Telerik team
 answered on 22 May 2015
3 answers
182 views

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?

Magdalena
Telerik team
 answered on 22 May 2015
2 answers
278 views
It seems like I've run into a bug in my radgrid that does not allow me to select multiple rows.  Basically, if I click the checkboxes then I can select multiple rows.  However, if I click the row anywhere except the checkbox it selects that row but deselects all the other selected rows.  It looks like my only option right now is to forego row selecting and just implement my own custom checkbox column.  I'd rather not do this since it will require a lot of code changes (validation etc...) so I wanted to check here to see if anyone has any ideas.
My current Telerik version according to the DLL is 2011.3.1305.35.  My code is below.

<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>


Ravindra
Top achievements
Rank 1
 answered on 22 May 2015
1 answer
96 views

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.

 

 

 

Kostadin
Telerik team
 answered on 22 May 2015
3 answers
289 views
Is there a way to assign multiple column headers in the timelineview?

For instance, I'd like  a column header indicating date, then just below it, a sub column showing the time.  

See attached images.
Nencho
Telerik team
 answered on 22 May 2015
3 answers
218 views

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!

Vessy
Telerik team
 answered on 22 May 2015
2 answers
124 views

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

 

Roxane
Top achievements
Rank 1
 answered on 22 May 2015
2 answers
332 views

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. 

Sampa
Top achievements
Rank 1
 answered on 22 May 2015
1 answer
516 views

Hi Team,

I am using RadCombobox using Header Template and Item Template. It is working fine while using aspx Page. but i want to create this radcombobox dynamically in Code behind. Please let me know the way to do.

 

Thanks in Advance,

Jambu.

 

Dimitar Terziev
Telerik team
 answered on 22 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?