Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
198 views

The RadCombox I am using has only two values "AND" and "OR". How do I make the combo box shorter?
Please have a look at the attached screen shot and the corresponding code block below:

<telerik:RadComboBox ID="drpFilterType" runat="server" AutoPostBack="true" EnableViewState="true"
           Width="100px" Skin="Default"  MarkFirstMatch="True">                              
  <Items>
      <telerik:RadComboBoxItem Text="AND" Selected="true" Value="AND"/>
      <telerik:RadComboBoxItem Text="OR" Value="OR"/>
   </Items>
</telerik:RadComboBox>
Kate
Telerik team
 answered on 24 Jun 2011
2 answers
94 views
Hi All,

 Is it possible to remove the listbox backword button. i want the button that move from left list box to right listbox, but I don't want the button that moves from right listbox to left. Is it possible to remove that particular button. Also, once the user moves the item from left listbox to right listbox, I don't want the items to disappaer from the left listbox.

Can I acheive this.

Please let me know

Any help will be appreciated.
Anjali
Top achievements
Rank 1
 answered on 24 Jun 2011
1 answer
55 views
I cannot get image listing to show in the Image Manager of the Editor control.  It just shows nothing.  I verified that my virtual directory is correct because it is showing image listing in IIS7 Server Manager.

I linked it to a virtual directory however it does not work when using a virtual directory link to a remote server directory.  If I link it to a local folder on the web hosting server it works fine.

I followed the instructions on this link: http://www.telerik.com/support/kb/aspnet-ajax/editor/uploading-images-and-files-to-a-shared-drive.aspx
however the instructions seems specific to IIS6.

Is these a different technique used for IIS7?    Is this a permissions problem?
Dobromir
Telerik team
 answered on 24 Jun 2011
3 answers
359 views
Hello,

I'm having issues when setting the selected and minimum dates on a RadDateTimePicker client-side.

I've two RadDateTimePickers, one for setting the starting datetime (dtpBegin) and other for the ending (dtpEnd) declared as follows:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
        ......
    <telerik:RadDateTimePicker ID="dtpBegin" runat="server">
        <ClientEvents OnDateSelected="startDateTimeSelected" OnPopupClosing="startDateTimePopupClosing" />
    </telerik:RadDateTimePicker>
    <telerik:RadDateTimePicker ID="dtpEnd" runat="server">
        <ClientEvents OnPopupClosing="endDateTimePopupClosing" />
    </telerik:RadDateTimePicker>
</telerik:RadAjaxPanel>
 
<telerik:RadScriptBlock runat="server">
    <script type="text/javascript">
        var endDateTimePickerId = "<%= dtpEnd.ClientID %>";
    </script>
</telerik:RadScriptBlock>


When selecting the starting datetime, I'd like to set the selected value as minimum on the ending control and also would like to set a valid value for that control (say the starting datetime plus 1 minute). To do that, I've the following code client-side:
function startDateTimeSelected(sender, e) {
    if (e.get_newDate != undefined && e.get_newDate() != null) {
        var startDate = e.get_newDate();
        var endDateTimePicker = $find(endDateTimePickerId);
 
        endDateTimePicker.set_minDate(e.get_newDate());
        if (endDateTimePicker.get_timeView().getTime() < startDate) {
            var timeView = timePicker.get_timeView();
            timeView.setTime(newDate.getHours(), newDate.getMinutes() + 1, newDate.getSeconds(), newDate);
        }
    }
}

Now, even though the calls to set_minDate and setTime are not throwing any errors, the selected date on dtpEnd is not changed neither is the minimum date time set. One thing I find weird is that after setting the time on dtpEnd, if I run on Firebug's console:
$find(endDateTimePickerId).get_timeView().getTime()
 I get null.

And regarding the minimum date, if I run on Firebug's console:
$find(endDateTimePickerId).get_minDate()

I get the expected value (even though the calendar allows to select any value).
One extra thing that might be useful for troubleshooting is that I'm also setting the MinDate server-side for these two controls (setting it to DateTime.Now to forbid users selecting past datetimes).

Thanks a lot,
Diego.
Maria Ilieva
Telerik team
 answered on 24 Jun 2011
4 answers
103 views
Hi.
I´ve got some problem to get my template manager dialog to fit my needs.
As below I set with / height of the dialog from code-behind, but i also need to set new width / height to the iframe that holds "preview".

protected override void OnInit(EventArgs e)
{
    base.OnInit(e);
    this.Page.PreRenderComplete += new EventHandler(Page_PreRenderComplete);
}
void Page_PreRenderComplete(object sender, EventArgs e)
{
    Telerik.Web.UI.DialogDefinition TemplateManager = bloggEditor.GetDialogDefinition("TemplateManager");
    TemplateManager.Height = Unit.Pixel(500);
    TemplateManager.Width = Unit.Pixel(1020);
}

How can i access Template Manager dialog iframe "templateIframe" to set my own width / height?

/Mattias
Rumen
Telerik team
 answered on 24 Jun 2011
1 answer
119 views
Hi

I use editor insert text ( Example : <b>abcdefghr </b> ) I was format "Bold" for Text. But when i insert in Database, It remove tag HTML become "abcdefghr" not Bold.

Please help
Dobromir
Telerik team
 answered on 24 Jun 2011
1 answer
91 views
Hi there , 
Can i call a Ajax request on the content page when i close the rad pop up window from the 'X' on the pop up window and not a button on the pop up window ?
Please advise if anyone has done this 
Thanks
Tsvetoslav
Telerik team
 answered on 24 Jun 2011
1 answer
98 views
I want to use RadMenu to show a tree of pages as an indented list of links. The basic markup that it generates is perfect, but I don't need the slide effects for child items: I want them to always be displayed. Is there any way of switching the slide feature off?
Kate
Telerik team
 answered on 24 Jun 2011
1 answer
292 views
Hi Guys,

I just download this control and I'm trying to walk through the tutorial pdf. All of the screen shots are different from the one that I that I have? I pretty much figured out most of it, however, I'm having trouble with getting the RadGrid to Edit, Add and Delete. The tutorial tells me "Go into the Property Builder, select the Master Table, select the Columns collection and then expan the Button Column tree in the Available Columns area." The button is not expandable??? It further says "You will see three options there. Go ahead and add all three." Again, nothing to add???

Can anyone help me out with this? Any help would be greatly appreciated.

William
Princy
Top achievements
Rank 2
 answered on 24 Jun 2011
1 answer
280 views
Long subject, I know, but here's what's happening:

I have a RadAjaxPanel.  Inside the RadAjaxPanel is an asp:Panel set to not visible and a button (button1).  Inside the asp:Panel is a button (button2) that calls a function called AlertIt() within a RadCodeBlock.  When button1 is clicked, it runs server code that makes the asp:Panel visible which, in turn, shows button2.  When you click button2, however, a Javascript error is thrown saying AlertIt() could not be found on the page.  button2 is showing like it should, so It's almost like it's stripping the Javascript out of the page.

When I remove the RadAjaxPanel so that the page does regular postbacks, it works just fine.  I've also tried a RadAjaxManager, but that yields the same results.

This is very urgent, so I hope someone can reply to this.  Here is all my code:

Master
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="TelerikIssues.Site1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server"></asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:ValidationSummary runat="server" ID="ValidationSummary1" EnableClientScript="true"
            HeaderText="The following errors were encountered: " />
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>

Content Page

<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="disappearingjavascript.aspx.cs" Inherits="TelerikIssues.disappearingjavascript" %>
<%@ Register Src="~/controls/javascriptinclude.ascx" TagPrefix="uc" TagName="test" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
        <asp:Panel ID="pnlTest" Visible="false" runat="server">
            <asp:Button ID="Button1" Text="Alert It" OnClientClick="javascript:AlertIt();" runat="server" />
            <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
                <script language="javascript" type="text/javascript">
                    function AlertIt() { alert("Success"); }
                </script>
            </telerik:RadCodeBlock>
        </asp:Panel>   
        <asp:Button ID="cmShow" Text="Show" OnClick="Show" runat="server" />
    </telerik:RadAjaxPanel>
</asp:Content>

Genti
Telerik team
 answered on 24 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?