Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
52 views

 

 

The page worked fine by itself.. But once I made it a .ascx that is part of a .aspx that is part of a master page I get the error below (when I uncomment that line)..

that radscriptmanager is there in the masterpage

 

<

 

 

telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="True"

 

 

 

 

 

 

 

EnableScriptCombine="False" CompositeScript-ScriptMode="Auto" ScriptMode="Auto"

 

 

 

 

 

 

 

AsyncPostBackTimeout="360000">

 

 

 

 

 

 

 

<Scripts>

 

 

 

 

 

 

 

<asp:ScriptReference Path="~/Shared/script/AjaxLibrary/MicrosoftAjax.js" />

 

 

 

 

 

 

 

<asp:ScriptReference Path="~/Shared/script/AjaxLibrary/MicrosoftAjaxCore.js" />

 

 

 

 

 

 

 

<asp:ScriptReference Path="~/Shared/script/jPrototypes.js" />

 

 

 

 

 

 

 

</Scripts>

 

 

 

 

 

 

 

<CdnSettings TelerikCdn="Disabled" />

 

 

 

 

 

 

 

</telerik:RadScriptManager>

 

 

 

 


but I get this error below.. any ideas? (I should be able to work aroud it but just wondering what is so special about assigning a value to the NumericTextBox.ID)


Microsoft JScript runtime error: 'undefined' is null or not an object

 

{

 

var a=this;b.UI.Control.initializeBase(a);a._element=c;c.control=a;var d=a.get_role();d&&c.setAttribute("role",d)}

 

 

 




////Current Amount Hope6

 

 

TableCell tcCurrentAmountHope6 = new TableCell();

 

 

 

RadNumericTextBox tbCurrentAmountHope6 = new RadNumericTextBox();

 

tbCurrentAmountHope6.Type =

 

NumericType.Currency;

 

 

 

//tbCurrentAmountHope6.ID = "tbCurrentAmountHope6" + level1.Level1 + cc.ftaskId;

 

tbCurrentAmountHope6.Attributes[

 

"TaskId"] = cc.ftaskId.ToString();

 

tbCurrentAmountHope6.Attributes[

 

"FundType"] = "H6";

 

tbCurrentAmountHope6.Text = cc.H6ExpCQ.ToString();

tbCurrentAmountHope6.Visible = cc.H6Uses.ToString() ==

 

"0.00" ? false : true;

 

tcCurrentAmountHope6.Controls.Add(tbCurrentAmountHope6);

trItem3.Controls.Add(tcCurrentAmountHope6);

matt
Top achievements
Rank 1
 answered on 27 Sep 2010
8 answers
150 views
Hello... I have RadGrid 5.1.1.0 and after the execution of a command, I want to display an alert telling about the success or failure of the process..... I tried several ways to accomplish this (all of them from Telerik pages) but none worked.

For example, I have this in gdvProcesos_ItemCommand event of the RadGrid:

if (e.CommandName == "Ejecutar")
{
 
/* Some long process */
 
  string msg = "success or error message";
  RadAjaxManager1.ResponseScripts.Add("radalert('" + msg + "', 330, 210);");
}

I have also a RadAjaxManager control, defined this way:
<rad:RadWindowManager runat="server" ID="wndManager" Skin="WebBlue" Language="es-CL">
    <Windows>
        <rad:RadWindow ID="wndJerarquia" VisibleStatusbar="false"  VisibleTitlebar="false" NavigateUrl="VerJerarquia.aspx" VisibleOnPageLoad="false" runat="server" Modal="true" DestroyOnClose="true" />
    </Windows>
</rad:RadWindowManager>
<rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <rad:AjaxSetting AjaxControlID="gdvProcesos">
            <UpdatedControls>
                <rad:AjaxUpdatedControl ControlID="gdvProcesos" />
            </UpdatedControls>
        </rad:AjaxSetting>
    </AjaxSettings>
</rad:RadAjaxManager>


Any help will be greatly appreciated. Thanks

Jaime
Jaime
Top achievements
Rank 1
 answered on 27 Sep 2010
11 answers
1.0K+ views
Hi,
I have a page in which i have a RadGrid and a custom control (which contains a RadTreeView) .

The custom control contains a RadAjaxManager Proxy which specifies the RadTree to update various things inside the control.

On my aspx page, i have an instance of a the RadAjaxManager and i have specified that my custom control should update the RadGrid.

The problem is that the loading panel does not seem to appear when the RadGrid is updated via the user control, even though the rad grid gets updated. Clicking on the RadTreeView in the user control will cause a loading panel to appear inside the user control, due to the fact of using the RadAjaxManagerProxy.
If i click on the actual RadGrid, which uses the RadAjaxManager on the page , the loading panel does appear.
Am I missing something in order to get a loading panel to appear when it is triggered by a custom user control?

Here is my RadAjaxManager definition:
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="myAdminTree"
                <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1"
                <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1"/> 
                </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 

myAdminTree is the custom user control which contains a RadTreeView among other things
Brad
Top achievements
Rank 1
 answered on 27 Sep 2010
7 answers
436 views
HI all,
I want to create a dropdown menu like this one from Microsofts Ajax Control Toolkit. I think RadMenu might be the best one to use, right? But how could I then remove the border around the Main Menu? I've checked the forum, KB and RadMenu CSS Description but I could not find it. Any ideas?
Many thanks in advance!
Ken
Top achievements
Rank 2
 answered on 27 Sep 2010
4 answers
203 views
Hi,

I have created a tab strip consisting of 3 tabs.
Each tab has different pageview ID's and each RADPAGEVIEW  had different widths.

I have used "scroll" property to enable scrolling in radpageview which has more width than normal.

Every things are working fine except the "RadListbox" control.

When i use scrollbar(Horizontal scroll bar), the postion of the listbox is not updated with respect to scroll amount. The Listbox just stays in the same position even after scrolling.

It comes back to its original alignment only when mouse is moved over on it.

I checked with other rad controls like radcombobox, radtextbox and everything is able to relocate. But radlistbox keeps floating away irrespective of the scroll positon.

You can refer the attachment to get clear idea about my scenario.

Any help would be appreciated.


Regards,

Muthusamy
Muthusamy V
Top achievements
Rank 1
 answered on 27 Sep 2010
3 answers
504 views

Hello Everyone,

I Have a problem regarding a particular Grid Column.
I have a grid with many column. One Column is called "Description". In this column there is a posibility that the string is too long that it would wrap.

I already look this tutorial: "No wrap for grid cell content"  and my column did not wrap.
I also added

<style type="text/css">

 

.MasterTable_WebBlue td

{

overflow:hidden;

}

.GridHeader_WebBlue

{

overflow: hidden;

}

 

</style>

My problem now is that i need to display an Ellipsis "..."  on that column only.
I need to display ... before the string ends.

 

 

 


or 

Is there a way to dispaly "..." after a certain number of character?






 

Andrea
Top achievements
Rank 2
Iron
 answered on 27 Sep 2010
3 answers
98 views
i have a treeView in master page which is generated compltly on code behind and it is added to a place holder.
Problem is that the tree view is always in its first state when navigate from a page to new page.
Data is taken from dataBase
eg: TreeView look like

Select
    *Company
    *Company Role

intialy its like

Select

and when i select Company, the treeview is in the state

Select
itself

but i need

Select
    *Company
    *Company Role

My Code Look Like

 

public partial class Home : System.Web.UI.MasterPage
{
    protected void Page_Init(object sender, EventArgs e)
    {
        RadTreeView m1 = new RadTreeView();
  
        DynamicMenuBLL objDynMainMenu = new DynamicMenuBLL();
        m1 = objDynMainMenu.GetMenuTree();
  
        placeHolder.Controls.Add(m1);
    }
  
    protected void Page_Load(object sender, EventArgs e)
    {
  
    }
}

please give a solution.

Thank You.

 

 

 

Nikolay Tsenkov
Telerik team
 answered on 27 Sep 2010
0 answers
162 views
Hi,

We have an issue with the select and clear functionality within the text area of the Telerik Editor and hope that you can provide a resolution to it. In general when a user uses their mouse cursor to select a some text (within a small paragraph and including spaces or returns) then deletes it the related selected text formatting span, strong, em and paragraph tags remain within the HTML with the contents cleared.

The steps to re-produce this issue are as follows:

1.     Clear any contents from the editor including HTML.

2.     Add some text with varying formats and paragraph/line breaks.

3.     Select some or all of this text using the mouse cursor.

4.     Delete this text using the delete key on the keyboard.

5.     Open up the HTML view tab within the editor.

6.     It can be seen that the empty HTML tags are left.


Note:These steps were attempted within your editor demonstration page and the same results were acchieved
Address Used http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx


I am aware of the ability to use filtering in javascript using 'getHtmlContent' or 'getDesignContent' and then use a '/<([a-zA-Z]+) ?[^>]*?>\s*<\/\1>/gi' regular expression to remove single instances of empty tags however this will not always work with multiple embedded spans and strong/em tags.

I have also noted that when the "select all" functionality used either as a shortcut 'Ctrl+A' or through the toolbar button is used then the contents deleted the HTML tags are also cleared however this does not occur if the editor contents are selected through the use of the mouse cursor 'Highlighted'.

Idealy we need the editor contents be updated as the user is inputting them (dynamically) and not on update or view change. This is a necessity as the editor contents need to be kept in close synchronisation with the saved/updated contents. If a filter is applied on update using the 'getHtmlContent' or 'getDesignContent' to remove empty HTML tags after we have found that it causes inconsistencies in the formatting result due to the removal of these empty HTML tags therefore we need to remove them before the update/save operation (dynamically).

Thanks.
Graham C
Graham
Top achievements
Rank 1
 asked on 27 Sep 2010
14 answers
388 views
HI,

I created radgrid with show or hide filter option on button click.  when i click show filter option Its looking good No issues. My problem is when i re-size the column to click on the filter button there is empty space is coming in the first row (Please see the image 3). Because of that the pagination is not displaying. I tried it by removing div tags but no luck... Can any one help me how to fix this. Thanks...

<div style="width: 100%; height: 650px; overflow: auto; overflow-y: hidden">
    <telerik:RadGrid ID="gvPjtMnt" runat="server" Height="550px" Width="99%" AutoGenerateColumns="false"
        BorderWidth="2px" BorderStyle="Solid" BackColor="White" AllowPaging="True" PagerStyle-AlwaysVisible="true"
        PageSize="20" AllowSorting="True" AllowFilteringByColumn="true" OnNeedDataSource="gvPjtMnt_OnNeedDataSource"
        OnItemCommand="gvPjtMnt_ItemCommand" OnItemCreated="gvPjtMnt_ItemCreated" OnItemDataBound="gvPjtMnt_ItemDataBound">
        <HeaderStyle Height="20px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White"
            HorizontalAlign="Center" BorderColor="White" BorderWidth="1px" />
        <AlternatingItemStyle Font-Size="8pt" BackColor="#F5F5E9" HorizontalAlign="Center"
            BorderWidth="1px" BorderColor="White" />
        <ItemStyle HorizontalAlign="Center" />
        <ExportSettings ExportOnlyData="true" IgnorePaging="true" FileName="Project Management">
        </ExportSettings>
        <MasterTableView GridLines="None" CommandItemDisplay="Top" DataKeyNames="ProjectId"
            HorizontalAlign="Center" AllowFilteringByColumn="true">
            <CommandItemTemplate>
                <table style="width: 100%">
                    <tr>
                        <td align="right" style="width: 78%">
                            <asp:LinkButton ID="lnkshwFilter" Text="ShowFilter" Font-Underline="true" ForeColor="MidnightBlue"
                                runat="server" OnClientClick="return showFilterItem()" />
                            <asp:LinkButton ID="lnkhdFilter" Text="HideFilter" Font-Underline="true" ForeColor="MidnightBlue"
                                runat="server" OnClientClick="return hideFilterItem()" />
                        </td>
                        <td align="right" style="height: 10px;">
                            Total Records found: <asp:Label ID="lblTotRecCount" runat="server" Font-Bold="True"
                                Font-Size="10pt" ForeColor="Black" Text="0"></asp:Label>
                        </td>
                        <td align="right">
                            <asp:LinkButton ID="lnkExportAll" Text="ExportAll" Font-Underline="true" ForeColor="MidnightBlue"
                                runat="server" OnClick="ExportAll_Click" />
                        </td>
                        <td align="right" style="width: 2%">
                               
                            <asp:ImageButton ID="ExportToExcelButton" runat="server" ImageUrl="~/images/ExportToExcel.gif"
                                ToolTip="Export to Excel" OnClick="ExportExcel_Click" />
                        </td>
                    </tr>
                </table>
            </CommandItemTemplate>
            <Columns>
                ..... few columns here ............
            </Columns>
            <ItemStyle ForeColor="#3C5F22" Font-Size="8pt" BackColor="White" BorderWidth="0px"
                BorderColor="White" />
            <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
        </MasterTableView>
        <ClientSettings AllowColumnsReorder="true">
            <ClientEvents OnGridCreated="GridCreated" />
            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
            <Resizing AllowColumnResize="true" />
        </ClientSettings>
    </telerik:RadGrid>
</div>

function showFilterItem() {
    $find('<%=gvPjtMnt.ClientID %>').get_masterTableView().showFilterItem();
    document.getElementById('ctl00_PagePlaceholder_gvPjtMnt_ctl00_ctl02_ctl00_lnkhdFilter').style.display = 'block';
    document.getElementById('ctl00_PagePlaceholder_gvPjtMnt_ctl00_ctl02_ctl00_lnkshwFilter').style.display = 'none';
    return false;
 
}
function hideFilterItem() {
    document.getElementById('ctl00_PagePlaceholder_gvPjtMnt_ctl00_ctl02_ctl00_lnkhdFilter').style.display = 'none';
    document.getElementById('ctl00_PagePlaceholder_gvPjtMnt_ctl00_ctl02_ctl00_lnkshwFilter').style.display = 'block';
    $find('<%=gvPjtMnt.ClientID %>').get_masterTableView().hideFilterItem();
    return false;
}
function GridCreated(sender, args) {
    sender.get_masterTableView().hideFilterItem();
}



Dimo
Telerik team
 answered on 27 Sep 2010
5 answers
196 views
Hi,

I have a tree view control (generated from DB) which opens in a rad window.
I want to select a particular node of the tree and then click on the "Select" button.

After clicking the select button - the radwindow should close and the selected data should be displayed in a textbox.
All this is working, however when I click the select button - a pop up comes over saying to resend data to the server - which is irritating. I guess this is beacuse I am trying to pass data via server side.

Any idea how this data should be tranferred via client side? May be using JS or sort of.

Thanks.

Debashis Pyne
Top achievements
Rank 1
 answered on 27 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?