Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
145 views
Hi Telerik Team,

I have a RadGrid requirement that needs "InPlace" Editmode in which there need to be two dropdown columns one depends on other dropdown selection...

so i have seen a example in your site 

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/validation/defaultcs.aspx

in this example when "Adding new Record" can i load data in second "Dropdownlist" depending on the first "Dropdownlist" selected value.
If so what is the best template column i can use to have an access on Dropdownlists.

Can u please guide me with correct approach how to obtain this requirement.

Its urgent...Please do respond

Thanks in Advance
Pavlina
Telerik team
 answered on 10 Oct 2011
7 answers
517 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
143 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
203 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
207 views
Thanks. The example helps.
Marin Bratanov
Telerik team
 answered on 10 Oct 2011
1 answer
158 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
119 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
160 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
82 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
104 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
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?