Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
I encounter the following error when i try to add skins to the entire web page by makings modifications in the web config file, The addititional code for the web config file is ;

<

 

appSettings>

 

<!--

 

Sets the skin for all RadControls to Hay -->

 

<

 

add key="Telerik.Skin" value="Hay"/>

 

</

 

appSettings>

 


which i have added in the <configuration> tag

The errors which i encounter are:

1.Error 84 D:\TrainingScheduler\Default.aspx: ASP.NET runtime error: Sections must only appear once per config file.  See the help topic <location> for exceptions. (D:\TrainingScheduler\web.config line 150) D:\TrainingScheduler\Default.aspx 1 1 D:\TrainingScheduler\
2.Error 85 Sections must only appear once per config file.  See the help topic <location> for exceptions. D:\TrainingScheduler\Web.Config 150 

Please help,

Thanks
Manan Podar
Kamen Bundev
Telerik team
 answered on 11 Jun 2009
4 answers
77 views
When you cick a date in the month view, it always goes to the day view. I'd like it to goto the timeline view and select the appropiate day. How can I accomplish this?
Troy
Top achievements
Rank 1
 answered on 11 Jun 2009
1 answer
175 views
Hi Telerik,
I need help:
I have a rad grid with edit form and bunch of text boxes and buttons in it.
inside edit form I am trying to load user controls into RadToolTip dinamicly based on clicked button.
When I click first link button lnkEditSupplierSearch ==> everything works fine;  however if I click
after this the another link button (lnkEditProductrSearch and only after clicking lnkEditSupplierSearch)
I am receiving following error:

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control
tree that was used to save viewstate during the previous request.  For example, when adding controls
dynamically, the controls added during a post-back must match the type and position of
the controls added during the initial request.

Here is the code WEB USER CONTROL:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"
    <AjaxSettings>     
        <telerik:AjaxSetting AjaxControlID="RadAjaxManagerProxy1">         
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1"/> 
                
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="RadGrid1"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1"/> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                <telerik:AjaxUpdatedControl ControlID="RadToolTipManager1" />                
            </UpdatedControls> 
        </telerik:AjaxSetting>         
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 
 
<telerik:RadScriptBlock ID="rdScriptBlockCloseSearchWindow" runat="server"
    <script language="javascript" type="text/javascript"
        function CloseActiveSuppliersSearchGridToolTip(selectedSupplierID)  
        { 
            var controller = Telerik.Web.UI.RadToolTipController.getInstance(); 
            var tooltip = controller.get_activeToolTip(); 
            if (tooltip) tooltip.hide();            
         
        } 
 
        function CloseActiveProductSearchGridToolTip(selectedproductID)  
        { 
            var controller = Telerik.Web.UI.RadToolTipController.getInstance(); 
            var tooltip = controller.get_activeToolTip(); 
            if (tooltip) tooltip.hide(); 
        } 
    </script> 
</telerik:RadScriptBlock> 
 
<asp:Panel ID="pnlOrderlineItems" runat="server"
<asp:UpdatePanel ID="LineItemsGridPanel" runat="server" UpdateMode="Conditional"
        <ContentTemplate> 
            <telerik:RadGrid .................. OnItemCreated="RadGrid1_ItemCreated"
                <MasterTableView> 
                    ............ 
                    <EditFormSettings EditFormType="Template"
                        <FormTemplate> 
                         ................... 
                            <telerik:RadTextBox ID="txtEditSupplier" runat="server" Skin="Office2007">                                                                                     
                            </telerik:RadTextBox> 
                            <asp:LinkButton ID="lnkEditSupplierSearch" runat="server" Skin="Office2007"
                                <img style="border:0px;vertical-align:middle;" src="<%= ResolveUrl("~") %>Images/Details.gif" alt="Search Supplier" /> 
                            </asp:LinkButton>            
 
                            <telerik:RadTextBox ID="txtEditProduct" runat="server" Skin="Office2007">                                                                                     
                            </telerik:RadTextBox> 
                            <asp:LinkButton ID="lnkEditProductrSearch" runat="server" Skin="Office2007"
                                <img style="border:0px;vertical-align:middle;" src="<%= ResolveUrl("~") %>Images/Details.gif" alt="Search Supplier" /> 
                            </asp:LinkButton> 
                            ................... 
                        </FormTemplate> 
                    </EditFormSettings> 
                </MasterTableView> 
            </telerik:RadGrid>  
            <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="800px" Height="500px" 
                OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" RelativeTo="Element" Animation="Slide" 
                Position="MiddleRight" Modal="true" ContentScrolling="Auto" AutoTooltipify="false" 
                ShowEvent="OnClick" HideEvent="FromCode"
            </telerik:RadToolTipManager>             
       </ContentTemplate>        
</asp:UpdatePanel>           
 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
        Width="75px" Transparency="1"
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
            style="border: 0;" /> 
    </telerik:RadAjaxLoadingPanel> 
     

protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) 
    { 
        if (e.Item is GridEditFormItem && e.Item.IsInEditMode) 
        { 
            GridEditFormItem editFormItem = (GridEditFormItem)e.Item; 
            SetSupplierSearch(editFormItem); 
            SetProductSearch(editFormItem); 
        } 
    } 
     
    private void SetSupplierSearch(GridEditFormItem editFormItem) 
    { 
        LinkButton lnkbtnSupplierSearch = (LinkButton)editFormItem.FindControl("lnkEditSupplierSearch"); 
 
        if (lnkbtnSupplierSearch != null) 
        { 
            RadToolTipManager1.TargetControls.Add(lnkbtnSupplierSearch.ClientID, "lnkbtnSupplierSearch", true); 
        } 
 
        RadTextBox txtEditSupplier = (RadTextBox)editFormItem.FindControl("txtEditSupplier"); 
        if (txtEditSupplier != null) 
        { 
            string s = "AssignHdnSupplierSearchText($get('" + txtEditSupplier.ClientID + "'))"; 
            lnkbtnSupplierSearch.Attributes.Add("onclick", s); 
        } 
    } 
     
    private void SetProductSearch(GridEditFormItem editFormItem) 
    { 
        LinkButton lnkbtnProdNumSearch = (LinkButton)editFormItem.FindControl("lnkEditProdNumberSearch"); 
        LinkButton lnkbtnProdDescSearch = (LinkButton)editFormItem.FindControl("lnkEditProdDescSearch"); 
        if (lnkbtnProdNumSearch != null) 
        { 
            RadToolTipManager1.TargetControls.Add(lnkbtnProdNumSearch.ClientID, "lnkbtnProdNumSearch", true); 
        } 
 
        if (lnkbtnProdDescSearch != null) 
        { 
            RadToolTipManager1.TargetControls.Add(lnkbtnProdDescSearch.ClientID, "lnkbtnProdDescSearch", true); 
        } 
 
        RadTextBox txtEditProdNumber = (RadTextBox)editFormItem.FindControl("txtEditProdNumber"); 
        RadTextBox txtEditProdDesc = (RadTextBox)editFormItem.FindControl("txtEditProductDesc"); 
 
        if (txtEditProdNumber != null) 
        { 
            string s = "AssignHdnProdNumSearchText($get('" + txtEditProdNumber.ClientID + "'))"; 
            lnkbtnProdNumSearch.Attributes.Add("onclick", s); 
        } 
 
        if (txtEditProdDesc != null) 
        { 
            string s = "AssignHdnProdDescSearchText($get('" + txtEditProdDesc.ClientID + "'))"; 
            lnkbtnProdDescSearch.Attributes.Add("onclick", s); 
        } 
 
 
    } 
     
    protected void RadToolTipManager1_AjaxUpdate(object sender, ToolTipUpdateEventArgs args) 
    {       
        this.UpdateToolTip(args.Value, args);             
    } 
 
    private void UpdateToolTip(string elementID, ToolTipUpdateEventArgs args) 
    {  
        if (elementID.ToUpper() == "LNKBTNSUPPLIERSEARCH") 
        { 
            UpdateSupplierToolTip(elementID, args);             
        } 
        else if (elementID.ToUpper() == "LNKBTNPRODNUMSEARCH" || elementID.ToUpper() == "LNKBTNPRODDESCSEARCH") 
        { 
            UpdateProductToolTip(elementID, args); 
        } 
    } 
 
    private void UpdateSupplierToolTip(string elementID, ToolTipUpdateEventArgs args) 
    { 
        UpdatePanel panel = args.UpdatePanel; 
        List<ISupplier> listSuppliers = DoSupplierSearch(); 
 
        Control cntrl = this.LoadControl("SupplierSearchResults.ascx"); 
        panel.ContentTemplateContainer.Controls.Add(cntrl); 
        SupplierSearchResults supplierResultsCntrl = (SupplierSearchResults)cntrl; 
        supplierResultsCntrl.SuppliersList = listSuppliers
        supplierResultsCntrl.ParentControl = panel
        supplierResultsCntrl.ParentControlName = "LINEITEMSEDITFORM"
        panel.ContentTemplateContainer.Controls.Add(cntrl); 
    } 
 
    private void UpdateProductToolTip(string elementID, ToolTipUpdateEventArgs args) 
    { 
        UpdatePanel panel = args.UpdatePanel; 
        List<Product> listPrds = DoProductSearch(elementID); 
 
        Control cntrl = this.LoadControl("ProductSearchResults.ascx"); 
        panel.ContentTemplateContainer.Controls.Add(cntrl); 
        ProductSearchResults productResultsCntrl = (ProductSearchResults)cntrl; 
        productResultsCntrl.ProductList = listPrds
        productResultsCntrl.ParentControl = panel
        productResultsCntrl.ParentControlName = "LINEITEMSEDITFORM"
        panel.ContentTemplateContainer.Controls.Add(cntrl); 
    } 
 
Svetlina Anati
Telerik team
 answered on 11 Jun 2009
1 answer
156 views
I have 3 levels of details tables within a rad grid.

The bottom details table contains a GridTemplateColumn with an image button which is linked to a RadToolTipManager.

On click, a Modal tooltip is displayed, but I need to access the datakeyvalues of the grid to send values to the Tooltip.

I can do this easily at a top level RadGrid table, but I cant seem to do it from a details table.

 

<DetailTables> 
<telerik:GridTableView Name="gtv_account2" runat="server" DataKeyNames="InvoiceNumber, InvoiceDate, Outstanding">   
.  
<telerik:GridTemplateColumn UniqueName="gtv_account2_buttons">   
<ItemTemplate>   
<asp:ImageButton ID="Invoice_Query" CommandName="Invoice_Query" ImageUrl="~/Images/Icons/invoice_query.gif" runat="server" AlternateText="Click to query invoice" CausesValidation="false" />   
.  
.  
.   
<telerik:RadToolTipManager ID="RadToolTipManager_Query_Invoice" HideEvent="ManualClose" Modal="true" runat="server" OnAjaxUpdate="OnAjaxUpdate_Query_Invoice" RelativeTo="BrowserWindow">   
   
</telerik:RadToolTipManager> 

 


Clicking the image button launches the tooltip, and the function in the definition above it hit (OnAjaxUpdate_Query_Invoice).

How can I access the datakeyvalues in the following function?  

 

Protected Sub OnAjaxUpdate_Query_Invoice(ByVal sender As ObjectByVal args As ToolTipUpdateEventArgs)  
.  
End Sub 

The following didn't work:

value = RadGrid1.MasterTableView.DetailTables(0).DataKeyValues(args.Value)("InvoiceNumber") 

Thanks for any help!

 

 

 

Veli
Telerik team
 answered on 11 Jun 2009
3 answers
256 views
Hi

I am getting  annoying error messages in design in VWD 2008.
I have a number of master pages with controls in and when I am in design view
of a new page, all the controls in the master page regions show the 'error creating control.. ' message
but the child page itself previews and runs correctly without any errors.

I feel I must have left something out to get these errors but everything runs fine so it is not
a show stopper.

What can I do to clean this up?

Thanks for your help

Clive
Pavlina
Telerik team
 answered on 11 Jun 2009
1 answer
83 views
Hello,

I have a problem with RadMenu.
I am using RadMenu as an action menu in a RadGrid.
The problem is one of the action menu items disappears after navigating pages in grid.

When I run it, the RadMenu shows correctly on the first page(first time) of the grid.
If I go to next page, one of the action menu items is disappeared.
If I go back to the first page, it doesn't show the menu item that was shown before.


I would appreciate any help you can provide.

Thanks,

D
Veselin Vasilev
Telerik team
 answered on 11 Jun 2009
2 answers
215 views
hi,

In my radGrid I am having a image column ( Declared in ItemTemplate of grid).
on click of that image I want to open a  radWindow. The page I want to open in raWindow is Teat.aspx

How can I achieve this?

Thanks,
Ram
Top achievements
Rank 1
 answered on 11 Jun 2009
3 answers
57 views
Just a quick question:
Does Radcontrols for MOSS 2007 support MOSS 2007 service pack2?
What is the life cyle of Radcontrols
Kind regards,
lisa
Atanas Korchev
Telerik team
 answered on 11 Jun 2009
1 answer
88 views
Hi,
Am using Radupload progress manager, for which I want to configure in web.config…
Am using .NET 3.5.. i got the solutions only for .Net 2.0 under http://www.telerik.com/help/aspnet/upload/raduploadprogresshandler.html

I need the solution for .Net 3.5….

-Anto
Paul
Telerik team
 answered on 11 Jun 2009
3 answers
266 views
I'm sure I'm missing something small here.  I wanted to do a "RequiredFieldValidator" on a RADNumericTextBox with the Type=Currency and it's mask is $0.00

Seems that .Net's validator doesn't show the field as empty with the mask in it. 

Any thoughts?

How to force a NumericTextBox set to Currency with a mask, to not accept $0.00 ( 0 ) as the value.
Fred
Top achievements
Rank 1
 answered on 11 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?