Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
149 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
306 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
99 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
110 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
95 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
131 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
200 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
2 answers
81 views
HI, I would like to know how to retrieve text and value from an get_visibleItems object. I tried the following without success:

if (sender.get_visibleItems().length == 1) {
                 alert(sender.get_visibleItems(0).get_text());
                 alert(sender.get_visibleItems(0).get_value());
                 alert(sender.get_visibleItems(0).toString());
 }

Sorry to create a topic for this but it seems I cant find the answer anywhere.

TIA
Martin Roussel
Top achievements
Rank 1
 answered on 13 Dec 2012
1 answer
138 views
Is it possible to allow a user to dynamically resize a modal advanced form pop up?  I know the pop up can be dragged, but it seems like this would be desired functionality as well.  And really what I'm trying to accomplish is getting a scrollbar on my pop up when necessary.

I have a user who stated she was not able to see the bottom of the modal pop up and there was no scroll bar for the pop up.  I verified that by reducing the size of my browser window, there was no scrollbar on the pop up, and using the browser scrollbar made the modal pop up scroll with the page.  I was able to observe the same behavior on this demo.

Ideally, what I would like to do is have the pop up appear with a certain height and width for most users as I have now, but in the case where a user has a lower resolution or smaller browser window, allow them to see all of the fields.  At least allowing them to resize the pop up would force scrollbars.

Thanks,
Jason
Plamen
Telerik team
 answered on 13 Dec 2012
5 answers
272 views
Scratching my head on this one. I have a menu that should stretch across the page, so width:100%. That part works, the menu displays correctly.

What I would like to do is shift the root menu items to align from the right towards the left, leaving a space where they end.

Is this even possible?

Here is two images to help visualize what I need.

Thanks
Clyde
jlj30
Top achievements
Rank 2
 answered on 13 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?