Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
59 views
Hi everybody,
I tried to access a control ,for example,a textbox .There is one simple solution th this,
"

GridEditFormItem

 

 

editedItem = e.Item as GridEditFormItem;

 

 

 

 

TextBox txt1 = editedItem.FindControl("TextBox1") as TextBox;"

 


but when and in which event i shoud do this?for example In Telerik 2011 Demo(Input/RadInputManager/Integration with Grid) 
when  ItemCreated evnts fires,this part of code will be executed,but this events fires when an item is created ,just before that item has been initialized,so in this time the txt1.Text is Null and not the value the user has entered.
I want to change the insertCommand and need to pass the TextBox1.Text to the insertCommand ,
would anyone please tell me how ?
Princy
Top achievements
Rank 2
 answered on 31 May 2011
3 answers
383 views
Hello,

I generate a chart runtime. But lable are overlapped with the lines in line chart though put following code.
RadChartEditChart.AutoLayout = True
RadChartEditChart.IntelligentLabelsEnabled = True

Is there any other way to get separate the values from the line chart ?
Yavor
Telerik team
 answered on 31 May 2011
2 answers
72 views
Hi

1-       I have a page that contains a grid bound with a sql DB. For adding row in the DB, I open a new radWindow (with radopen) that contains the form for adding a new row. The problem is, when I add the row, the sql DB is updated but not the grid. So, I tried to update my grid by doing a rebind when the radWindow is close, but I don't know how to detect when a radWindows is closed.
May someone help me ?

2- Like in this example, I use a context menu to add/edit/delete data from my grid. However, I add another context menu that appears when I clicked inside a radGrid, but not on a item. To do that, I set the target of the second context menu to the ID of the radGrid. When the page is first load, everything is fine. However, when I delete an item, the second context menu (the one that target the radGrid) doesn't appears. I make some test and it seem like the second context menu it doesn't call at all, like if it doesn't target the radGrid anymore.
Anyone have any ideas why it is doing such a strange thing ?   

Thank you
David
David
Top achievements
Rank 1
 answered on 30 May 2011
2 answers
80 views
Hi! I'm really new to telerik and i have been only playing a little with this powerfull set of tools. Im trying to make some menus and untill now i have been using default skins that appear in the smartTag. I would like to know if there is a way to add to the skin list in smart Tag a costum skin i made or download.
Fabio
Top achievements
Rank 1
 answered on 30 May 2011
2 answers
86 views
Hi All,

I'm not sure why but when using compatibility view in ie9 all of my radwindows "OnClientClose" functions are not being called. I've updated to the latest version of the controls (My 19th) and no go.

example:

<

 

 

telerik:RadWindow Skin="Default" runat="server" ShowContentDuringLoad="false" Width="700px"

 

 

 

Height="500px" Behaviors="Close" Modal="true" ID="RdWindowCO2Refinement" Title="A Window"

 

 

 

VisibleStatusbar="false" OnClientClose="OnClientClose" />  

 

Rich
Top achievements
Rank 1
 answered on 30 May 2011
1 answer
82 views
There are two pages, default.aspx and default2.aspx
default.aspx open radwindow on the client.
default2.aspx add event like add_commnd or add_resize will cause an error "Out of stack space"

Please help me fix this issue. thank you.

Below are the code for those two pages
default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Main.Test.Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">
        <Scripts>          
         <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>
    </asp:ScriptManager>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    </telerik:RadWindowManager>
    </form>
    <script>
        $(document).ready(function ()
        {
            var oWindow = window.radopen("Default2.aspx"null);
        });        
    </script>
</body>
</html>

default2.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="Main.Test.Default2" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">
        <Scripts>          
         <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>
    </asp:ScriptManager>
    <div>
    default2
    </div>
    </form>
    <script>
        $(document).ready(function ()
        {
            var oWindow = GetRadWindow();
 
            oWindow.add_resize(OnClientResize);
        });
 
        function OnClientResize(sender, eventArgs)
        {
            alert(sender.toString());
        }
 
        function GetRadWindow()
        {
            var oWindow = null;
            if (window.radWindow)
                oWindow = window.radWindow;
            else if (window.frameElement.radWindow)
                oWindow = window.frameElement.radWindow;
            return oWindow;
        }
    </script>
</body>
</html>

Svetlina Anati
Telerik team
 answered on 30 May 2011
2 answers
79 views
Hello,

I have a problem to Execute Jquery alert after radscheduler events.

For example:
in the RadScheduler1_FormCreating event i want to execute this code:

Page.ClientScript.RegisterStartupScript(typeof(EditServiceConsultantCalendar), "error", "jAlert('the number of rooms is not enaugh', 'warning');", true);

but the Jquery alert is not executed.

on the other side if I insert this code after a button_clickevent then the Jquery alert is executed.


Thanks for helps.
MOUSLIKI
Top achievements
Rank 1
 answered on 30 May 2011
1 answer
80 views
Hi,

I have got a very weird problem with RadListBox control. It appears okay first time when page loads but once I move the mouse cursor to other parts of the system e.g. on hovering over the tab, it disappears. Please see the attachement and the code-snippet
as follows

<

 

telerik:RadListBox ID="lstDatasets" runat="server" SelectionMode

="Multiple"

 

 

 

Width="250px" Height="200px" Skin

="Office2007">

 

 

 

<ButtonSettings TransferButtons="All"></ButtonSettings

>

 

 

 

</telerik:RadListBox

>

Please remember, it is placed inside RadTabStrip - PageView
Many thanks,
MG

 

 

Plamen
Telerik team
 answered on 30 May 2011
4 answers
188 views
Hello telerik,

I have RadPanelBar, In Internet Explorer it expand and collapsed OK with compatibility view.
I remove the Expanded settings as per
http://www.telerik.com/community/forums/aspnet-ajax/panelbar/radpanelbar-items-not-expanding-in-firefox.aspx
and use this script
function onLoad(sender)
{
    var panelBar=sender;
    panelBar.get_items().getItem(1).set_expanded(true);
}

The item expand correctly but other items not collapse.
any fix please
mohmmad misk
Top achievements
Rank 1
 answered on 30 May 2011
9 answers
137 views
How Can i found out bound column  and control into template field in my javascript function that is created by myself
Tsvetoslav
Telerik team
 answered on 30 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?