Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 views
Hi,

I have the following splitter defined:

<telerik:RadSlider ID="sliderDisk" runat="server" ShowDecreaseHandle="False" ShowDragHandle="False" 
    TrackPosition="TopLeft" Height="40px" Width="200px" ShowIncreaseHandle="False" 
    Skin="Black" Value="30" ItemType="Tick" LargeChange="20" ForeColor="#252525" 
    SmallChange="20" > 
</telerik:RadSlider> 

I want to make it "readonly" so it does not get an input from user and change the progress upon mouse click. Is there a way to do that?

I also tried to make Enabled="False", it works but the splitter itself doesn't look good.

Thanks,
Ruben.

Tsvetie
Telerik team
 answered on 29 Sep 2009
2 answers
89 views
Dear Telerik,

Is there a way to reset the loaded state of a treenode that has been given the ExpandMode="ServerSideCallBack" property?
I'd prefer not to add nodes by javascript since it's quite a hassle.

kinds regards,

Wim.
Wim van der Linden
Top achievements
Rank 1
 answered on 29 Sep 2009
3 answers
358 views
Hello

I have a RadGrid that is bound on the server during the page load, then using page methods and Client Side data binding is updated based on various user actions.  To complicate matters I needed to use Template Columns, so I perform actions on the DataBound event (client and server) that manages the appearance of each row in the Grid.  I have run into a few roadblocks and am hoping that some can help point me in the right direction.

1.  If on the initial load the RadGrad contains data, and I bind it on the client to an empty dataset, the NoRecordsTemplate does not show.  Is there a way to get this to show in this scenario?

2.  If on the initial page load the RadGrid does not contain data I get the NoRecordsTemplate as expected.  However, if I then bind it on the client to a dataset that contains data, I get exceptions because the grid appears to be reusing the row that was created from the NoRecordsTemplate which does not have the same Item templates as a data row.  So in this scenario is it possible to get the DataRow "Template" so to speak from the Grid object on the client so that I can build new data rows when rebinding on the client?

3.  If the intial page load has fewer records the a following client side data bind, then when new rows are created for the additional data items, the rows do not have any controls rendered for cells that are associated with a template column.  So is there a way to get at the item template so that I can build these controls on the client?

Thanks in advance for your help.
Patrick
Nikolay Rusev
Telerik team
 answered on 29 Sep 2009
2 answers
116 views
I have a page with a splitter on it.

One of the panes gets its content via the ContentUrl propery and, hence, renders inside an IFrame.

Now, this 'external' page uses RadToolTips to display info and 'cos the page is in an IFrame, some of the content is lost under the boundaries of the pane.

Question: is it possible to get a RadToolTip that's generated inside an IFrame to extend outside of the borders of said IFrame?

Enquiring minds, and all that.

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 29 Sep 2009
5 answers
68 views
Hello,

I really like the controls this system has to offer and am looking to purchase provided I can get this situation taken care of ASAP.

I am trying to format a Grid to look a certain way in IE7.  When I apply any default skin, the skin looks absolutely correct in FireFox, Safari, and Chrome.  For some reason, IE7 looks like it's not reading certain style properties.  I'm looking for a way I can customize the style for only IE if that is possible?  I'm not sure where to go or what to do without breaking it in other browsers.

I'm trying to wrap up a project by Monday 9/28/09 and absolutely need to get this working before I make any purchase.

Please help?

Thanks,
Kevin
Dimo
Telerik team
 answered on 29 Sep 2009
6 answers
400 views
within a GridTemplateColumn I pouplate the text property of a literal control depending on some database driven logic.

If case x set literal.text = database column x
if case y set literal.text = database column y

Since then the GridTemplateColumn can contain data from different columns I do not declaratively set the SortExpression property of the GridTemplateColumn.

How do I (in what event?) set the SortExpression property of the GridTemplateColumn programatically to be x or y?
Sebastian
Telerik team
 answered on 29 Sep 2009
1 answer
162 views

Hello All,

I have a small problem with own Business classes because there should be a method how to update Server side variables from Client side.

Situation is followig: Application opens modal Popup RadWindow and user can make queries to database in that window.

User can also select rows she wants and selected rows are put into their own RadGrid. When user closes her Popup Window rows containing user selected rows should be passed as Business Objects into Popup Window's Parent Window.

I heard somewhere that it's possible to make an Ajax Extender of own Business class so that when it's value changes it changes in both client and server side. Is this possible and if it is how to do it?

I have Googled a lot's of articles considering this issue but haven't get a picture how to actually do it.

Articles also contains specific information about Ajax Control Toolkit environment so, when I'm using Telerik's Asp.Net Ajax Components it's difficult to port Toolkit's classes and their methods into Telerik's.

So can anyone help me?

I work as a developer in a company which has licenses to Telerik products.

Thanks,

Michael

Sebastian
Telerik team
 answered on 29 Sep 2009
1 answer
138 views
Hi All.

major hassle her,.. this ran nicely under the 2006.4 controls, but multiple errors and issues now.
I have bolded anditalicised them.

I have tried the demos and and and but to no avail.

Essentially:
1)  I have a menu within a Expanding/collapsing PanelBar which itself is in a Radpane within a Radsplitter. ie similar to Outlook left pane and Right Content pane.
The menu is databound, post a login, and depending on User Role different data / menu items re loaded.
Notably Either Admin or Broker (Wildlife insurance app).

If I try the menu's  OnClientItemClicking , this event does not fire.
I try this 

var

 

splitter = window["<%= RadSplitter2.ClientID %>"]; 

 

var

 

pane = splitter.GetPaneById("ContentPane");

 

pane.SetContentUrl(url);

 

var url = eventArgs.Item.NavigateUrl;

I've tried wrapping it in RadCodeBlock because of the server var as well....No Go.

This script error this leads to another error, in my pageload event i call a function which checks a server var for whether the user has validly logged in else it pops up a RadWindow Login.
This now will only fire if I Ctl-F5 - refresh the page, but not on initial load.

I tried substituting the above script with, the one as used in your demo for this,
i.e.

 

var

 

splitter = $find("RadSplitter2");
but the event will not fire anyway,..s0  whether i put the Script in the head, the top of the body , the bottom of it, whather I try wrapping the whole body content in a rad ajax pane,..nothing.

and if I click on the menu item,...the page I want in my content pane, loads in a new window!

Oh and of course the Radpane, panel bar, resize themselves to a few millimetres in width after the menu items are loaded from Db,..once actually logged in.
I am Currently using V 2009.1

Code behind is minor, just databinding and

 

 

protected void RadMenu1_OnItemDataBound(object sender, RadMenuEventArgs e)

 

{

 

RadMenuItem ei = e.Item as RadMenuItem;

 

ei.Target =

"ContentPane";

 

}

 

And ..of course I have deadlines for my clients and fees being Tuesday.  "Sweating!!"

the markup is included beneath: 
Many Thanks
Neal

 

<%

@ 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" %>

 

 

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd">

 

<

 

html>

 

 

 

 

 

<head id="Head1" runat="server">

 

 

 

 

 

<link rel="stylesheet" type="text/css" href="~/RootStyle.css"/>

 

 

 

 

 

</head>

 

 

 

 

 

 

<body topmargin=10 leftmargin=0 onload="CheckCloseRefresh()" scroll="yes">

 

 

 

 

 

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

 

 

 

 

 

 

<asp:scriptmanager ID="Scriptmanager2" runat="server"></asp:scriptmanager>

 

 

 

 

 

 

 

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

 

 

 

 

 

 

function CheckCloseRefresh()

 

{

 

var ShowLogin = <%= Show %>;

 

 

 

if (ShowLogin == true)

 

{

Login();

}

}

 

 

function Login()

 

{

 

var urlExtn = "ms=" + new Date().getTime();

 

 

var oWnd = radopen("Forms/Auth/Login.aspx?" + urlExtn , "Login");

 

}

 

 

function Menu_OnClientItemClicked(sender, eventArgs)

 

{

alert(

"menu clicked");

 

 

var splitter = $find("RadSplitter2");

 

 

var pane = splitter.GetPaneById("ContentPane");

 

pane.SetContentUrl(url);

 

var url = eventArgs.Item.NavigateUrl;

 

}

 

 

</script>

 

 

 

 

 

 

 

<telerik:RadWindowManager

 

 

ID="RadWindowManager1"

 

 

 

 

 

runat="server"

 

 

 

 

 

>

 

 

 

 

 

 

<Windows>

 

 

 

 

 

<telerik:RadWindow

 

 

ID="Login"

 

 

runat="server"

 

 

 

 

 

Width="600px"

 

 

 

 

 

Height="245px"

 

 

 

 

 

Modal="true"

 

 

 

 

 

Top="250"

 

 

 

 

 

Left="400"

 

 

 

 

 

BackColor="lightgray"

 

 

 

 

 

>

 

 

 

 

 

</telerik:RadWindow>

 

 

 

 

 

</Windows>

 

 

</telerik:RadWindowManager>

 

 

 

 

 

 

<!-- Div obox(GradientBackGround) -->

 

 

 

 

 

<div id="oBox"

 

 

 

 

 

class="oBox"

 

 

 

 

 

>

 

 

 

 

 

 

<!-- Div Top Center Text -->

 

 

 

 

 

<div id="DivTopText"

 

 

align="center"

 

 

class="DivTopText"

 

 

 

 

 

style="font-family:Lucida Calligraphy; font-size:large; color:Gold" >

 

Equine & Wildlife Insurance

 

</div>

 

 

</div>

 

 

 

<div id="UserInfo" align="right" style="width:100%; left:0;">

 

 

 

 

 

 

</div>

 

 

 

 

 

 

<div id="Main" style="position:absolute; top:70px; left:0px; width:100%; ">

 

 

 

 

 

<asp:Label ID="lblInfo" runat="server" Enabled="false"

 

 

text="Press the 'F11' key on your keyboard to run in Fullscreen"></asp:Label>

 

 

 

 

 

<telerik:radsplitter id="RadSplitter1" runat="server"

 

 

Height ="900px" width="100%"

 

 

Skin="Telerik"

 

 

liveresize="true"

 

 

orientation="Vertical"

 

 

 

 

 

BorderColor="Transparent"

 

 

 

 

 

BorderSize="1"

 

 

 

 

 

BorderStyle="None" BackColor="Transparent">

 

 

 

 

 

 

<telerik:radpane

 

 

Height="97%"

 

 

 

 

 

id="navigationPane" runat="server"

 

 

 

MaxWidth="300"

 

 

MinHeight="500"

 

 

MinWidth="75" Width="15%"

 

 

 

 

 

BackColor="DimGray">

 

 

 

 

 

 

<telerik:RadPanelbar ID="RadPanelbar1" runat="server"

 

 

Width="100%" PersistStateInCookie="True" >

 

 

 

 

 

<Items>

 

 

 

 

 

<telerik:RadPanelItem Text="Admin" Height="50%" Width="100%"

 

 

Expanded="True" runat="server" CssClass="FrmHdrMnuGrdnt">

 

 

 

 

 

<Items >

 

 

 

 

 

<telerik:RadPanelItem runat="server" Selected="True"

 

 

CssClass="FrmHdrMnuGrdnt" Width="100%">

 

 

 

 

 

<ItemTemplate >

 

 

 

 

 

<telerik:RadMenu ID="RadMenu1"

 

 

runat="server"

 

 

Flow="Vertical" Width="100%" Height="100%"

 

 

 

 

 

skin="Equistar"

 

 

 

 

 

EnableEmbeddedSkins="false"

 

 

 

 

 

DataFieldID="ScreenId"

 

 

DataFieldParentID="ParentScreenId"

 

 

 

DataNavigateUrlField="Screen"

 

 

DataTextField="Title"

 

 

DataValueField="ScreenId"

 

 

OnItemDataBound="RadMenu1_OnItemDataBound"

 

 

OnClientItemClicking="Menu_OnClientItemClicked"

 

 

 

 

 

>

 

 

 

</telerik:RadMenu>

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

 

 

<telerik:RadPanelItem Text="Brokers" Expanded="True"

 

 

Height="50%" runat="server" CssClass="FrmHdrMnuGrdnt">

 

 

 

 

 

<Items>

 

 

 

 

 

<telerik:RadPanelItem runat="server">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<telerik:RadMenu ID="Radmenu2" runat="server"

 

 

 

Flow="Vertical" Width="99%" Height="99%"

 

 

 

 

 

skin="Equistar"

 

 

 

 

 

EnableEmbeddedSkins="false"

 

 

 

 

 

DataFieldID="ScreenId"

 

 

DataFieldParentID="ParentScreenId"

 

 

DataNavigateUrlField="Screen"

 

 

DataTextField="Title"

 

 

DataValueField="ScreenId"

 

 

OnItemDataBound="RadMenu2_OnItemDataBound"

 

 

OnClientItemClicking="Menu_OnClientItemClicked">

 

 

 

 

 

</telerik:RadMenu>

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadPanelbar>

 

 

 

 

 

</telerik:RadPane>

 

 

 

 

 

 

<telerik:radsplitbar id="RadSplitbar1" runat="server"

 

 

CollapseMode="Both"

 

 

 

 

 

EnableResize="True"

 

 

EnableTheming="False"

 

 

ResizeStep="1"

 

 

 

 

 

 

BorderColor="BlanchedAlmond"

 

 

 

 

 

BorderStyle="solid"

 

 

 

 

 

BorderWidth="1px"

 

 

 

 

 

Width="10px">

 

 

 

 

 

</telerik:radsplitbar>

 

 

 

 

 

 

<telerik:radpane id="RadPane2" runat="server"

 

 

BackColor="White"

 

 

height="97%"

 

 

Width="100%"

 

 

 

 

 

 

> <!--

 

Nester Horizontal splitter

-->

 

 

 

 

<telerik:radsplitter id="RadSplitter2" runat="server"

 

 

liveresize="true"

 

 

orientation="Horizontal"

 

 

Skin="Telerik" Height="99%" Width="100%">

 

 

 

 

 

 

<telerik:radpane id="ContentPane"

 

 

runat="server"

 

 

 

 

 

height="99%"

 

 

width="99%"

 

 

 

 

 

MinHeight="250"

 

 

ContentUrl="EquistarMain.aspx"

 

 

 

 

 

MinWidth="500"

 

 

 

>

 

 

 

 

 

</telerik:radpane>

 

 

 

 

 

 

</telerik:radsplitter>

 

 

 

 

 

 

</telerik:radpane>

 

 

 

 

 

</telerik:radsplitter>

 

 

 

 

 

</div>

 

 

 

 

 

</form>

 

 

 

 

 

</body>

 

</

 

html>

 

 

 

Paul
Telerik team
 answered on 29 Sep 2009
3 answers
136 views

Hi,

I am trying to set the default value on 3 GridDropDownColumn's in an auto generated edit form.  I have the following code in the grids item event (based on sample code).  The problem is while this works correctly for text based fields the drop down lists are not set.

protected void rgAppointments_ItemCommand(object source, GridCommandEventArgs e)  
{  
  if (e.CommandName == RadGrid.InitInsertCommandName) //"Add new" button clicked  
  {  
    if (ViewState["LAST_APPOINTMENT"] != null)  
    {  
      AppointmentSave lstApp = (AppointmentSave)ViewState["LAST_APPOINTMENT"];  
      e.Canceled = true;  
      //Prepare an IDictionary with the predefined values  
      System.Collections.Specialized.ListDictionary newValues = new System.Collections.Specialized.ListDictionary();  
      newValues["staff_member_id"] = lstApp.StaffMember;  
      newValues["appointment_type_id"] = lstApp.AppointmentType;  
      newValues["location_id"] = lstApp.Location;  
      //Insert the item and rebind  
      e.Item.OwnerTableView.InsertItem(newValues);  
    }  
  }  

The version of the controls I am using is 2008.3.1125.20.

How do I get this to work or am I going to have to switch to a template to do this?

Thanks

Gavin

Princy
Top achievements
Rank 2
 answered on 29 Sep 2009
2 answers
109 views
Hi,

I am trying to find out how to change the viewed month of the calendar from the backend code. I need next and prev buttons that change both a Scheduler and the Calendar.

When I set the calendars SelectedDate, the view is not updated to the month of the new date. How do I do this?

Thanks,
Rune
Rune
Top achievements
Rank 2
 answered on 29 Sep 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?