Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
243 views
Hello,

When you navigate to the previous/next period in the scheduler's NavigateCommand event handler, is there a way to determine what date is being navigated to?  e.SelectedDay is 1/1/0001 which is incorrect...  For navigating to the selected date, this works, but whne changing next/previous period, e.SelectedDay is incorrect and I don't know which day it's moving to.

Is there a way to tell?

Thanks.
Peter
Telerik team
 answered on 05 Dec 2008
1 answer
162 views
Hi, what i want to do is that, in a radsplitter i have 2 horizontal pane, in the top pane i have a radmenu and in the bottom pane i have a radwindow, then when i click on a menu item, display into the bottom pane the radwindow, is that possible?, if is it, can you guide me please how to do that or send me a link whith example, in the meantime i keep working on it

Sorry for my english
Thanks
Vyrban
Top achievements
Rank 1
 answered on 05 Dec 2008
3 answers
140 views
Hi,

I am using Treeview and Grid controls on my page, Based on the selected node in treeview grid is getting populated and displayed.

in this scenario while i am clicking on the treeview , grid is populated correctly . but the skin is not applied.

what should i do?

how to apply skin programmatically..

Thanks,
Mano.
Princy
Top achievements
Rank 2
 answered on 05 Dec 2008
1 answer
129 views
Hi,

Using VS2005
I have 2 strange problem with RadGrid 2008/Q2 and radwindow,

When I dynamically load some user controls which consists paged radgrid with code below:
1- First click to treeview node loads the control succesfully, then paging is working succesfully.
Clicking to another node, loads the uc succesfully again, but when you click to pager to see 2nd page on the radgrid, nothing happens. But after clicking the pager again moves to the desired page?? I tried to use slider for the paging, however it gave me java error for first try, and second try to move it again was succesful

For the radwindow:
2- When I click to an item in grid(in user control), it should open a radwindow, however now its giving javascript error (object ecpected??) I couldn't find out which I'm missing.. :)

Your help will be very appreciated.
Thanks.

p.s.: The codes of default.aspx and one of the user control which I'm using are below. Other uc's are very similar to each other
p.s.:I have RadScriptManager in Masterpage..


Default.aspx

<%

@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage.Master" CodeBehind="Default.aspx.vb" Inherits="Crm._Default"%>

 

<%

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

 

<

 

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

 

<

 

telerik:RadSplitter ID="RadSplitter1" runat="server" Height="100%" Width="929px" Skin="Web20">

 

 

<telerik:RadPane ID="Radpane1" runat="server" Width="160px">

 

 

<span class="SplitterPaneHeader">Ana Menu</span>

 

 

<telerik:RadTreeView ID="RadTreeView1" runat="server" OnNodeClick="RadTreeView1_NodeClick">

 

 

<Nodes>

 

 

<telerik:RadTreeNode runat="server" Text="Companies" Value="Firmalar">

 

 

</telerik:RadTreeNode>

 

 

<telerik:RadTreeNode runat="server" Text="Meetings">

 

 

 

</telerik:RadTreeNode>

 

 

<telerik:RadTreeNode runat="server" Text="Quotes" Value="Teklifler">

 

 

</telerik:RadTreeNode>

 

 

<telerik:RadTreeNode runat="server" Text="Orders">

 

 

 

</telerik:RadTreeNode>

 

 

<telerik:RadTreeNode runat="server" Text="Services" Value="TeknikServis">

 

 

</telerik:RadTreeNode>

 

 

</Nodes>

 

 

<CollapseAnimation Duration="100" Type="OutQuint" />

 

 

<ExpandAnimation Duration="100" />

 

 

</telerik:RadTreeView>

 

 

</telerik:RadPane>

 

 

 

<telerik:RadSplitBar ID="Radsplitbar5" runat="server" CollapseMode="Forward"></telerik:RadSplitBar>

 

 

<telerik:RadPane ID="Radpane2" runat="server">

 

 

<span class="SplitterPaneHeader">Detay</span>

 

 

<asp:UpdatePanel ID="RadGridUpdatePanel" UpdateMode="Conditional" runat="server">

 

 

<Triggers>

 

 

<asp:AsyncPostBackTrigger ControlID="RadTreeView1" />

 

 

</Triggers>

 

 

<ContentTemplate>

 

 

<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>

 

 

</ContentTemplate>

 

 

</asp:UpdatePanel>

 

 

</telerik:RadPane>

 

 

</telerik:RadSplitter>

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" ReloadOnShow="true" ShowContentDuringLoad="false" VisibleStatusbar="false" Width="420px" Height="440px" Modal="true" Skin="Web20"></telerik:RadWindowManager>

 

</

 

asp:Content>

Default.aspx.vb

 

Public

 

Partial Class _Default

 

 

Inherits System.Web.UI.Page

 

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

 

 

If Not String.IsNullOrEmpty(LastLoadedControl) Then

 

 

 

 

LoadUserControl(LastLoadedControl)

 

End If

 

 

 

 

 

End Sub

 

 

 

 

 

Protected Sub RadTreeView1_NodeClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs)

 

LoadUserControl(e.Node.Value.ToString)

 

End Sub

 

 

 

 

 

Private Property LastLoadedControl() As String

 

 

 

 

 

Get

 

 

 

 

 

Return TryCast(ViewState("LastLoaded"), String)

 

 

End Get

 

 

 

 

 

Set(ByVal value As String)

 

ViewState(

"LastLoaded") = value

 

 

End Set

 

 

 

 

 

End Property

 

 

 

 

 

Private Sub LoadUserControl(ByVal ctrlName As String)

 

PlaceHolder1.Controls.Clear()

 

Dim uc As UserControl = DirectCast(LoadControl("~/UserControls/" & ctrlName & ".ascx"), UserControl)

 

PlaceHolder1.Controls.Add(uc)

LastLoadedControl = ctrlName

 

End Sub

 

End

 

Class

~/UserControls/TeknikServis.ascx

 

<%

@ Control Language="vb" AutoEventWireup="false" CodeBehind="TeknikServis.ascx.vb" Inherits="Crm.TeknikServis1" %>

 

<%

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

 

 

 

 

<

 

script type="text/jscript">

 

 

 

 

 

 

function

 

openRadWindow(Id,Mode)

 

{

 

var oWnd = radopen("./Detay/ServisDetay.aspx?TeknikServisId=" +Id+ "&Mode=" + Mode, null );

 

oWnd.center();

}

 

 

 

 

 

</script>

 

 

 

 

 

 

 

<

 

div>

 

 

 

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True"

 

 

 

 

 

AutoGenerateColumns="False" GridLines="None" Height="85%" PageSize="10" Skin="Vista"

 

 

 

 

 

AllowPaging="True" Font-Bold="False" BorderStyle="None" DataSourceID="SqlDataSource1">

 

 

 

 

 

<PagerStyle Mode="Slider" Font-Names="Arial" Font-Size="12px" HorizontalAlign="Center" />

 

 

 

 

 

<MasterTableView DataKeyNames="TeknikServisId" CommandItemDisplay="Top" DataSourceID="SqlDataSource1">

 

 

 

 

 

<RowIndicatorColumn>

 

 

 

 

 

<HeaderStyle Width="20px" />

 

 

 

 

 

</RowIndicatorColumn>

 

 

 

 

 

<ExpandCollapseColumn>

 

 

 

 

 

<HeaderStyle Width="20px" />

 

 

 

 

 

</ExpandCollapseColumn>

 

 

 

 

 

<CommandItemTemplate>

 

 

 

 

 

<div style="height: 20px; margin-top: 4px; font: Arial; font-size: 12px; font-weight: bold">

 

 

 

 

 

<asp:LinkButton runat="server" ID="LinkButton1" Text="Yeni" CommandName="Yeni" OnClientClick="openRadWindow('0','Add'); return false;" />

 

 

 

 

 

</div>

 

 

 

 

 

</CommandItemTemplate>

 

 

 

 

 

<Columns>

 

 

 

 

 

<telerik:GridTemplateColumn DataField="TeknikServisId" DataType="System.Int32" HeaderText="No"

 

 

 

 

 

SortExpression="TeknikServisId" UniqueName="TeknikServisId" FilterControlWidth="25px">

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<

 

a href="#" onclick="openRadWindow('<%#DataBinder.Eval(Container.DataItem,"TeknikServisId")%>','Edit'); return false;">

 

 

 

 

<%

# Eval("TeknikServisId") %>

 

 

</a>

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

<HeaderStyle HorizontalAlign="Center" Width="50px" />

 

 

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Tarih" DataType="System.DateTime" EmptyDataText="&amp;nbsp;"

 

 

 

 

 

HeaderText="Tarih" SortExpression="Tarih" UniqueName="Tarih" FilterControlWidth="95px">

 

 

 

 

 

<HeaderStyle Width="120px" />

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="FirmaAdi" EmptyDataText="&amp;nbsp;" FilterControlWidth="275px"

 

 

 

 

 

HeaderText="Firma Adı" SortExpression="FirmaAdi" UniqueName="FirmaAdi">

 

 

 

 

 

<HeaderStyle Width="300px" />

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="BildirilenAriza" EmptyDataText="&amp;nbsp;" FilterControlWidth="275px"

 

 

 

 

 

HeaderText="Bildirilen Arıza" SortExpression="BildirilenAriza" UniqueName="BildirilenAriza">

 

 

 

 

 

<HeaderStyle Width="300px" />

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="SeriNo" EmptyDataText="&amp;nbsp;" FilterControlWidth="75px"

 

 

 

 

 

HeaderText="Seri No" SortExpression="SeriNo" UniqueName="SeriNo">

 

 

 

 

 

<HeaderStyle Width="100px" />

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="Marka" EmptyDataText="&amp;nbsp;" FilterControlWidth="75px"

 

 

 

 

 

HeaderText="Marka" SortExpression="Marka" UniqueName="Marka">

 

 

 

 

 

<HeaderStyle Width="100px" />

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="UrunTipi" EmptyDataText="&amp;nbsp;" FilterControlWidth="75px"

 

 

 

 

 

HeaderText="&#220;r&#252;n Tipi" SortExpression="UrunTipi" UniqueName="UrunTipi">

 

 

 

 

 

<HeaderStyle Width="100px" />

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn DataField="TeknikServisDurumu" EmptyDataText="&amp;nbsp;"

 

 

 

 

 

FilterControlWidth="75px" HeaderText="Durumu" SortExpression="TeknikServisDurumu"

 

 

 

 

 

UniqueName="TeknikServisDurumu">

 

 

 

 

 

<HeaderStyle Width="100px" />

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

</Columns>

 

 

 

 

 

<AlternatingItemStyle BackColor="#FFFFC8" Font-Bold="False" Font-Italic="False" Font-Overline="False"

 

 

 

 

 

Font-Names="Arial" Font-Size="12px" Font-Strikeout="False" Font-Underline="False"

 

 

 

 

 

Wrap="True" />

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

<HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"

 

 

 

 

 

Font-Underline="False" Height="14px" Wrap="True" Font-Names="Arial" Font-Size="12px" />

 

 

 

 

 

<ClientSettings AllowKeyboardNavigation="True">

 

 

 

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

 

 

 

 

 

<ClientMessages PagerTooltipFormatString="Sayfa: &lt;b&gt;{0}&lt;/b&gt; - &lt;b&gt;{1}&lt;/b&gt;" />

 

 

 

 

 

</ClientSettings>

 

 

 

 

 

<FilterMenu EnableTheming="True" Skin="Vista">

 

 

 

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

 

 

 

</FilterMenu>

 

 

 

 

 

<FooterStyle Font-Names="Arial" Font-Size="12px" />

 

 

 

 

 

<AlternatingItemStyle Font-Names="Arial" Font-Size="12px" />

 

 

 

 

 

<ItemStyle Font-Names="Arial" Font-Size="12px" />

 

 

 

 

 

</telerik:RadGrid>

 

 

 

 

 

</div>

 

 

 

 

 

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Crm2009ConnectionString %>"

 

 

 

 

 

SelectCommand="SELECT TeknikServis.TeknikServisId, TeknikServis.Tarih, Firmalar.FirmaAdi, TeknikServis.BildirilenAriza, TeknikServis.SeriNo, Tanimlar_Markalar.Marka, Tanimlar_UrunTipleri.UrunTipi, Tanimlar_TeknikServisDurumlari.TeknikServisDurumu FROM TeknikServis LEFT OUTER JOIN Firmalar ON TeknikServis.FirmaId = Firmalar.FirmaId LEFT OUTER JOIN Tanimlar_Markalar ON TeknikServis.MarkaId = Tanimlar_Markalar.MarkaId LEFT OUTER JOIN Tanimlar_UrunTipleri ON TeknikServis.UrunTipiId = Tanimlar_UrunTipleri.UrunTipiId LEFT OUTER JOIN Tanimlar_TeknikServisDurumlari ON TeknikServis.TeknikServisDurumId = Tanimlar_TeknikServisDurumlari.TeknikServisDurumId ORDER BY TeknikServis.Tarih"

 

 

 

 

 

DataSourceMode="DataReader"></asp:SqlDataSource>

 

 

 

 

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Height="600px" Skin="Vista"

 

 

 

 

 

VisibleStatusbar="False" Width="850px" Behaviors="Close, Move">

 

 

 

 

 

<Windows>

 

 

 

 

 

<telerik:RadWindow ID="TeknikServisDetay" runat="server" Style="display: none;" InitialBehavior="None"

 

 

 

 

 

Left="" NavigateUrl="" Top="" Behavior="Default">

 

 

 

 

 

</telerik:RadWindow>

 

 

 

 

 

</Windows>

 

 

 

 

 

</telerik:RadWindowManager>

~/UserControls/TeknikServis.ascx.vb
No code

 

Sebastian
Telerik team
 answered on 05 Dec 2008
0 answers
53 views
1 answer
111 views
Hi,

I just created a new 3.5 project in Visual Studio.2008. I want to drag a RadControl Calendar onto the form but all the "RadControls for ASPNET AJAX Q3" are dimmed in the toolbox.

I tried right clicking on the project in Solution Explorer and went to properties to confirm that I'm using 3.5 and not 2.0 for my project. Then I right clicked on the toolbox and clicked Choose Items. The window opens. I went to the .NET Framework Components Tab and all the RadControls are there and checked. Below it says version 2.0.0.0 for the .NET Framework Components. I'm not sure why I don't get 3.5.0.0.

I know that if you have a 2.0 project and have controls that are built for 3.5 they will be dimmed. But that is not the case here. I installed the 3.5 RadControls.

How can I solve this so I can test the calendar Control before deciding to purchase the RadControls?

Thanks,

Jim
Simon
Telerik team
 answered on 05 Dec 2008
1 answer
79 views
The default structure is that the children are shown under the parent like this:

- Parent
    Child 1
    Child 2
    Child 3

 

Is het also possible to show the child records above the parent? Like this:

    Child 1
    Child 2
    Child 3
- Parent

Princy
Top achievements
Rank 2
 answered on 05 Dec 2008
2 answers
153 views
Hi Everyone,

I have a page that has a header, footer, and left and right panels.  The header and footer are divs and the left and right panels are RadPanes.  There is a TreeView in my left hand RadPane.  When a node is clicked, a page will load in the right hand side RadPane.  One page that loads is a Grid with a Master and Detail table.  However, when ever the Grid expands (vertically) the length of the RadPane, vertical AND horizontal scrollbars appear (the scrollbars are part of the RadPane, not the browser.)  The vertical one is ok, but it is laying over the grid and cutting some of it off causing the horizontal scrollbar to appear.  I'd like to have it work so that no horizontal scrollbar appears and the vertical scrollbar doesn't cut any of the grid off.  Again, any help is greatly appreciated.

-Matt
Dimo
Telerik team
 answered on 05 Dec 2008
1 answer
111 views
has the virtual scrolling changed in ASP.NET AJAX 2008.3 1125?
What exactly is used for?
I just updated the controls and I get wierd behavior with it.. the values tend to be-reloaded and duplicated.
thanks again
Simon
Telerik team
 answered on 05 Dec 2008
1 answer
202 views
Dear Telerik Team
                             I have a RadComboBox with ItemTemplate as a RadTreeView Control. I have got everything working so far. My problem is I am getting stumped on setting a selected value or text on a Page Load Event after I bind the Tree  which th uer have saved previously. I am trying to set the text property RadCombo1.Text = "something" and it's giving me empty string.  May be I am missing something very obvious. What exactly do I have to do to show the text that has been selected and coming out of the database.

Thanks
Himadri
Simon
Telerik team
 answered on 05 Dec 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?