Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
97 views
What is the link for Online help for the RadTreeview control for AJAX. B'cas when I navigate from the link provided, it's displaying the "An error occured while processing your request".
Simon
Telerik team
 answered on 09 Jul 2008
2 answers
143 views
Dear All,

I have a simple and strange situation here.
Issue #1:
======
Working Scenario:
I have a usercontrols with a panelbar on it, I placed RadGrid control as a item templet then I assign a SqlDatasource to that grid DatasourceID, when I run the app. everything was good as expected.

NonWorking scenario:
I remove the SqlDatasource from the grid property and I use the NeedDataSource event where I create the SqlDatasource and assign it to the grid DataSourceID property , "no records found"
I make an alternative for this which is, I define the SqlDatasource declaratively on the usercontrols and then assign it's ID to RadGrid with no luck.

What is the problem here.
Here is my code:
protected void NewsGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)  
        {  
            SqlDataSource1.Select(DataSourceSelectArguments.Empty);  
            (source as RadGrid).DataSourceID = SqlDataSource1.ID;  
              
            /*
            // Read connection from web.config
            ConnectionStringSettings settings = ConfigurationManager.ConnectionStrings["NorthwindConnectionString"];
            try
            {
                // pass the values read to the datasource
                SqlDataSource sqlsource = new SqlDataSource();
                sqlsource.ConnectionString = settings.ConnectionString;
                sqlsource.ProviderName = settings.ProviderName;
                sqlsource.SelectCommand = "SELECT ID, Link, Location, TimeCaptured, Brief, SmallImage FROM NewsSnap";
                sqlsource.Select(DataSourceSelectArguments.Empty);
                (source as RadGrid).DataSourceID = sqlsource.ID;
            }
            catch(Exception ex)
            {
                // swallow for now
            }
            */ 

Issue #2:
The panelBar has two or more panelbar the panelbar property expand mode is Single and the first item is expand by default.
But the panel is not collapsing or closing at all, it is always expanded for all child items ...
here is the .aspx syntax:
<telerik:RadPanelBar ID="NewsPanel" runat="server" Width="100%" SkinID="PanelBar" ExpandMode="SingleExpandedItem">  
<CollapseAnimation Duration="100" Type="InSine" /> 
<ExpandAnimation Duration="100" Type="outsine" /> 
    <Items> 
        <telerik:RadPanelItem Value="PanelItemGrid" Text="Root RadPanelItem1" runat="server" PostBack="False" Expanded="true">  
            <ItemTemplate> 
                <telerik:RadGrid ID="NewsGrid" runat="server" SkinID="Grid" Width="100%" AllowPaging="True" AllowSorting="True" GridLines="None" OnNeedDataSource="NewsGrid_NeedDataSource" ShowFooter="True" ShowStatusBar="True">  
                    <MasterTableView AutoGenerateColumns="False">  
                        <RowIndicatorColumn Visible="False">  
                            <HeaderStyle Width="20px" /> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn Resizable="False" Visible="False">  
                            <HeaderStyle Width="20px" /> 
                        </ExpandCollapseColumn> 
                        <EditFormSettings> 
                            <PopUpSettings ScrollBars="None" /> 
                        </EditFormSettings> 
                        <PagerStyle Mode="NextPrevAndNumeric" /> 
                    </MasterTableView> 
                    <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">  
                        <Selecting AllowRowSelect="True" /> 
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                    </ClientSettings> 
                </telerik:RadGrid> 
            </ItemTemplate> 
        </telerik:RadPanelItem> 
        <telerik:RadPanelItem Value="PanelItem2" Text="Root RadPanelItem2" runat="server" PostBack="False" Expanded="false">  
            <ItemTemplate> 
                <asp:Button runat="server" ID="button1" /> 
            </ItemTemplate> 
        </telerik:RadPanelItem> 
    </Items> 
</telerik:RadPanelBar> 

Hope that you can help me getting through...
Thanks and best regards,
Waleed
Zyguy
Top achievements
Rank 1
 answered on 09 Jul 2008
4 answers
114 views

A recent update to 2008.1.619 appears to have broken the HeightOffset functionality. It appears the HeightOffset is properly being applied to the table inside of the splitter's div element but the div is not affected. Your own example (http://www.telerik.com/support/kb/article/b454K-tdt-b454T-cka-b454c-cka.aspx) is broken as well.

I used the following code in a web site referencing the 2008.1.619 assembly and could not see the footer (gray) in IE 7 or FF 3:

<%@ Page Language="C#" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Untitled Page</title> 
    <style type="text/css">  
    html, body, form  
    {  
        height: 100%;  
        overflow: hidden;  
        margin: 0px;  
        padding: 0px;  
    }  
    </style> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <div id="header" style="height:100px;background-color:Gray;">Header</div> 
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%" 
            HeightOffset="200">  
            <telerik:RadPane ID="RadPane1" runat="server"></telerik:RadPane> 
            <telerik:RadPane ID="RadPane2" runat="server"></telerik:RadPane> 
        </telerik:RadSplitter> 
        <div id="footer" style="height:100px;background-color:Gray;">Footer</div> 
    </form>      
</body> 
</html> 
 

We must have this functionality back, it is breaking the UI of our application.

Thanks in advance.

Regards,
Jared
Michael Dunbar
Top achievements
Rank 2
 answered on 09 Jul 2008
1 answer
77 views
Hi,

Scenario:
I have a masterpage containing RadFormDecorator.
I have another page inherit that master page. The page contains RadScheduler.

When running the page on the web, it looks fine, but when I am trying to edit or enter data into the scheduler by double clicking the grid, it throws me an error.

I need that RadFormDecorator on the Masterpage so I dont need to apply RadFormDecorator to all pages.

For the time being, I can take it out to ensure that the RadScheduler is working. Thus, is there a work around to have RadScheduler and RadFormdecorator ?

Thanks.
T. Tsonev
Telerik team
 answered on 09 Jul 2008
1 answer
108 views
Hi,

I am updating from the frid to an XML file.  The first column is a dropdown list.  I copied this code directly from one of the online demos.  For some or other reason it is not passing the value of the value of the selected drop down list.  It is the element called StoreLocatorID.

protected void rgDeposits_UpdateCommand(object source, GridCommandEventArgs e)
{
   GridEditFormItem gridEditFormItem = (GridEditFormItem)e.Item;
   Hashtable ht = new Hashtable();
   gridEditFormItem.ExtractValues(ht);

   String _DepositID = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["DepositID"].ToString();

   XmlNode node = dsDeposits.GetXmlDocument().SelectSingleNode(String.Format("Deposits/Deposit[@DepositID='{0}']", _DepositID));

   node.Attributes["StoreLocatorID"].Value = ConvertNullToEmpty(ht["StoreLocatorID"]);
   node.Attributes["CurrentAccountNumber"].Value = ConvertNullToEmpty(ht["CurrentAccountNumber"]);
   node.Attributes["BranchNo"].Value = ConvertNullToEmpty(ht["BranchNo"]);
   node.Attributes["ClientCITNo"].Value = ConvertNullToEmpty(ht["ClientCITNo"]);
   node.Attributes["DateOfDeposit"].Value = ConvertNullToEmpty(ht["DateOfDeposit"]);
   node.Attributes["DepositReferenceInput"].Value = ConvertNullToEmpty(ht["DepositReferenceInput"]);
   node.Attributes["DepositAmount"].Value = ConvertNullToEmpty(ht["DepositAmount"]);

   try
   {
      dsDeposits.Save();
   }
   catch (Exception ex)
   {
      Response.Write(ex.Message);
   }
}

private String ConvertNullToEmpty(Object obj)
{
   if (obj == null)
   {
      return String.Empty;
   }
   else
   {
      return obj.ToString();
   }
}

Please can someone help me?

Thanks
Brendan

Veli
Telerik team
 answered on 09 Jul 2008
5 answers
219 views
Hello

I got the Telerik.Web.UI.GridGroupByException error after I tried to drag and drop the column in the group by section of the RadGrid. The error was occured due to the space in the column name.

I want to catch this error and want to display the message to the user regarding the space in the column name.

So in which event I catch this error ?

Can any one help me regarding the same.

Thanks in advance.

Vinit
Daniel
Telerik team
 answered on 09 Jul 2008
1 answer
119 views
Hi team

is there a way that i can set the series values rotation  in Bar Chart
since theres only one way to change the serise align (Top left, Top right... etc)
i wonna set the rotation values

Thanx in advance
Asmaa
Ves
Telerik team
 answered on 09 Jul 2008
1 answer
130 views
Hi,

I have the following problem, and made a test project out of it.
On my form i have a RadAjaxManager, a clientside button, a serverside button, and a asp:panel.

Configured in the AjaxManager (ajaxsettings):
- buttonServerSide updates buttonServerSide
- asp:panel updates asp:panel

When i press the buttonServerSide, my asp:panel gets updated from the server as well, while i did not configure it like that :(.
Same behaviour when i add above ajaxsettings in the page_load in the .cs file.

Also, is it possible to add ajaxsettings outside the page_load, or is it not meant for that kind of things? This could come in handy with more complex websites with many usercontrols, this way we do not have to configure all ajaxsettings at page_load, but can be configured / added during runtime, which may be easier.
(can retrieve the calling element via the scriptmanager).

Thx in advance!

Below is the aspx code, and the .cs code from my small test project:

/*aspx*/

<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="__ajax_test.aspx.cs" Inherits="uitprobeersels__ajax_test" %>

<%

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

<!

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>

<

script language="javascript" type="text/javascript">

// <!CDATA[

function

ButtonClient_onclick()

{

document.getElementById(

"Panel1").style.backgroundColor = "Red";

alert(

"Background color of Panel1 changed to red");

}

// ]]>

</

script>

</

head>

<

body>

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

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

</telerik:RadScriptManager>

<div>

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

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="Panel1">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="Panel1" />

</UpdatedControls>

</telerik:AjaxSetting>

<telerik:AjaxSetting AjaxControlID="ButtonServerside">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="ButtonServerside" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

&nbsp; &nbsp;&nbsp;

<asp:Panel ID="Panel1" runat="server">This is a panel.</asp:Panel>

<input id="ButtonClientside" type="button" value="Clientside Button" onclick="ButtonClient_onclick()" /></div>

<br /><br /><br />

<asp:Button ID="ButtonServerside" runat="server" OnClick="Button1_Click" Text="ButtonServerside (postback)" />

</form>

</

body>

</

html>


/*cs*/

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;

public

partial class uitprobeersels__ajax_test : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

}

protected void Button1_Click(object sender, EventArgs e)

{

//do nothing here

}

}

Mishel
Top achievements
Rank 1
 answered on 09 Jul 2008
2 answers
131 views
Ok, so I just downloaded the new controls (2008 Q1). HOW DO I SKIN THEM???

In previous versions I could simply take an existing skin and copy it into my root "../RadControls/Skins/Panelbar" , then point the skin property in the control at that folder and everything worked just fine...  BUT in the new set of controls I can't figure this out. 

Here is what is needed.
1.) Telerik needs to provide step by step documentation on exactly how to do this.  I have read through the manual and its worthless.

2.) Telerik needs to provide an exmple application that focuses on Skinning.

Seriously guys, you can't expect everyone to just use the exact same skins/theme that are provided out of the box???


Stuart Hemming
Top achievements
Rank 2
 answered on 09 Jul 2008
1 answer
141 views
Dear Sir,

Do you consider to add textbox and dropdownlist skin into formdecorator?  Yes, I know I can use RadTextbox and RadComboBox, but I feel that's too fat and slow...

Therefore, what's your idea? 
Georgi Tunev
Telerik team
 answered on 09 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?