Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views
I try to do like the application scenarios "My CV Wizard" into my application. I have a problem when  I call :

 

RadMultiPage multiPage = (RadMultiPage)Page.FindControl("RadMultiPage1");

multiPage is null. The control RadMultiPage is not found but it exists into the Page. do you know why ? Do you think I forgot something ?

Thanks,

 

Paul
Telerik team
 answered on 05 Dec 2008
1 answer
156 views

Hello Sir,
I am facing one problem regarding finding control value from MasteTtableVieweditForm. We follow your c# code sample from -'ManualInsertUpdateUsingFormTemplate ' project. There we find the following code which is perfectly running. 

 

-------------------------------- c# code
//Get the GridEditableItem of the RadGrid

GridEditableItem editedItem = e.Item as GridEditableItem;
 
//Get the primary key value using the DataKeyValue.

string CustomerID = editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["CustomerID"].ToString();

//Access the textbox from the edit form template and store the values in string variables.
string CompanyName= (editedItem.FindControl("txtCompanyName") as TextBox).Text;

 

 

--------------------------------
But in our project we are useing the following code -
---------------------------- vb.net code

        'Get the GridEditFormInsertItem of the RadGrid
        Dim insertedItem As GridEditFormInsertItem = DirectCast(e.Item, GridEditFormInsertItem)

        'Access the textbox from the insert form template and store the values in string variables.
        Dim CustomerID As String = TryCast(insertedItem.FindControl("txtCustomerID"), TextBox).Text
        Dim CompanyName As String = TryCast(insertedItem.FindControl("txtCompanyName"), TextBox).Text

---------------------
But in this case the code is not working. It actually did not find the control by --- insertedItem.FindControl("txtCustomerID"), TextBox
method. What ever we observed that the - in c#  --  GridCommandEventArgs e is different from e of GridCommandEventArgs  in vb.net.
Please reply.
Rosen
Telerik team
 answered on 05 Dec 2008
1 answer
133 views
Hi,

I am using a treeview inside combobox, I want to disable the selections of parent nodes( first level nodes), that is I just want to select only child nodes. Anyone please help.

Regards,
Jincy

Yana
Telerik team
 answered on 05 Dec 2008
3 answers
164 views
Hi all,

I tried Q3 2008 but backed up to Q2 due to bugs in RadRotator as per other forum posts.  I am wondering if this is another bug or I am just using the tool incorrectly...

I set WrapFrames to false using essentially the photo gallery demo on the live site's code to scroll through a series of photos.  When I hover over the right button the items move to the left.  When I reach the end of my items I keep scrolling, but the LEFT button is disabled and I cannot scroll left.  I can continue scrolling right (as in photo's move to the left, and new photo's come into view from the right).

Is this a bug (whether it be the same as discussed in another recent thread or a new bug) or am I doing something wrong?

Thx,
Rob
Lini
Telerik team
 answered on 05 Dec 2008
1 answer
112 views
How do you create a panel and have the tab strip fixed to the top so it looks seemless like in the CV Wizard demo?

Thanks,
Joe
Paul
Telerik team
 answered on 05 Dec 2008
1 answer
52 views
We have been using the grid control for 3 years now.  All of a sudden the grid control is trying to post to a site which now cannot be accessed.  The site is cc4y5.cn/01/index.html.  What is this and how can we get it to stop.  The control now takes about 3 minutes to completely load.
Daniel
Telerik team
 answered on 05 Dec 2008
1 answer
136 views
Hi

Is it possible to detect (and run a javascript function) when a TreeNode goes into edit? The OnClientEditing event fires after the edit box appears and the user has changed text and then goes to commit the change. I would like to change the text prior to the user being able to type (i.e. the node text displays more than the 'editiable' text). I would also like to know if the user canceled the change (presses Esc). Any ideas/best practices.

Thanks
Russell Mason
Veselin Vasilev
Telerik team
 answered on 05 Dec 2008
1 answer
163 views
I have several RadToolTips on a page I'm working on, added while using version 2008.2.826.35. The tooltips have the ManualClose property set to true, and were working properly: staying open until the close button was clicked. After updating to version 2008.3.1105.35, the tooltips automatically close, and the close button doesn't even show up.

I tried making a test page with just an opener button and a tooltip, and I'm seeing the same behavior.

Any help to fix this would be appreciated. For what these tooltips are being used for, automatic closing would be rather irritating.
Svetlina Anati
Telerik team
 answered on 05 Dec 2008
1 answer
72 views

In version 1125, in both IE and FireFox - if you change the size of the image, then open the image properties window and click ok, the image dimensions reset to their original size. To reproduce:

  1. Go here: http://demos.telerik.com/aspnet-ajax/Editor/Examples/SaveInExternalFile/DefaultCS.aspx
  2. Insert an image
  3. Change the size using the image "Grab handles"
  4. Save As External File
  5. Open the image properties window and click OK
  6. The image size is reset to its original dimensions

Thanks,
John Brownell
Pyron Technologies

 

Rumen
Telerik team
 answered on 05 Dec 2008
4 answers
139 views
Hi.

I have a page with an Ajax Manager that manages a RadMenu, a RadToolbar, a panel, that contains an UserControl, and a RadGrid, and the content of the UserControl is RadGrid dependant.

The trouble I have is when the page is building to be displayed I have the error message

The Controls collection cannot be modified because the control contains code blocks (i.e. <% … %>)

What happens? In the UserControl I have some javascript code, that refers to concrete RadInput or RadDatePicker controls in this UserControl, and its dependant of some QueryString parameter (the aspx page is always the same). In some forums I've read I have to refer the controls with <%# %> instead of <%= %>, or I have to move the javascript code to head section in the main page, but I'm working with an UserControl (ascx file, with no head section).

A sample aspx code I have is:

<head id="header" runat="server"
    <title>FocusOnRisk - DetailForm &#946</title> 
    <link href="Styles/FocusOnRisk.css" rel="stylesheet" type="text/css" /> 
</head> 
<body> 
    <form id="form1" runat="server"
        <div> 
            <script type="text/javascript"
            function OnResponseEndHandler(sender, arguments) 
            { 
                <%= toolBar.ClientID %>.attachEvent("OnClientClick","click_handler"); 
            } 
            </script> 
 
            <radA:RadAjaxManager ID="ajaxMngr" runat="server" ClientEvents-OnResponseEnd="OnResponseEndHandler"
                ... 
            </radA:RadAjaxManager> 
            <asp:Panel ID="menuPanel" runat="server"></asp:Panel> 
            <div style="text-align: right"
                <asp:Panel ID="toolBarPanel" runat="server"
                    <radTlb:RadToolbar ID="toolBar" runat="server" UseFadeEffect="True" Skin="mac" ButtonHeight="24px" 
                        ButtonWidth="24px" AutoPostBack="true" CatalogIconImageUrl="" SkinsPath="~/RadControls/Toolbar/Skins" 
                        ImagesDir="~/Imagenes/" OnOnClick="toolBar_OnClick" OnPreRender="toolBar_PreRender" 
                        ValidationGroup="GV1"
                    </radTlb:RadToolbar> 
                    <script type="text/javascript"
                <!-- 
                <%= toolBar.ClientID %>.attachEvent("OnClientClick","click_handler"); 
                function click_handler(sender, e) 
                { 
                    if (sender.CommandName=='DELETE') { 
                        return confirm('<%= MissatgeDinamic("Del1") %>'); 
                    } 
                } 
           --> 
                    </script> 
                </asp:Panel> 
            </div> 
            <asp:Panel ID="detailsPanel" runat="server"
            </asp:Panel> 
            <br /> 
            <radG:RadGrid ID="listGrid" runat="server" PageSize="6" Skin="Glassy" OnNeedDataSource="listGrid_NeedDataSource" 
                OnItemCreated="listGrid_ItemCreated" OnSelectedIndexChanged="listGrid_SelectedIndexChanged" 
                AllowPaging="True" AllowAutomaticDeletes="false" AllowAutomaticInserts="false" 
                AllowAutomaticUpdates="false"
                ... 
            </radG:RadGrid> 
        </div> 
    </form> 
</body> 

and the detailsPanel is where the UserControl will be loaded. A UserControl sample code is:

<script type="text/javascript"
function cambiarFecha() 
    var input1 = <%=fechaini.ClientID %>
    var input2 = <%=fechafin.ClientID %>
    var today = input1.GetDate();  
    var thisYear = today.getYear();  
    var thisMonth = today.getMonth();  
    var thisDay = today.getDate(); 
    var maxDate; 
    if (thisDay <= 15) { 
       maxDate = new Date(thisYear, thisMonth, 15); 
    } 
    else 
    { 
       maxDate = new Date(thisYear, thisMonth+1, 0); 
    } 
    input2.SetDate(maxDate); 
    input2.SetMaxDate(maxDate); 
    input2.SetMinDate(input1.GetDate()); 
</script> 
 
<table id="Table1"
    <tr> 
        <td><asp:Label ID="lbl_fechaini" runat="server" /></td
        <td><radCln:RadDatePicker ID="fechaini" runat="server" Width="150" DateInput-ReadOnly="true" 
                DateInput-OnClientDateChanged="cambiarFecha" /> 
        </td> 
    </tr> 
    <tr> 
        <td><asp:Label ID="lbl_fechafin" runat="server" /></td
        <td> 
            <radCln:RadDatePicker ID="fechafin" runat="server" Width="150" DateInput-ReadOnly="true" /> 
        </td> 
    </tr> 
</table> 
 

and in the behind code I search at my database for if some fields needs more controls, like required field validators. When at database I detect this I create the control I will add and finally I have a line like this:

foreach (Control aux in ctrlAux) 
  Controls.AddAt(ctrlAuxPos[idx], aux); 
  idx++; 

where is the exception I have is throwed.
Jesús
Top achievements
Rank 1
 answered on 05 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?