Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
187 views
Hi,
Can anybody tell me that how to remove data labels from chart?? and how to rotate the y-axis labels??
Thanks in advance
Lokesh
Ves
Telerik team
 answered on 24 Jan 2008
0 answers
176 views

I have problem with Ajaxifying Treeview. Scenario is like this --> When i click on Tree Node postback is happening.

I am using Treeview control(Prometheus ), Ajax Manager(Prometheus ) and RadGrid(2007 Q2 version), RadSplitter(2007 Q2 version) in single page.

To ajaxify i used below code 
RadTreeView tree1 = (RadTreeView)LEFT1.FindControl("RadTreeView1");
RadAjaxManager1.AjaxSettings.AddAjaxSetting(tree1, TextBox1);
RadAjaxManager1.AjaxSettings.AddAjaxSetting(tree1, RadGrid1);

As a separate project using above code , it is working fine. When i try to implement in my project postback is happening.

Working page code is below
=================================================

<

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

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

</telerik:RadAjaxManager>

<asp:Button ID="Postback" runat="server" Text="postback" Width="128px" />

<radspl:RadSplitter ID="_mainRadSplitter" runat="server" Height="650px" Width="100%"

Skin="Telerik">

<radspl:RadPane ID="_QueryHeadersRadPane" runat="server" Width="200">

<UC:LEFT ID="LEFT1" runat="server"></UC:LEFT>

</radspl:RadPane>

<radspl:RadSplitBar ID="_verticalRadSplitbar" runat="server" CollapseMode="Forward">

</radspl:RadSplitBar>

<radspl:RadPane ID="_contentRadPane" runat="server" Scrolling="none">

<radspl:RadSplitter ID="_contentRadSplitter" runat="server" Orientation="Horizontal">

<radspl:RadPane ID="_queryDesignerRadPane" runat="server" Height="40%">

<radG:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" EnableAJAX="True" GridLines="None"

Skin="Office2007">

<MasterTableView>

<ExpandCollapseColumn Visible="False">

<HeaderStyle Width="19px"></HeaderStyle>

</ExpandCollapseColumn>

<RowIndicatorColumn Visible="False">

<HeaderStyle Width="20px"></HeaderStyle>

</RowIndicatorColumn>

</MasterTableView>

</radG:RadGrid>

<br />

&nbsp;</radspl:RadPane>

<radspl:RadSplitBar ID="RadSplitbar2" runat="server" CollapseMode="Forward"></radspl:RadSplitBar>

<radspl:RadPane ID="_resultRadPane" runat="server" Height="60%">

<telerik:RadGrid ID="RadGrid2" runat="server" AllowPaging="True" AllowSorting="True"

GridLines="None" Skin="Office2007">

<ExportSettings>

<Pdf FontType="Subset" PaperSize="Letter" />

<Excel Format="Html" />

</ExportSettings>

<MasterTableView CommandItemDisplay="None" CurrentResetPageIndexAction="SetPageIndexToFirst"

Dir="LTR" Frame="Border" TableLayout="Auto">

<EditFormSettings>

<EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType">

</EditColumn>

</EditFormSettings>

<ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"

Resizable="False" Visible="False">

<HeaderStyle Width="20px" />

</ExpandCollapseColumn>

<RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"

Visible="False">

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

</MasterTableView>

</telerik:RadGrid>

<UC2:LEFT2 ID="LEFT2" runat="server"></UC2:LEFT2>

<asp:TextBox ID="TextBox1" runat="server" Width="247px"></asp:TextBox>

</radspl:RadPane>

</radspl:RadSplitter>

</radspl:RadPane>

</radspl:RadSplitter>

&nbsp;

</form>


=================================================================
Below is non working code

<

asp:Content ID="_queryDesignerContent" ContentPlaceHolderID="MainZone" runat="Server">

<div>

<telerik:RadAjaxLoadingPanel ID="tvwLoadingPanel" runat="server">

<img src="~/RADControls/Ajax/Skins/Default/loading.gif" />

</telerik:RadAjaxLoadingPanel>

<radspl:RadSplitter ID="_mainRadSplitter" runat="server" Height="650px" Width="100%"

Skin="Telerik">

<radspl:RadPane ID="_QueryHeadersRadPane" runat="server" Width="200">

<Optima:QueryList ID="_queryHeaderListUC" runat="server" />

</radspl:RadPane>

<radspl:RadSplitBar ID="_verticalRadSplitbar" runat="server" CollapseMode="Forward">

</radspl:RadSplitBar>

<radspl:RadPane ID="_contentRadPane" runat="server" Scrolling="none">

<radspl:RadSplitter ID="_contentRadSplitter" runat="server" Orientation="Horizontal">

<radspl:RadPane ID="_queryDesignerRadPane" runat="server" Height="40%">

<uc1:QueryEdit ID="_queryEdit" runat="server"></uc1:QueryEdit>

<br />

&nbsp;</radspl:RadPane>

<radspl:RadSplitBar ID="RadSplitbar2" runat="server" CollapseMode="Forward"></radspl:RadSplitBar>

<radspl:RadPane ID="_resultRadPane" runat="server" Height="60%">

<table width="100%">

<tr>

<td align="left" valign="top">

<UC:QueryResult ID="_queryResult" runat="server"></UC:QueryResult>

</td>

</tr>

</table>

</radspl:RadPane>

</radspl:RadSplitter>

</radspl:RadPane>

</radspl:RadSplitter>

</div>

</

asp:Content>
=================================================================

Please advise me .

Thanks
Madhu

madhu babu
Top achievements
Rank 1
 asked on 24 Jan 2008
2 answers
192 views
Hello

I have been trying to make .wsp install package from newest RadControls Prometheus. I did make working .wsp package from RadControls for asp.net using whitepaper and now I have been trying to make that package with new Prometheus dll's, but no luck. I am not sure what namespaces I should register as safe components and what dll's or other files I need to put into that .wsp package.

Could anyone that has made this .wsp, list out briefly what files and namespaces did you register into that manifest.xml and listed in ddf file ?

I tried following very basic scenario: I took telerik.web.ui.dll (that approx. 9 mb dll file from bin35), listed it in ddf file and registered telerik.web.ui namespace as safecontrol. Deployment works perfectly but when I try to add a web part into WSS 3.0 site, error comes up saying something about missing files (which means that .wsp lacks some needed files, I know that if I turn debug mode on, I get more sophisticated information about error but at this moment I can not turn that debugging on).

I need to admit that I could get this working if I could get that debug mode on but at this moment time is not on my side :(

Many thanks in advance to anyone that can give advices to this "problem".
Sakari Hilama
Top achievements
Rank 1
 answered on 24 Jan 2008
1 answer
112 views
Is it me, or is the ComboBox missing a "DropDownHeight" property?.... I may potentially have a lot of data to display in the fly out, and it would be nice if the control supported the ability to control the height.

Or, have I overlooked something?


-Brian
Brian Chavez
Top achievements
Rank 2
 answered on 24 Jan 2008
4 answers
207 views
RadAjax Prometheus does a full-page postback (not ajaxified) when the control is dynamically loaded in the page_load event. But this works in both the non-prometheus RadAjax version and when using the ASP.NET AJAX UpdatePanel.

A simple example ...

- create an ascx control (WebUserControl.ascx)
- add an ajax panel with some test action inside of it

- create an aspx page
- add a placeholder control called "ph"
- in page_load, add:
Control ctl = LoadControl("~/WebUserControl.ascx");
ph.Controls.Add(ctl);

You will see that the AJAX functionality is borked.

Next, replace the promethus ajax panel with a non-prometheus panel, or and ASP AJAX UpdatePanel, and you'll see that it works.

I have seen the example located here:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Ajax/Examples/Common/LoadingUserControls/DefaultCS.aspx

But, in the example, the ajax panel is location in the ASPX page and the user control is loaded inside of it. The problem I am describing happens when you include the AJAX panel *inside* of the user control.

Any suggestions?

Thnaks!
John
Pyron Technologies
John Brownell
Top achievements
Rank 1
 answered on 24 Jan 2008
1 answer
262 views
I have a grid which is bound to a simple data table.  I set AllowAutomaticUpdates=True, EditMode=inplace, and AllowMultiRowSelection=True.  My first column is a checkbox column, but it's not editable.  How can I make the checkbox colum allow user's to change it's value.  I'm sure it's something simple.

Thanks,
-Jonathan

P.S.  Here is the ASPX for my grid:

        <telerik:radgrid id="gridFiles" runat="server" allowautomaticdeletes="True" allowautomaticupdates="True"
            allowmultirowselection="True" autogeneratecolumns="False" font-names="Arial"
            gridlines="None" oncolumncreated="gridFiles_ColumnCreated" ondeletecommand="gridFiles_DeleteCommand"
            onitemcommand="gridFiles_ItemCommand" onitemdeleted="gridFiles_ItemDeleted" skin="Web20">
<ExportSettings __designer:dtid="281513631416330">
<Pdf FontType="Subset" PaperSize="Letter" __designer:dtid="281513631416331"></Pdf>

<Excel Format="Html" __designer:dtid="281513631416332"></Excel>
</ExportSettings>

<ClientSettings __designer:dtid="281513631416346">
<Selecting AllowRowSelect="True" __designer:dtid="281513631416347"></Selecting>
</ClientSettings>

<MasterTableView CommandItemDisplay="None" Frame="Border" EditMode="InPlace" NoMasterRecordsText="There are no files in this folder.  To upload a file, click on the link above." Dir="LTR" CurrentResetPageIndexAction="SetPageIndexToFirst" TableLayout="Auto" ShowHeadersWhenNoRecords="False" __designer:dtid="281513631416333">
<EditFormSettings __designer:dtid="281513631416334">
<EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" __designer:dtid="281513631416335"></EditColumn>
</EditFormSettings>
<Columns __designer:dtid="281513631416340">
<telerik:GridCheckBoxColumn ForceExtractValue="None" DataField="File Checked" DataType="System.Boolean" UniqueName="delete_selector" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" __designer:dtid="281513631416341"></telerik:GridCheckBoxColumn>
<telerik:GridHyperLinkColumn NavigateUrl="GetFile.aspx?File=" UniqueName="column1" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" DataTextField="File Name" HeaderText="File Name" __designer:dtid="281513631416342"></telerik:GridHyperLinkColumn>
<telerik:GridBoundColumn ReadOnly="True" ForceExtractValue="None" DataField="Size" UniqueName="column2" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" HeaderText="Size" __designer:dtid="281513631416343"></telerik:GridBoundColumn>
<telerik:GridBoundColumn ReadOnly="True" ForceExtractValue="None" DataField="Author" UniqueName="column3" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" HeaderText="Author" __designer:dtid="281513631416344"></telerik:GridBoundColumn>
<telerik:GridBoundColumn ReadOnly="True" ForceExtractValue="None" DataField="Date Uploaded" UniqueName="column4" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" HeaderText="Date Uploaded" __designer:dtid="281513631416345"></telerik:GridBoundColumn>
</Columns>

<ExpandCollapseColumn Visible="False" Resizable="False" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" __designer:dtid="281513631416336">
<HeaderStyle Width="20px" __designer:dtid="281513631416337"></HeaderStyle>
</ExpandCollapseColumn>

<RowIndicatorColumn Visible="False" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" __designer:dtid="281513631416338">
<HeaderStyle Width="20px" __designer:dtid="281513631416339"></HeaderStyle>
</RowIndicatorColumn>
</MasterTableView>
</telerik:radgrid>
Jonathan
Top achievements
Rank 1
 answered on 23 Jan 2008
2 answers
144 views
Hi
i've searched the forums and it seems a few people are having problems with the context menu on the prometheus version of RadTreeView. I have downloaded the latest hotfix (forum: http://www.telerik.com/community/forums/thread/b311D-bbkeda.aspx) but it has not solved my problem. Basically, i have a data bound treeview with four context menus defined in the aspx. each context menu has an ID. in the code behind, i hook the NodeDataBound event and specify node.ContextMenuID but nothing happens when i right click in the browser. i also tried setting node.EnableContextMenu = True. Still nothing.

An online example would certainly help. The only example available uses the client side API for the most part.
Cheers,
rob
rdochert
Top achievements
Rank 1
 answered on 23 Jan 2008
2 answers
186 views
Hi,

First I would like to say that that integration with context menu looks very good.

In a Scheduler I have a custom attribute: Status.
I want ContextMenu to be shown only when Status ==1
I followed your online example and found the javasript function
appointmentContextMenu {
...
selectedAppointment = eventArgs.get_appointment();
}

So i have selectedAppointment, how can i read its custom attributes and instruct scheduler not to show the ContextMenu?

Thanks,
Florin
f
Top achievements
Rank 1
 answered on 23 Jan 2008
7 answers
239 views
Hello, I am trying to get the RadColourPicker running on my webapge but with no luck. I am trying to use the example that you have posted here
 but the server-side click event simply isn't firing. Here's my code:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="PRAMIS.master.cs" Inherits="PRAMIS" %> 
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
    Namespace="System.Web.UI" TagPrefix="asp" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register Assembly="RadMenu.Net2" Namespace="Telerik.WebControls" TagPrefix="radM" %> 
<!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>Untitled Page</title> 
    <link href="PRAMIS.css" rel="stylesheet" type="text/css" /> 
</head> 
<body bgcolor="#E3E3E3" style="margin-top:1px;margin-left:0px;margin-right:0px" runat="server" id="objBody"> 
    <form id="form1" runat="server"> 
<asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager> 
    <div> 
        <table border="0" cellpadding="0" cellspacing="0" width="100%"> 
            <tr> 
                <td bgcolor="#efab00" style="border-left: #efab00 1px solid;"><img src="/Images/PRAMIS_Wide.jpg" /></td> 
            </tr> 
            <tr> 
                <td bgcolor="#efab00" colspan="2" style="border-left: #efab00 1px solid;">&nbsp;</td> 
            </tr> 
            <tr> 
                <td colspan="2" valign="top"><table style="width: 100%" cellpadding="0" cellspacing="0"> 
                        <tr> 
                            <td align="center" colspan="2" valign="top"><radM:RadMenu ID="rmenuPramis" runat="server" SkinsPath="/App_Themes/RadMenu" Width="99.9%" RadControlsDir="/" Skin="Web20" DataSourceID="SiteMapDataSource1"></radM:RadMenu> 
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" /></td> 
                        </tr> 
                    <tr> 
                        <td align="right" colspan="2" valign="top"> 
                            <table cellpadding="2" cellspacing="2" style="width: 100%"> 
                                <tr> 
                                    <td align="left" valign="top"> 
                                        <asp:SiteMapPath ID="SiteMapPath1" runat="server" CssClass="ReadOnlyText"></asp:SiteMapPath> 
                                    </td> 
                                    <td align="right"> 
                                        <table> 
                                            <tr> 
                                                <td><asp:Label ID="Label1" runat="server" CssClass="Heading" Text="User Name:"></asp:Label></td> 
                                                <td align="left"><asp:LoginName ID="LoginName1" runat="server" CssClass="ReadOnlyText" /></td> 
                                            </tr> 
                                            <tr> 
                                                <td valign="top"> 
                                                    <asp:Label ID="Label2" runat="server" CssClass="Heading" Text="Bg Colour:"></asp:Label></td> 
                                                <td align="left"> 
                                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
                                                    <ContentTemplate> 
                                                    <telerik:radcolorpicker id="rcpColours" preset="Standard" runat="server" AutoPostBack="true" OnColorChanged="rcpColours_ColorChanged" style="float:left;margin:0px 20px 11px 0px;"></telerik:radcolorpicker> 
                                                    </ContentTemplate> 
                                                    </asp:UpdatePanel> 
                                                </td> 
                                            </tr> 
                                            <tr> 
                                                <td></td> 
                                                <td align="left"><asp:LoginStatus ID="LoginStatus1" runat="server" CssClass="ReadOnlyText" LogoutAction="RedirectToLoginPage" /></td> 
                                            </tr> 
                                        </table> 
                                    </td> 
                                </tr> 
                            </table> 
                        </td> 
                    </tr> 
                    </table> 
                </td> 
            </tr> 
           </table> 
           <table width="100%" cellpadding="12"><tr><td> 
        <asp:contentplaceholder id="cphMainForm" runat="server"> 
         
        </asp:contentplaceholder> 
        </td></tr> 
        </table> 
    </div> 
    </form> 
</body> 
</html> 
 


C#
using System; 
using System.Data; 
using System.Configuration; 
using System.Collections; 
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.Drawing; 
 
public partial class PRAMIS : System.Web.UI.MasterPage 
{ 
    protected void Page_Load(object sender, EventArgs e) 
    { 
 
        try 
        { 
            Page.Title = ConfigurationManager.AppSettings["TitleBarText"]; 
 
            objBody.Attributes["bgColor"] = Profile.bgColour; 
                        
                         
        } 
        catch (Exception ex) 
        { 
 
        } 
    } 
    protected void ibtnBlue_Click(object sender, ImageClickEventArgs e) 
    { 
 
        Profile.bgColour = "#C4ECFF"; 
        Profile.Save(); 
        objBody.Attributes["bgColor"] = Profile.bgColour; 
 
         
    } 
    protected void ibtnPink_Click(object sender, ImageClickEventArgs e) 
    { 
        Profile.bgColour = "#FFD8F5"; 
        Profile.Save(); 
        objBody.Attributes["bgColor"] = Profile.bgColour; 
    } 
 
    protected void ibtnSilver_Click(object sender, ImageClickEventArgs e) 
    { 
        Profile.bgColour = "#FEFEFE"; 
        Profile.Save(); 
        objBody.Attributes["bgColor"] = Profile.bgColour; 
 
    } 
 
    protected void rcpColours_ColorChanged(object sender, EventArgs e) 
    { 
        Profile.bgColour = ColorTranslator.ToHtml(rcpColours.SelectedColor); 
        Profile.Save(); 
        objBody.Attributes["bgColor"] = Profile.bgColour; 
    } 
 
} 
 

Any advise you can give would be much appreciated; Basically, I am trying to fire a server-side event when a colour is clicked, but this isn't happening.




Robert Graff
Top achievements
Rank 1
 answered on 23 Jan 2008
2 answers
171 views
I installed the 3.5 bin and .net 3.5 on my developement box, all is good.

When I installed .net 3.5 on our test server (windows 2003) and copied the telerik 3.5 bins over I get the parser error message: "Unknown server tag 'asp:ScriptManager'" error.

so I updated the web.config (per http://www.telerik.com/community/forums/thread/b311D-tkkmt.aspx)

with:

<controls><add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /></controls></pages>

and now I get :

CS1705: Assembly 'Telerik.Web.UI, Version=2007.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' uses 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

I'm guessing the web.config entry is different for 3.5 prometheus and that thread was related to an older version?

david
Top achievements
Rank 1
 answered on 23 Jan 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?