Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
109 views
Hi
i am working on exporting grid data into pdf but if the column type is link button then the linkbutton text is exporting as blank.into pdf file
how could i rectify this issue without using any event(like itembound etc)
please suggest me it's really very urgent.

Note: my export setting is excelML  and  in case of excel exporting it's working fine.

Thanks
Santosh
Princy
Top achievements
Rank 2
 answered on 14 Dec 2012
4 answers
1.9K+ views
Hi,

How can I remove the "Add new record" link but keep the "Refresh" link in a RadGrid?
I have used the following code - but it removed both.

------------------------------------------------------------------------------------------

<telerik:RadGrid ID="grdHeadlineList" Skin="WebBlue"
runat="server" GridLines="None"
AutoGenerateColumns="False"
AllowSorting="True"
AllowFilteringByColumn = "true"
AllowPaging="True" PageSize="10"
OnNeedDataSource="grdHeadlineList_NeedDataSource"                                       
OnItemCommand="grdHeadlineList_ItemCommand"
OnItemDataBound="grdHeadlineList_ItemDataBound"
OnItemCreated="grdHeadlineList_ItemCreated">

<PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>                               
<MasterTableView DataKeyNames="Headline_Id" CommandItemDisplay="Top" EditMode="PopUp">                               
<EditFormSettings PopUpSettings-Modal="true" />
<Columns>
---

</Columns>
<CommandItemTemplate>
<div style="height:25px"></div>
</CommandItemTemplate>
</MasterTableView>
<ClientSettings EnableRowHoverStyle="true"></ClientSettings>
</telerik:RadGrid>

------------------------------------------------------------------------------------------

Thanks!

Princy
Top achievements
Rank 2
 answered on 14 Dec 2012
26 answers
162 views
Hi Team,
  I am using Telerik version 2011.1.519.35 in my ASP.net application. I am using RadScheduler in my code. Now i have to implement DragandDrop property to it. Is it feasible in this version or do i need to upgrade the dll of my code? What control/event can i used to attain the same?

Thanks
Plamen
Telerik team
 answered on 14 Dec 2012
2 answers
129 views
I'm missing something in the documentation (2012 Q3 controls).  I created a custom skin for all controls using the online Visual Style Builder.  Called it MMSM_MTS, downloaded the zip file, and extracted it to the MMSM_MTS folder off the app root. Added this to web.config:
<appSettings>
    <add key="Telerik.Skin" value="MMSM_MTS" />
    <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled" />
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled" />
    <add key="Telerik.EnableEmbeddedSkins" value="false" />
    <add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />
</appSettings>
                                           

Loaded a page but the RadComboBox was completely unskinned.  Then tried to manually specify the skin:
<telerik:RadComboBox ID="cbMun" runat="server" DataSourceID="dsMun" DataTextField="sName" DataValueField="nMunID" EnableEmbeddedSkins="False" Skin="MMSM_MTS"></telerik:RadComboBox>

Same unskinned appearance.  What am I doing wrong?



Galin
Telerik team
 answered on 14 Dec 2012
4 answers
291 views
Hello,

On the tree view, when I hover or click on an item, it gets highlighted with some color.
The color covers only the length of the text, so they become inconsistent as one text is longer than the other.
How can I make the color fixed and not changed based on the length of the text.


Thank You..!
Princy
Top achievements
Rank 2
 answered on 14 Dec 2012
1 answer
92 views
Hi Telerik team,

I am using Telerik Scheduler TimlineView.
I have a requirement where I have one dropdown list in which there are different timespan, for example, 2:00 to 4:00, 4:00 to 6:00 ,6:00 to 8:00 etc.
Now I want to select that particular timespan given in dropdown list and load the data in the Scheduler control for that particular timespan 

How can I achieve this?

Thanks
Plamen
Telerik team
 answered on 14 Dec 2012
0 answers
100 views
Hi,
I have a aspx page with telerik Reportviewer. I want to auto print the Reportviewer when filter button in my page is clicked.
I have used the following code on filter button's click event.

   protected void filter_Click(object sender, EventArgs e)
   {
        var printScript = "";
        printScript += "ReportViewer.OnReportLoadedOld = ReportViewer.OnReportLoaded;";
        printScript += "ReportViewer.prototype.OnReportLoaded = function()";
        printScript += "{";
        printScript += "this.OnReportLoadedOld();";
        printScript += ReportViewer1.ClientID + ".PrintReport();";
        printScript += "}";

        ScriptManager.RegisterStartupScript(this, GetType(), "ReportPrint", printScript, true);
   }

This code is working fine on localhost but it is not working on web server.
Please let me know what is going wrong.
Sonia
Top achievements
Rank 1
 asked on 14 Dec 2012
1 answer
89 views
Hi!

I'm working on a grid with the items grouped on the initial load. If a user expands a group and it's content is taller than the actual grid height I'd like to show a scrollbar, since as of now some rows are inaccessible since there's no way to scroll down.

If the initial load is done with the groups expanded, the grid loads correctly with a scroll, but when a group that was collapsed on load is expanded, the scrollbar is not showing.

Is there a way for the grid to know when grouped content is being expanded beyond the grid's height so it displays a scrollbar?

If not, is there a way for me to set the scrollbar visible on the "OnGroupExpanding" client event, so I can scroll to the rows that are unaccesible beyond the grid's height?

Thanks!
Pavlina
Telerik team
 answered on 13 Dec 2012
3 answers
122 views
I am using you demo example of getting a radcontextmenu to display from the right-click of a radgrid's data row when the radgrid and radcontextmenu is used with a content page. The code works fine when in a straight asp page;however, in the content portion of the Master/content design it will not work. Below is the following javascript and markup:
<telerik:RadScriptBlock runat="server" ID="RadCodeBlock1">        
    
<script type="text/javascript">
            
        
function RowContextMenu(sender, eventArgs)            {                
            
var menu = $find("<%=RadMenu1.ClientID %>");                
            
var evt = eventArgs.get_domEvent();                
            
if (evt.target.tagName == "INPUT" || evt.target.tagName =="A")               
            
{                   
                
return;               
            
}               

            
var index = eventArgs.get_itemIndexHierarchical(); 

             
document.getElementById("radGridClickedRowIndex").value =index;sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true);               

            
menu.show(evt);                

            
evt.cancelBubble = true;                

            
evt.returnValue = false;               

            
if (evt.stopPropagation)               
            
{                    
                    
evt.stopPropagation();                   
                    
evt.preventDefault();               
             
}            
    
}           

    
function openRadWindow(sender, args) {                
        
window.radopen("PopupDialog.aspx", "EditDialogWindow");            
        
}        

    
</script>    
    
</telerik:RadScriptBlock>
    In the javascript the error occurs at the point where menu.show(evt) is called. The error is: Object doesn't support this property or method.Please provide help if possible.Thanks,Steve Holdorf
Pavlina
Telerik team
 answered on 13 Dec 2012
7 answers
185 views
I am using the following RadComboBox to allow the user to lookup names from a long list.  Here is the sequence of events that describes the problem:

1. User types part of the name (Bob)
2. Combo filters values accordingly (let's say there are 2 Bob's)
3. User clicks on a value
4. The Combo dropdown is hidden
5. User decides to change what they typed from Bob to Tom
6. As the user begins typing Tom, the dropdown extends down, but not to its full height.  Since there were only 2 Bob's in the list, the list now shows 2 lines, not the full height of the dropdown.  And if there are 10 Tom's in the list, you can only see 2 of them unless you scroll down.
7. What I need is for the dropdown to once again extend to its full height, so it can show potentially 10 or even more values.

<telerik:RadComboBox ID="cboPatientList" runat="server" AllowCustomText="true" Filter="Contains" Width="100%" Height="400px" MaxHeight="400px" HighlightTemplatedItems="false" 
                ShowDropDownOnTextboxClick="true" ChangeTextOnKeyBoardNavigation="true" DropDownHeight="400px" EnableItemCaching="true" OnClientSelectedIndexChanged="PatientSelected"
                 >      
                <ItemTemplate>
                    <table style="width:90%" cellspacing="1" cellpadding="1">
                        <tr>
                            <td>
                                <%# sEncodedValue(Eval("FullName")) %>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </telerik:RadComboBox>     
            <asp:Button ID="btnResetPatientList" Text="Reset" runat="server" OnClientClick="ResetPatientList" UseSubmitBehavior="false"  />
            </div>
        </ContentTemplate>
    </telerik:RadWindow>
Tim Ammons
Top achievements
Rank 1
 answered on 13 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?