Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
144 views
Hi,

I have a Radcolorpicker on my web user control page. This usercontrol is invoked from aspx page. And the Scriptmanager tag is on the master page. It builds well. But at runtime I get the following error -
 " Script control '<control ID>' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl  "

It works well in a standalone page. Anything I missed to configure?


Thanks,
Prashant Phalle.
Petio Petkov
Telerik team
 answered on 23 Sep 2009
2 answers
101 views
Is it possible to add templates to the radmenu via javascript.

A little more exact question could be : How do I add a RadTextBox (I want to possibly use other controls as well) to a radmenuitem via javascript?
Baatezu
Top achievements
Rank 2
 answered on 23 Sep 2009
1 answer
226 views
I use the Compass framework for CSS design at the start of my css file I have a global style reset applied. This occurs on line 1 of the very first style sheet in my mark up. As it's meant to be applied first and then overridden by any style afterward. It is just in a .css file linked in as a stylesheet in my header tag.

However it seems that on text fields (or possible all controls that are decorated) that the RadForm decorator is inserting it's CSS before my reset so half of the CSS applied to the textboxes is ruined since margins and padding are all changed.

I can resolve the problem by removing the table altering reset portion so I definitly verified that it is caused by it however why is it being caused by it? Is there a setting for the decorator that will tell it to make sure to apply it self last?

Also why is the documentation for the RadFormDecorator almost non existent when you view the telerik help online?
Martin
Telerik team
 answered on 23 Sep 2009
2 answers
163 views
Is there a trick to have the check box labels decorated?  A very simple dialog box, but the labels for check boxes seem untouched by the decorator.  We are using the "Hay" skin, declared in the webconfig.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="printDialog.aspx.vb" Inherits="printDialog" %> 
 
<!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>Print Options</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" /> 
    <script language="javascript" type="text/javascript">  
 
        function GetRadWindow() {  
            var oWindow = null;  
            if (window.radWindow) oWindow = window.radWindow;  
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;  
            return oWindow;  
        }  
 
        function returnToParent() {  
            //create the argument that will be returned to the parent page  
            var oArg = new Object();  
 
            oArg.showTitle = document.getElementById("chkTitle").checked;  
            oArg.pageTitle = $find("txtTitle").get_value();  
            oArg.showLegend = document.getElementById("chkLegend").checked;  
            oArg.showNorthArrow = document.getElementById("chkNA").checked;  
 
 
            //get a reference to the current RadWindow  
            var oWindow = GetRadWindow();  
 
            //Close the RadWindow and send the argument to the parent page  
            oWindow.close(oArg);  
        }  
 
        function onCancel() {  
            var oWindow = GetRadWindow();  
            oWindow.argument = null;  
            oWindow.close();  
        }  
 
        function onCheckChanged_chkTitle() {  
            if (document.getElementById("chkTitle").checked) {  
                $find("txtTitle").enable();  
            }  
            else {  
                $find("txtTitle").disable();  
            }  
        }  
 
    </script> 
        <table> 
            <tr> 
                <td> 
                    <asp:CheckBox ID="chkTitle" runat="server" Text="Show Title?" /> 
                </td> 
            </tr> 
            <tr> 
                <td>&nbsp;&nbsp;&nbsp;  
                    <telerik:RadTextBox ID="txtTitle"   
                                        runat="server"   
                                        Label="Title"   
                                        Enabled="false"   
                                        MaxLength="50" 
                                        Width="250px">  
                    </telerik:RadTextBox>                  
                </td> 
            </tr> 
             <tr> 
                <td> 
                    <asp:CheckBox ID="chkLegend" runat="server" Text="Show Legend?" on /> 
                </td> 
            </tr> 
            <tr> 
                <td> 
                    <asp:CheckBox ID="chkNA" runat="server" Text="Show North Arrow?" /> 
                </td> 
            </tr> 
       </table> 
       <br /> 
       <table> 
        <tr> 
            <td> 
                <asp:Button ID="btnOK" runat="server" Text="Print" OnClientClick="returnToParent(); return false;" /> 
            </td> 
            <td> 
                <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClientClick="onCancel(); return false;" /> 
            </td> 
        </tr> 
       </table> 
    </div> 
    </form> 
</body> 
</html> 
 

 
Partial Class printDialog  
    Inherits System.Web.UI.Page  
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
        chkTitle.Attributes.Add("onclick", "onCheckChanged_chkTitle();")  
    End Sub 
End Class 
Martin
Telerik team
 answered on 23 Sep 2009
1 answer
98 views
Hi,

Anyone know how to use CotextMenu in listbox? is this possible? any examples?
Shinu
Top achievements
Rank 2
 answered on 23 Sep 2009
1 answer
209 views
How can I access the text inside txtProgram from code behind. I am able to use findcontrol to find the ID of the text box, but I cannot access the Text property of txtProgram to be able to process the data.
<radg:radgrid ID="grdProgram" runat="server"
        onneeddatasource="grdProgram_NeedDataSource"
        onitemdatabound="grdProgram_ItemDataBound"
        onitemcommand="grdProgram_ItemCommand">
    <MasterTableView EnableNoRecordsTemplate="True" AutoGenerateColumns="false" DataKeyNames="ProID">
        <Columns>
      
         <radG:GridTemplateColumn HeaderText="Program">
        <ItemStyle Width="80%" VerticalAlign="top" />
        <HeaderStyle Width="80%" />
        <ItemTemplate>
        <div><%#Eval("Pog")%> </div>
           Default Url: <br />
            <br />
    <asp:TextBox ID="txtProgram" runat="server"   Width="70%">Some Text From user</asp:TextBox>
        </ItemTemplate>
    </radG:GridTemplateColumn>
           <radG:GridButtonColumn ButtonType="linkButton"     Text="Save Custom Link" HeaderText="Edit" UniqueName="edit" CommandName="EDITME">
                    <ItemStyle HorizontalAlign="center" />
           </radG:GridButtonColumn>
        </Columns>
        <NoRecordsTemplate>
            No Current Programs</NoRecordsTemplate>
    </MasterTableView>
</radg:radgrid>
Todd Anglin
Top achievements
Rank 2
 answered on 23 Sep 2009
3 answers
499 views
I have a grid that contains a date field column. Depending on some business rules, I need to display one of three dates in that date field.

The grid is bound to a DataSet that I get back from a web service call in the NeedDataSource call. The dataset contains the 3 date fields, along with other relevant data.

Where is the proper place to put the logic to determine which date field to display? I can put it in the NeedDataSource call and do something like dynamically add a new column to the dataset and bind to that column, but I'm wondering if that's the best place to do it. I thought about doing it in the ItemDataBound event, but it doesn't appear that I have access to the non-bound columns in the dataset at that point (do I? how?).

Is there another, better place to do it? It's simple logic, I just need to know the correct place to do it - that is, the most efficient, and one that will not mess up autosorting or filtering - and also have access to the underlying data source and/or columns that I need.




Todd Anglin
Top achievements
Rank 2
 answered on 23 Sep 2009
2 answers
152 views
hi,

 i am trying to show dropdownlist automatically on mousehover and close on mouseout without clicking the imagebutton. is this achievable?

thanks all.
Benjamin
Top achievements
Rank 1
 answered on 23 Sep 2009
1 answer
175 views
Hello,

I have a radgrid with paging setup, setting allowpaging="true" and the page size to 20.  On the client, I set the virtualItemCount property to its proper value.  But no paging appears.  How can I make it appear, even if I have to call a JS method manually?  I don't know why it doesn't work, and I don't want to set it on the server-side....
Todd Anglin
Top achievements
Rank 2
 answered on 23 Sep 2009
1 answer
111 views
I am trying to programatically set the datasource of a level3 hierarchy based on a value of a field in the level 2 hierarchy in vb.net.
Any suggestions?
Thanks in advance.
Todd Anglin
Top achievements
Rank 2
 answered on 23 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?