Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
556 views
Hi,

Using v2009.1.402.35, I use a WebUsercontrol popup to insert/edit record in a grid. In that popup, I have a <div> on which I toggle the css "display" property.

My problem is that the "background" window is not resizing properly to accommodate the new height of the control. The result is that the content overflows under the window.

<EditFormSettings EditFormType="WebUserControl" UserControlName="~/UserControls/TelerikHelpers/ExtraQuestionPopup.ascx" 
   CaptionFormatString="Edit extra question: {0}" CaptionDataField="ShortLabel"
   <PopUpSettings Modal="true" Width="525px" /> 
</EditFormSettings> 

Is there a way to force the redrawing of the popup window so that it take into account to height variations when I toggle the div's display from "none" to "" ?

Thanks,

Dominic.
Pavlina
Telerik team
 answered on 10 Oct 2011
1 answer
175 views
Hi,

I need set node position in telerik treeview.
As of now i could see only the default position for all treenodes in telerik treeview but i have to customize position as i attached.





Thanks and Regards
Manikandan Kumar
Kate
Telerik team
 answered on 10 Oct 2011
0 answers
274 views
hi all,
  I need context menu in cell click or image button click instead of right click like popup menu
I have GridImageColumn in the grid. When i click the particluar cell or image i need to open my context menu and highlight the clicked row as selected and i can pass the selected row to the rad window.

I did except the row selection and id picking. Can anyone help me about this?

My page is:

  function showMenu(e) 
    {
        var contextMenu = $find("<%= RadContextMenu1.ClientID %>");
        contextMenu.show(e);
//        $telerik.cancelRawEvent(e);
    }
  
    function MenuItemClicked(sender, eventArgs) {
  
            var clickedItemValue = eventArgs.get_item().get_text();
            switch(clickedItemValue)
            {
                case "Option2":
                var win = radopen("WebForm2.aspx?id=" + clickedItemValue, "RadWindow1");
                var oWnd = GetRadWindowManager().getActiveWindow();
                    oWnd.maximize();
                    return false;
                    break;
                default:
                    alert(clickedItemValue);
                    break;
            }
    }
  
  
</script>
  
  
    <Telerik:RadContextMenu id="RadContextMenu1" runat="server"
         EnableRoundedCorners="true" EnableShadows="true" OnClientItemClicked="MenuItemClicked">
    <Items>
        <Telerik:RadMenuItem Text="Option1" />
        <Telerik:RadMenuItem Text="Option2" />
        <Telerik:RadMenuItem Text="Option3" />
    </Items>
    </Telerik:RadContextMenu>
  
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" >
    <MasterTableView runat="server">
        <Columns>
            <telerik:GridTemplateColumn>
                <ItemTemplate>
                    <asp:ImageButton ID="imgMenu" runat="server" ImageUrl="" OnClientClick="showMenu(event)" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridImageColumn HeaderText="#" ImageUrl="" ></telerik:GridImageColumn>
            <telerik:GridBoundColumn HeaderText="User Name" DataField="UserName"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="First Name" DataField="FirstName"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Last Name" DataField="LastName"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Email" DataField="Email"></telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
    </telerik:RadGrid>
        <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
        ReloadOnShow="true" runat="server" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Close" >
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

Here i can click and show the context menu by putting asp image in the template column but how can i get the row of the image and highlight the row?

Instead i try with GridImageColumn. But not found any cell click event or click  in Imagecolumn events. So how can i achive this?
Akhil Raj
Top achievements
Rank 1
 asked on 10 Oct 2011
5 answers
244 views
Thanks. The example helps.
Marin Bratanov
Telerik team
 answered on 10 Oct 2011
1 answer
185 views
"The Telerik dialogs require a HttpHandler registration in the web.config file." 

I'm getting this error when I attempt to add a link to my content in the Sitecore Editor.  This started occuring after I upgraded my Sitecore CMS to Sitecore 6.4. 

The version of the Telerik.Web.UI.dll in my application bin folder is: "2010.2.826.35"

I am running the application in IIS 7.5 integrated managed pipeline mode. 

I have verified that the following handlers have been added to my application web.config file:

in the <system.webServer> section:

<handlers>
<add name="Telerik_Web_UI_DialogHandler.aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />     
<add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
</handlers>

In <system.web>
<httpHandlers>
<add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
<add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
<add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
</httpHandlers>

But - I still get the error.  Does something else need to be configured?
Marian Pintilie
Top achievements
Rank 1
 answered on 10 Oct 2011
1 answer
150 views
Hi,
 For the DateTimePicker, I set the TimeView.StartTime and TimeView.EndTime in the code behind.
 When the Time selection is actually a time from yesterday, upon selection, today's date is put in the TextBox.

So if the time 23:30 is in the TimeView and 23:30 is actually 23:30 on 10/04 (and today is 10/05).
Upon selection it shows as 10/05/11 23:30 instead of 10/04/2011 23:30.
In debug mode, when i check the value of the StartTime and EndTime they are clearly separate days, but it doesn't carry over to the front-end functionality.

Does RadDateTimePicker support days that aren't today???


int
nStartMinute = now.Minute / 15 * 15;
 radFaultDateTime.TimeView.StartTime = new TimeSpan(now.Subtract(new TimeSpan(14, 0, 0)).DayOfYear, now.Subtract(new TimeSpan(14, 0, 0)).Hour, nStartMinute, 0);
 radFaultDateTime.TimeView.EndTime = new TimeSpan(now.Add(new TimeSpan(2, 0, 0)).DayOfYear, now.Add(new TimeSpan(2, 0, 0)).Hour, nStartMinute, 0);
                radFaultDateTime.TimeView.Interval = new TimeSpan(1, 0, 0);
                radFaultDateTime.ShowPopupOnFocus = true;

Thanks,
Vasil
Telerik team
 answered on 10 Oct 2011
7 answers
199 views
My problem is similar to those of others with a twist. I need to refresh the original grid (ASP) that called the radwindow.

I call the window somewhat differently.
 
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
       {
           int index = Convert.ToInt32(e.CommandArgument);
           String value1 = GridView1.Rows[index].Cells[0].Text;
           String value2 = GridView1.Rows[index].Cells[21].Text;
           Stat.Text = GridView1.Rows[index].Cells[15].Text;
           JRID.Text = value1;
           if (e.CommandName == "Lead")
           {
               Emp.Text = GridView1.Rows[index].Cells[22].Text;
               //GridView4.DataBind();
               //SetFocus("Empview");
               Label4.Text = "~/EmpLog2d.aspx?rdate=" + DropDownList1.SelectedValue + "&emp=" + Emp.Text;
               this.RadWindow1.NavigateUrl = Label4.Text;
               RadWindow1.VisibleOnPageLoad = true; }               
 

The window is a information and verification page that runs several stored procedures then the user will close it.

But on close I need to run  Gridview1.DataBind();

and java is a foreign language to me.
Marin Bratanov
Telerik team
 answered on 10 Oct 2011
2 answers
106 views
hi

I tried this line,

System.Web.HttpContext.Current.Server.MapPath()

But it gives following error,

Object reference not set to an instance of an object.

Can u plz tell me how to solve this problem ?

Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Oct 2011
1 answer
136 views
I'm trying to create a graphical sort tool using the Rad Dock functionality, users want to be able to view what they're trying to move around so the dock has an id and an image object in it. I have a base when I move one dock to the "sorted" area. I'm wondering if there is a way to move multiple docks over. I've leveraged  an example (http://www.telerik.com/community/forums/aspnet-ajax/docking/moving-multiple-windows-at-once.aspx), but unfortunately I get an error for the javascript call set_State(1). I can't find something comparable through the forums or in the examples. Is there still a way to multiple docks to another zone?
Slav
Telerik team
 answered on 10 Oct 2011
1 answer
66 views
Hello.

I'm using RadSlidingPane on the Radsplitter.
My problem is,
If RadSlidingPane's ID and title have same text (eg. ID="RadSlidingPane1" title="RadSlidingPane1"),
RadSlidingPane content was resized over the Width,  when I resized RadSlidingPane Width.

if ID and title have different value, it working good.
I'm attaching screenshot image, and source.
<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="RadControlsWebApp1._Default" %>
 
<!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>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
    <style type="text/css">
        body, form, html
        {
            font-size: 12px;
            font-family: Arial, Verdana, Tahoma, MS Sans Serif !important;
            margin: 0px;
            padding: 0px;
            height: 100%;
            overflow: hidden;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div style="width:100%;height:100%;">
        <telerik:RadSplitter ID="Radsplitter1" runat="server" Width="100%" Height="100%"
            Orientation="Vertical">
            <telerik:RadPane ID="RadpaneContents" runat="server" Scrolling="None" BackColor="blue">
                <telerik:RadSlidingZone runat="server" ID="RadSlidingZone1" Width="22px">
                    <telerik:RadSlidingPane runat="server" ID="RadSlidingPane1" Width="250" MinWidth="125" BackColor="WhiteSmoke"
                        EnableResize="true" Title="RadSlidingPane1" Scrolling="None">
                            tab1<br />
                        <asp:TextBox ID="TextBox1" runat="server" Width="100%"></asp:TextBox>
                    </telerik:RadSlidingPane>
                </telerik:RadSlidingZone>
            </telerik:RadPane>
            <telerik:RadPane ID="RadpaneContents2" runat="server">
            </telerik:RadPane>
        </telerik:RadSplitter>
    </div>
    </form>
</body>
</html>
Dobromir
Telerik team
 answered on 10 Oct 2011
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?