Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
66 views

Hi ,
I am using a lienced  version of Telerik controls. I am facing the below problem..
I have a grid with "Form Template Edit Form", i need to display a "RadAjaxLoadingPanel" on click of Edit option in the grid.

I have tried using the below code

 

 

 

 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelGrid" runat="server" Transparency="1"
        IsSticky="true" BackgroundPosition="Center">
        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Web20.gif" />       
    </telerik:RadAjaxLoadingPanel>

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>   
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="radmaingrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radmaingrid1" LoadingPanelID="RadAjaxLoadingPanelGrid" />                   
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

 

 

 

I am getting an script error, after loading the RadAjaxLoadingPanel The same code works fine in grid pages without Edit option.

The below is the error message:
Line: 15
Error: Sys.ScriptLoadFailedException: The script 'http://testone.com/ScriptResource.axd?d=b1e1SDKF3vCYtyeiKg73_WLJqaceBWAo1WnKpHN0OF4lWhbWYvj40dZNbjPLahC_Grliil3xH5fS4OqIVYk8xw2&t=21c715f1' could not be loaded.


Please help on the above issue.
Also attached is the screenshot of the error message.


Regards

 

Pavlina
Telerik team
 answered on 27 Oct 2009
1 answer
78 views
I would like to set alignment of column header for tables.
 I've set it to align right. However, it still align left.
 What should I do?
                                                       
---------------------------------------------------------------
<radG:GridBoundColumn DataField="Qty" DataFormatString="{0:##,#0.#0}" DataType="System.Decimal"
                                                            HeaderText="Qty" UniqueName="Qty">
                                                            <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                                Font-Underline="False" HorizontalAlign="Right" Wrap="True" />
                                                            <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                                Font-Underline="False" HorizontalAlign="Right" Wrap="True" />
                                                            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                                Font-Underline="False" HorizontalAlign="Right" Wrap="True" />
                                                        </radG:GridBoundColumn>
Princy
Top achievements
Rank 2
 answered on 27 Oct 2009
3 answers
191 views
Hi,

I was working with ASP.Net menu control.
Currently i had decided to move to menu control for AJAX.
Vertical menu is working fine.
but horizontal menu is not working. I am using the xml string to load the menu

below are my code for aspx page and fopr .cs file

aspx page

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="_Test" %>

<%

@ Register TagPrefix="rad" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<

html>

<

head>

<

title>test</title>

</

head>

<

body>

<

form id="frmTest" runat="server">

<asp:ScriptManager runat="server" ID="uiScriptManager" />

<rad:RadMenu id="RadMenuNavigation" runat="server" Width="100%" />

</

form>

</

body>

</

html>



.cs page

using

System;

using

System.Data;

using

System.Configuration;

using

System.Web;

using

System.Web.Security;

using

System.Web.UI;

using

System.Web.UI.WebControls;

using

System.Web.UI.WebControls.WebParts;

using

System.Web.UI.HtmlControls;

using

System.Collections.Generic;

using

Telerik.Web.UI;

public

partial class _Test : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

RadMenuNavigation.Flow =

ItemFlow.Horizontal;

string menuXml = "<Menu><Group><Item Text='Home' Href='Test.aspx' originalAttribute="Href" originalPath="Test.aspx" originalAttribute="Href" originalPath="Test.aspx" ToolTip='This is a tooltip' AccessKey='H'></Item><Item Text='Set Working Club' Href='default.aspx' originalAttribute="Href" originalPath="default.aspx" originalAttribute="Href" originalPath="default.aspx" ToolTip='Set Working Club' AccessKey='W'></Item><Item Text='Set Working Member' Href='default.aspx'></Item><Item Text='MembershipPackages' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='MembershipPackages" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='MembershipPackages" Href='default.aspx'></Item><Item Text='Renew Membership' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Renew Membership" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Renew Membership" Href='default.aspx'></Item><Item Text='Membership History' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Membership History" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Membership History" Href='default.aspx'></Item><Item Text='View Prior Orders' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='View Prior Orders" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='View Prior Orders" Href='default.aspx'></Item><Item Text='My Details' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='My Details" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='My Details" Href='default.aspx'></Item><Item Text='Benefits' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Benefits" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Benefits" Href='default.aspx'></Item><Item Text='Create New Member' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Create New Member" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Create New Member" Href='default.aspx'></Item><Item Text='Manage Products' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Products" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Products" Href='test1.aspx' originalAttribute="Href" originalPath="test1.aspx" originalAttribute="Href" originalPath="test1.aspx" ToolTip='Manage Products' AccessKey='P'><Item Text='Packages' Href='default.aspx'></Item><Item Text='Performances' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Performances" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Performances" Href='default.aspx'></Item><Item Text='Merchandise' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Merchandise" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Merchandise" Href='default.aspx'></Item><Item Text='Memberships' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Memberships" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Memberships" Href='default.aspx'></Item><Item Text='Fees' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Fees" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Fees" Href='default.aspx'></Item><Item Text='Categories' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Categories" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Categories" Href='default.aspx'></Item><Item Text='Price Types' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Price Types" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Price Types" Href='default.aspx'></Item><Item Text='Waitlist Shows' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Waitlist Shows" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Waitlist Shows" Href='default.aspx'></Item><Item Text='Selections' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Selections" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Selections" Href='default.aspx'></Item><Item Text='Groups' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Groups" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Groups" Href='default.aspx'></Item><Item Text='Site Content' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Site Content" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Site Content" Href='default.aspx'></Item><Item Text='Manage Payments' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Payments" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Payments" Href='default.aspx'><Item Text='Process Payments' originalAttribute="Href" originalPath="default.aspx'><Item Text='Process Payments" originalAttribute="Href" originalPath="default.aspx'><Item Text='Process Payments" Href='default.aspx'><Item Text='Report' originalAttribute="Href" originalPath="default.aspx'><Item Text='Report" originalAttribute="Href" originalPath="default.aspx'><Item Text='Report" Href='default.aspx'><Item Text='Order' originalAttribute="Href" originalPath="default.aspx'><Item Text='Order" originalAttribute="Href" originalPath="default.aspx'><Item Text='Order" Href='default.aspx'></Item><Item Text='Member' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Member" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Member" Href='Default.aspx'></Item><Item Text='Allocation' originalAttribute="Href" originalPath="Default.aspx'></Item><Item Text='Allocation" originalAttribute="Href" originalPath="Default.aspx'></Item><Item Text='Allocation" Href='default.aspx'></Item></Item></Item><Item Text='Change Credit Card' originalAttribute="Href" originalPath="default.aspx'></Item></Item></Item><Item Text='Change Credit Card" originalAttribute="Href" originalPath="default.aspx'></Item></Item></Item><Item Text='Change Credit Card" Href='default.aspx'></Item></Item></Item><Item Text='Manage Allocations' originalAttribute="Href" originalPath="default.aspx'></Item></Item></Item><Item Text='Manage Allocations" originalAttribute="Href" originalPath="default.aspx'></Item></Item></Item><Item Text='Manage Allocations" Href='default.aspx'></Item><Item Text='Manage Groups' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Groups" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Groups" Href='default.aspx'><Item Text='Manage Delegations' originalAttribute="Href" originalPath="default.aspx'><Item Text='Manage Delegations" originalAttribute="Href" originalPath="default.aspx'><Item Text='Manage Delegations" Href='default.aspx'></Item></Item><Item Text='Seating Preferences' originalAttribute="Href" originalPath="default.aspx'></Item></Item><Item Text='Seating Preferences" originalAttribute="Href" originalPath="default.aspx'></Item></Item><Item Text='Seating Preferences" Href='default.aspx'><Item Text='My Preference Groups' originalAttribute="Href" originalPath="default.aspx'><Item Text='My Preference Groups" originalAttribute="Href" originalPath="default.aspx'><Item Text='My Preference Groups" Href='default.aspx'></Item></Item><Item Text='Fast Renewals' originalAttribute="Href" originalPath="default.aspx'></Item></Item><Item Text='Fast Renewals" originalAttribute="Href" originalPath="default.aspx'></Item></Item><Item Text='Fast Renewals" Href='default.aspx'></Item><Item Text='Member Upload' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Member Upload" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Member Upload" Href='default.aspx'></Item><Item Text='Manage Club' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Club" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Manage Club" Href='default.aspx'><Item Text='Details' originalAttribute="Href" originalPath="default.aspx'><Item Text='Details" originalAttribute="Href" originalPath="default.aspx'><Item Text='Details" Href='default.aspx'></Item><Item Text='Contacts' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Contacts" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Contacts" Href='default.aspx'></Item><Item Text='Portal' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Portal" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Portal" Href='default.aspx'></Item><Item Text='Category Seating Options' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Category Seating Options" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Category Seating Options" Href='default.aspx'></Item><Item Text='Workflow Configuration' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Workflow Configuration" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Workflow Configuration" Href='default.aspx'></Item><Item Text='Payment Schedules' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Payment Schedules" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Payment Schedules" Href='default.aspx'></Item></Item><Item Text='Contact Us' originalAttribute="Href" originalPath="default.aspx'></Item></Item><Item Text='Contact Us" originalAttribute="Href" originalPath="default.aspx'></Item></Item><Item Text='Contact Us" Href='default.aspx'></Item><Item Text='Logout' originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Logout" originalAttribute="Href" originalPath="default.aspx'></Item><Item Text='Logout" Href='default.aspx'></Item></Group></Menu>";

RadMenuNavigation.LoadXml(menuXml);

}

}

please help urgently.

Regards

Sujith

Yana
Telerik team
 answered on 27 Oct 2009
1 answer
141 views
Hello,
    I was wondering if it is possible to bind a grid client-side when it has been generated on the server with the use of GridTemplateColumns and ItemTemplateColumns.  This is currently not working for me.  Am I missing something or is this functionality simply not supported?  Is the grid binding but not updating on the page?  When I try to do the client-side binding on a grid that has simply been dropped on the page it does work.
Thanks very much in advance!

This is my code:

var weeks = null
var tableView = null;

        function pageLoad(sender, args)

        {
                $.ajax({

 

                    type: "POST",

                    url: "test.aspx/GetData",

                    data: "{}",

                    contentType: "application/json; charset=utf-8",

                    dataType: "json",

                    success: refreshControls,

                    fail: onFail

                });

 

        }

 

        function refreshControls(result)

        {

            weeks = eval(result.d); 

        }

        function GridCreated(sender, eventArgs) {

           

            if (sender.Control.id == "<%= Grid1.ClientID %>")

                tableView = $find("<%= Grid1.ClientID %>").get_masterTableView();

              

        }

        function ReDrawGrid()

        {

            weeks[0].amount = 82;

            tableView.set_dataSource(weeks);

            tableView.dataBind();

        }

On Server

 

private void DefineGridStructure(int columnCount)

        {

            Grid1.AutoGenerateColumns = false;

            Grid1.AllowSorting = false;

            Grid1.AllowPaging = false;

            Grid1.GridLines = GridLines.None;

            Grid1.NeedDataSource += new GridNeedDataSourceEventHandler(doiGrid_NeedDataSource);

            Grid1.ClientSettings.ClientEvents.OnGridCreated = "GridCreated";

            //scrolling

            Grid1.ClientSettings.Scrolling.AllowScroll = true;

            Grid1.ClientSettings.Scrolling.UseStaticHeaders = true;

            //Master Table

            Grid1.MasterTableView.TableLayout = GridTableLayout.Fixed;

            Grid1.MasterTableView.HierarchyLoadMode = GridChildLoadMode.Client;

            Grid1.Width = Unit.Pixel(columnCount * 88);

            Grid1.Height = Unit.Pixel(126);

            //Columns

            GridTemplateColumn templateColumn = new GridTemplateColumn();

            templateColumn.AllowFiltering = false;

            templateColumn.ShowFilterIcon = false;

            templateColumn.HeaderTemplate = new HeaderTemplate(columnCount);

            templateColumn.ItemTemplate = new ItemTemplate(columnCount);

            Grid1.MasterTableView.Columns.Add(templateColumn);

 

        }

 

Tsvetoslav
Telerik team
 answered on 27 Oct 2009
1 answer
65 views
Is it possible to maintain the text selection when the user changes between the Design, and HTML views? (e.g. I select the first two words of the sentence in the Design view and then click the HTML view, the first two words would still be selected) I am told Dreamweaver does this and my customer wants to know if it's possible for your control to do this as well. 
Rumen
Telerik team
 answered on 27 Oct 2009
1 answer
64 views
I can change text using OnHeaderCellRender but the client side script change it back to default. How can I do it then? 
Nikolay Rusev
Telerik team
 answered on 27 Oct 2009
1 answer
267 views
hi,

     Am using the telerik radgrid in my pages. i have more than 1 page in my grid. If i need to select 3 rows from first page and 2 rows from second page. Am unable to do it. If i select 3 rows in my first page its done. And if i shift to second page for the next selection, what i have selected in page one gets unselected. Can you please over come this and give a solutions.

My total selected count for both the page should be 5. But its shows like this:

When i select 3 rows in my first page the count shows : 3.
When i select 2 rows in my second page, the count should show 5, but it shows : 2.

Thanks & Regards,
Vijay R
Shinu
Top achievements
Rank 2
 answered on 27 Oct 2009
5 answers
305 views
Hi All

I have a radgrid with some records. Its working fine.

I need to make a column disable false when I load the page.

Is there any option for this.

Thank You

-Anto
Princy
Top achievements
Rank 2
 answered on 27 Oct 2009
1 answer
122 views
Hi,

I am using rad menu, rad grid on a page. On clicking an item in rad menu a dialog window will be opened. I should fill the details and click on save button. An alert message will be displayed after saving and then the dialog window will close. But the newly added item doesn't comes on the grid.

If I use a button to open a dialog window instead of menu item, then on saving and closing the window grid gets updated. Please help me.

Regards,
Saranya
Princy
Top achievements
Rank 2
 answered on 27 Oct 2009
2 answers
425 views
hi.
I have ListBox With checkBox=True.
<telerik:RadListBox ID="RLBLedgerList" runat="server" CheckBoxes="true" Style="position: static; height:120px; overflow:scroll;" 
        Width="492px" Skin="Hay" BorderColor="#4EB106" BorderWidth="1px"
</telerik:RadListBox> 
And bind data to The RadListBox.
RadListBox1.DataSource = ds
        RadListBox1.DataValueField = "id"
        RadListBox1.DataTextField = "ledgname"
        RadListBox1.DataBind().

But  can't able to get the Checked value.,

Can Any one help me.how to get the checked values.
I am using vb codeing.

Thank you
Suresh K.


Suresh K
Top achievements
Rank 1
 answered on 27 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?