Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
130 views
1) The Office 2007 skin is being applied to our application via the web.config, but the MultiColumn comboBox we are creating does not seem to inherit the look and feel that the rest of the controls get (We are using an item template). How do we fix that?
2) How do you apply a Selected Value column to the MultiColumn example? We are using the item template, and have specified the DataValueField and DataTextField names in the declaration, is that all there is to it?
I am guessing that we don't use the id which we want to use for the selected value in the item template, and it will bind but be invisible to the user?
Peter
Telerik team
 answered on 31 Jul 2009
3 answers
134 views
Folks,

Here is the Scenario.

I have a Master Page (Main.Master) and 2 Content Pages(Default & Default1.aspx). Master Page page has Company Header Logo and Other controls that are common to both .aspx Pages.. When I add both .aspx pages in the Project, I indicated Main.Master is their Master Page.

I have  Link Buttons controls in Both Pages for Navigation Purposes. For Default.aspx Link1 Button On Click Event, Resonse.redirect("Default1.aspx") and Vice Versa.

My question is there any sample site or example in Radcontrols for Asp.Net Ajax to accomplish the Task? That will be appreciated.. I looked at Live Demos/Menu/Examples/Functionality/Templates/DefaultVB.aspx, tried to implement in Master Page. But the problem is that If I click the content pages Navigation Buttons, I loose my Master Page header contents (TEMPLATES logo in this example). I do not want to loose the header content of my Master Page, I want to retain them as I navigate between content pages.   In the Past, I did this type of Job via SiteMapDataSource but I would like to implement from Telerik Rad Menu if possible..I am using RadControls for ASP.NET AJAX Q2 2009. Also any Telerik Tutorial will be Helpful.

Thanks

Ghulam
gc_0620
Top achievements
Rank 1
 answered on 31 Jul 2009
3 answers
87 views
Hello,

We are using Q2 2009 and are noticing that our grid filter boxes do not display correctly in FireFox and the filter condition buttons sometimes do not display either.
Thanks,
Larry
Pavlina
Telerik team
 answered on 31 Jul 2009
1 answer
129 views

Hi,

I am using master and content page in my application.
master page controls are radscriptmanager,radajaxmanger,
content page controls are radajaxproxymanager,radwindowmanager, radtabstrip and rad multipageview.

Windowmanager settings are
<telerik:RadWindowManager ID="rWindowManager" runat="server"

 

 

 

ClientCallBackFunction="CallBackData"

 

 

Left="" Skin="Vista" Top="" Behavior="Reload,Close" InitialBehavior="None" >

 

 

 

<Windows>

 

 

 

<telerik:RadWindow ID="rWindowUsersList" runat="server" Height="270px" Left="50px"

 

 

 

Modal="True" NavigateUrl="" ReloadOnShow="True" Title="Users List" Top="50px"

 

 

 

VisibleStatusbar="False" Width="280px"

 

OnClientClose

 

="DateWindowCancelClicked"

 

 

 

 

 

 />

 

 

 

</Windows>
</telerik:RadWindowManager>

When i open the radwindow on button click first time its work fine.
when i use javascript  to do postback by using following method.

 

 

var ajaxManagerMaster = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");

 

ajaxManagerMaster.ajaxRequest();

 

But when  second time i open the window it is not opening with the proper size which are specified in radwindow.
It is also not calling the OnClientClose function specified in radwindow manager.

How can sovle this issue?

Thanks

Fiko
Telerik team
 answered on 31 Jul 2009
0 answers
147 views
I have 2 RadTreeView inside a user control.  I am also using master pages.  When I run the web page the includes the user control.  The RadTreeViews inside the controls can not be found.  Below is my code.  Any help would be greatly appreciated.

        private void ParentDataSource(DataSet data, string nodeTextField, string nodeValueField, bool allowAddNew)
        {            
            **************** Object reference not set to an instance of an object. *************************************************
            rtvHierarchy.Nodes[0].AllowDrop = false;     *********************** I get the error here **********
        }




<%

@ Control Language="C#" AutoEventWireup="true" CodeBehind="Hierarchy.ascx.cs" Inherits="KMSF.Library.Telerik.Custom.Hierarchy" %>

 


 

    <telerik:RadAjaxPanel ID="rpnlPanel" runat="server" Width="100%">   
   
    <table border="1">
        <tr>
            <td>
                <telerik:RadTreeView ID="rtvHierarchy" runat="server" OnNodeExpand="rtvHierarchy_NodeExpand"
                    OnContextMenuItemClick="rtvHierarchy_ContextMenuItemClick"
                    OnNodeEdit="rtvHierarchy_NodeEdit" OnNodeDrop="rtvHierarchy_NodeDrop" 
                    Height="500px" Skin="WebBlue">
                    <ContextMenus>
                        <telerik:RadTreeViewContextMenu ID="ContextMenu1" runat="server">
                            <Items>
                                <telerik:RadMenuItem Value="Create" Text="Add New">
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadTreeViewContextMenu>
                    </ContextMenus>
                    <Nodes>
                        <telerik:RadTreeNode runat="server" ContextMenuID="ContextMenu1" Text="Root" Expanded="true">
                        </telerik:RadTreeNode>
                    </Nodes>
                </telerik:RadTreeView>
            </td>
            <td>
                <telerik:RadTreeView ID="rtvAvailable" runat="server" EnableDragAndDrop="true"
                    OnContextMenuItemClick="rtvAvailable_ContextMenuItemClick"
                    OnNodeEdit="rtvAvailable_NodeEdit" OnNodeDrop="rtvAvailable_NodeDrop"
                    Height="500px" BorderStyle="None" Skin="WebBlue">
                    <ContextMenus>
                        <telerik:RadTreeViewContextMenu ID="ContextMenu2" runat="server">
                            <Items>
                                <telerik:RadMenuItem Value="Create" Text="Add New">
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadTreeViewContextMenu>
                    </ContextMenus>
                    <Nodes>
                        <telerik:RadTreeNode runat="server" ContextMenuID="ContextMenu2" Text="Root" Expanded="true">
                        </telerik:RadTreeNode>
                    </Nodes>
                </telerik:RadTreeView>
            </td>
        </tr>
    </table>
   
    </telerik:RadAjaxPanel>



 

<%@ Page Language="C#" MasterPageFile="~/WorkQueue.Master" AutoEventWireup="true"
CodeBehind="ManageDeptDivHierarchy.aspx.cs" Inherits="KMSF.WorkQueue.UI.Web.MasterFiles.ManageDeptDivHierarchy" Title="Department Division Hierarchy Management" %>

<%@ MasterType VirtualPath="~/WorkQueue.Master" %>
<%@ Register Assembly="KMSF.Library.Telerik.Custom" Namespace="KMSF.Library.Telerik.Custom" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Hierarchy1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Hierarchy1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnSave">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Hierarchy1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <table>
        <tr>
            <td>
            <asp:Button ID="btnSave" runat="server" Text="Save Changes" onclick="btnSave_Click"/><br />
            <cc1:Hierarchy ID="Hierarchy1" runat="server" ParentTreeViewTitle="Departments"
        ChildTreeViewTitle="Divisions" Height="200px" Width="150px" />
            </td>
        </tr>
    </table>
   
</asp:Content>

Robert
Top achievements
Rank 1
 asked on 31 Jul 2009
0 answers
146 views

Hello

I have a tabstrip on a page.  On a few applications I need to do a complete postback to upload files or reload data.

I want to remember the tab they were on and reload that page.

 

I have the following code working in page load

 

        If Not Page.IsPostBack Then  
            Dim TheTab As String = "" 
            TheTab = Session("Tab")  
 
            If TheTab <> "" Then  
 
                Try  
                    ' Set Tabstrip  
                    RadTabStrip1.FindTabByText(Session("Tab")).Selected = True 
                    'Set MultiPagePage  
                    RadMultiPage1.FindPageViewByID(RadTabStrip1.SelectedTab.PageViewID).Selected = True 
                    Session("Tab") = ""  
                Catch  
                    ' OK if it fails  
                End Try  
            End If  
        End If  
 
        'Reset Tab Session  
        Utilities.SetSession("Tab", RadTabStrip1.SelectedTab.Text) 

However i have to set the tabstrip to autopostback to get this. The tabs perform WAY ! better clicking between them w/o it and there is absolutely no need to do a postback on just clicking between pages.

I am bad at Javascript - probably why i write in VB  Is there an easy conversion of this method on the client side ?
Or an example i am not finding ?




David
Top achievements
Rank 1
 asked on 31 Jul 2009
3 answers
249 views
Hi,

I have a RadGrid to which I am applying custom paging and filtering. Radgrid only fetches and displays data depending on the page size. For example, If I have a display 1million records and my pagesize is 10, then my view will fetch and displays only 10 records filling virtualItemCount as 1million.

Now, I want to export this data to CSV, PDF and Excel. Export settings is exporting only data(in this case 10records) as ouput to a file but I want to export 1million records in this case.

Is there anyway to give another set to the export settings to export to a file.

Thanks,
Mahesh
Pavlina
Telerik team
 answered on 31 Jul 2009
2 answers
214 views
Hi i have created menu using Panel bar of Rad controls. And i am loading it dynamicaly from the database. But i can manage to load only the main menu. Not the sub menus inside the main menu. Can you give an example to solve this. Moereover i need this expan and collapase on mouse hover,.
Vijayaragavan
Top achievements
Rank 1
 answered on 31 Jul 2009
3 answers
148 views
I want to have a calendar where a date selection causes a user to be redirected to an appropriate page. So, I set AutoPostBack="true" for the RadCalendar control and handle the SelectionChanged event on the server-side. Although, if user navigates from the page back to the calendar and hover the mouse over the previously selected date it appears selected.

How to replicate...

Markup:
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title>Untitled Page</title> 
    <meta http-equiv="expires" content="-1" /> 
    <meta http-equiv="Pragma" content="no-cache" /> 
</head> 
<body> 
    <form runat="server"> 
    <asp:ScriptManager runat="server" /> 
    <telerik:RadCalendar ID="RadCalendar1" runat="server" AutoPostBack="true" /> 
    </form> 
</body> 
</html> 

Codebehind:
    Private Sub RadCalendar1_SelectionChanged(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.SelectedDatesEventArgs) Handles RadCalendar1.SelectionChanged 
        Dim d As String = e.SelectedDates(0).Date.ToShortDateString() 
        RadCalendar1.SelectedDates.Clear() 
        Response.Redirect("WebForm1.aspx?date=" + d) 
    End Sub 

 When the user presses the browser back button I want the calendar to be "fresh" and not have the hidden selection.

Thanks.

Martin
Telerik team
 answered on 31 Jul 2009
1 answer
93 views
Hello,

I am using a RadEditor control which loads for the first time as a result of a partial postback.
When I'm using Firefox (3.5.1), the button causes the Editor to render with the text area locked for editing, and sometimes the text area is also much smaller then expected.

Here is the source code of an ASPX and ASCX file which reproduces the problem:

RadEditorAjax.aspx:

<%

@ Page Language="C#" AutoEventWireup="true" %>

 

<%

@ Register TagPrefix="uc" TagName="radAjax" Src="radAjax.ascx" %>

 

<%

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

 

 

<!

 

DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml" >

 

<

 

head runat="server">

 

 

<title></title>

 

<

 

script runat=server>

 

 

protected void btn1_Click(object sender, EventArgs e)

 

{

ucradAjax.Visible =

true;

 

}

</

 

script>

 

</

 

head>

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

 

<telerik:RadScriptManager ID="TheScriptManager" EnablePartialRendering="true" AsyncPostBackTimeout="3600" runat="server" >

 

 

<Services>

 

 

<asp:ServiceReference Path="UserSession.asmx" />

 

 

</Services>

 

 

</telerik:RadScriptManager>

 

 

 

<telerik:RadAjaxPanel ID=upMain runat=server RenderMode=Inline UpdateMode=Conditional>

 

 

<ContentTemplate>

 

 

 

<uc:radAjax ID=ucradAjax runat=server Visible=false />

 

 

<asp:Button ID="btn1" runat=server OnClick="btn1_Click" />

 

 

 

</ContentTemplate>

 

 

</telerik:RadAjaxPanel>

 

 

 

 

</form>

 

</

 

body>

 

</

 

html>

 


radAjax.ascx:

<%

@ Control Language="C#" AutoEventWireup="true" %>

 

<%

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

 

<

 

telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server"></telerik:RadAjaxManagerProxy>

 

 

<telerik:RadEditor ID="rdeProctPolicy" Runat="server"

 

 

Width="800px" Height="400px"

 

 

DialogsScheme="Default"

 

 

ToolsOnPage="True"

 

 

Language="en-US"

 

 

ShowHtmlMode="True"

 

 

SaveInFile="True"

 

 

SaveAsXhtml="True"

 

 

DocumentsPaths="~/Docs, ~/Marketing"

 

 

StripAbsoluteImagesPaths="True"

 

 

CausesValidation="True" />

 


Thanks for your help,
Lior
Rumen
Telerik team
 answered on 31 Jul 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?