Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
97 views
Hi,

I'm currently working on a website that needs a 'price' slider from £100 to £100,000, with two pickers.

Most customers will slide values between £100 - £4,000 with perhaps 5% or less looking in a range up to £100,000

Other than writing custom multipliers when the slider reaches certain points, is there any built-in property of the rad slider which allows you to have 50% of the physical slider represent half the range (e.g. £100 to £4,000) and then the remaining 50% to represent the final half (e.g. £4,100 - £100,000)?

This would be useful for people who want to dynamically represent min and max values in their databases too, especially if they have a few records with exceptionally high or low values.

Cheers!
Niko
Telerik team
 answered on 14 Sep 2011
1 answer
54 views
Hi,
            I am using Radscheduler to show appointments, but here the problem is when ever i am trying to decrease the Radscheduler size by giving Daystart and Dayend time, the calender popup is going beyond to scheduler, i am attaching the screen shot with this thread, the problem which i am facing. Please look into that and help me out as early as possible, its very urgent requirement.
Peter
Telerik team
 answered on 14 Sep 2011
8 answers
194 views
am using assembly RadSplitter.Net2

The method 
splitter.GetPaneById('EndPane')
throws error as object doesnt support this property or method...
This is where am calling the method...OnClientLoaded="CollapsePane()".
code is
function CollapsePane()
{
var splitter = "<%= RadSplitter1.ClientID %>";
var pane = splitter.GetPaneById('EndPane');
}

The following is the pane code
 <radspl:RadSplitter ID="RadSplitter1" runat="server" Height="100%" LiveResize="true" OnClientLoaded="CollapsePane()"
                        ResizeWithBrowserWindow="true" Width="100%" Skin="Outlook" BorderSize="0" BorderStyle="None">
 <radspl:RadPane ID="EndPane" runat="server" Scrolling="none" Width="22" MinWidth="22"
                            Visible="false">
                            <radspl:RadSlidingZone ID="Radslidingzone1" runat="server" Width="22"  SlideDirection="Left"
                                ClickToOpen="false">
                                <radspl:RadSlidingPane ID="Radslidingpane5" Title="Sections" runat="server" Width="150"
                                    TabView="TextAndImage" IconUrl="../assets/favorites.gif" >
                                    <div id="radSecSub">
                                    <table class="right_navigation" id="tblRightPane" runat="server">
                                    </table>
                                    </div>
                                </radspl:RadSlidingPane>
                            </radspl:RadSlidingZone>
                        </radspl:RadPane>
                    </radspl:RadSplitter>
Niko
Telerik team
 answered on 14 Sep 2011
5 answers
181 views
Hi,

I am working on Telerik RadScheduler.

I have different sessions called screening, evaluation, discussions and etc....

So depending upon the dates of the above sessions, I have to highlight the calendar in Radscheduler.
All the other dates other than this should be blocked.

For example:
Screening : 2/23/2011 to 3/29/2011
Evaluation :4/12/2011-4/30/2011
Discussions-1/2/2011-1/5/2011.

All the dates other than this should be blocked and not be highlighted to the user.Is there any way to do it?
Peter
Telerik team
 answered on 14 Sep 2011
10 answers
274 views
We're trying to use a RadWindow for printing some information entered by the user:

Here are the basic steps we're using in code behind:
  • New up a RadWindow

RadWindow window = new RadWindow();
window.ID = "windowShowPrintDialog";
//window.NavigateUrl = "PrintAdHoc.aspx";
window.VisibleOnPageLoad = true;
window.Modal = true;
window.Width = 200;
window.Height = 300;

  • Use LiteralControl to add info and JavaScript to window

string jsPrint = null;
using (StreamReader sr = new StreamReader(Server.MapPath("PrintWindowJavaScript.txt")))
{
    jsPrint = sr.ReadToEnd();
}
 
window.ContentContainer.Controls.Add(new LiteralControl(jsPrint));
 
...
 
 
 
window.ContentContainer.Controls.Add(new LiteralControl(name));
window.ContentContainer.Controls.Add(new LiteralControl(startdate));
window.ContentContainer.Controls.Add(new LiteralControl(enddate));
window.ContentContainer.Controls.Add(new LiteralControl("<button onclick=\"printWin(); return false\">print content</button><br />"));


  • PrintWindowJavaScript.txt is:

<script type="text/javascript">
function GetRadWindow()
{
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow;
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    return oWindow;
}
 
 
 function printWin()
            {
                var oWnd = GetRadWindow();
                var content = oWnd.GetContentFrame().contentWindow;
                var printDocument = content.document;
                if (document.all)
                {
                    printDocument.execCommand( "Print");
                }
                else
                {
                    content.print();
                }
 
            }  
 
</script>
  • Show window by adding it to the for controls

this.Form1.Controls.Add(window);


The RadWindow is displayed along with the print button.  When the print button is clicked, we get a java script error:

Microsoft JScript runtime error: Object required

at (see bold text):

function GetRadWindow()
{
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow;
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    return oWindow;
}

Is it possible to print and/or run javascript code from a RadWindow created like this?

Thanks,

Jerry



Marin Bratanov
Telerik team
 answered on 14 Sep 2011
4 answers
776 views
I have just downloaded the trial version of Rad Controls for ASP.NET AJAX. When I create a new rad control project in VS2010 I can add controls and they work properly. When I add rad controls to an exsisting project they no longer work. I have changed the web.config file of my exsisting project to match that of the rad control project that works, with the exception of the membership profile and connection strings for my databases. When I run the project that works with the date picker I get the calender image button that is supposed to be there, but when I run the project that doesn't work, instead of the button, I get text that says "Open the Pop Up Calender". Not sure if that info is helpful but may help with wny it isn't working. Any help on where to look to get things working is greatly appreciated.

Thanks
Maria Ilieva
Telerik team
 answered on 14 Sep 2011
1 answer
89 views
Dear Sirs,
we are using latest version of RadScheduler in our web application and we need to hide some custom attributes which are shown in the appointment's edit form such as the EndDate Date/Time pickers, subject textbox and so on.
In a previous version of tererik's library (maybe 2009) we used something like that on the FormCreated event:
RadDatePicker startDate = (RadDatePicker)e.Container.FindControl("StartDate");
RadDatePicker endDate = (RadDatePicker)e.Container.FindControl("EndDate");
endDate.CssClass = "Hide";
WebControl conEndTime = (WebControl)e.Container.FindControl("EndTime");
conEndTime.CssClass = "Hide";
RadTextBox subjectTextbox = (RadTextBox)e.Container.FindControl("Subject");
subjectTextbox.CssClass = "Hide";
RadTextBox tbxTicketId = (RadTextBox)e.Container.FindControl("AttrTicketId");
tbxTicketId.CssClass = "Hide";
tbxTicketId.LabelCssClass = "Hide";
................

but now it doesn't work anymore, so how can we hide the controls in the appointment form?
Many thanks in advance.
Best Regards.
Peter
Telerik team
 answered on 14 Sep 2011
0 answers
69 views
Hello,

I would like to insert/edit/update rows to the shipped orders grid. How could i make this?
 
Thank you very much.
George
Top achievements
Rank 1
 asked on 14 Sep 2011
1 answer
96 views
Have a strange one.

Using the telerik grid.  When we click on another page number the results refresh correctly.  But when we try to edit a item, the item that opens up is the item on page 1 in the same location.  Also if we click next page it always goes to page 2.
If we disable viewstate for the control it works fine also.  Also another weird thing is when the item opens a 404 file not found response(seen in fiddler) for a png file (called by webresource.axd) but the item opens fine even though its the wrong tiem.  The file is there and can be browsed directly in IIS.

The issue ony occurs on 2 load balanced servers. Testing done has been directly to one server bypassing the load balancer.  It works fine on other Windows 2008 R2 servers so don't think it's a issue with the code.
Is there any IIS configuration or applications that might cause this issue?  Any ideas?

Thanks!!
Radoslav
Telerik team
 answered on 14 Sep 2011
1 answer
55 views
I have a radeditor that is picking up the background image from the page that it's on.  In ie8, I created a stylesheet for the ContentAreaCssFile with the following properties

body {
            margin: 0 !important;
            padding: 0 !important;
            border: 0 !important;
            list-style: none !important;
            background-image: none !important;
            font:normal 13px Courier New !important;
            }

and that corrected the issue, but it doesn't seem to work in ie9.
Rumen
Telerik team
 answered on 14 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?