Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
In javascript, list.get_element() is returning a SPAN instead of the whole DOM element containing items.
If this is the intended behavior, how do I get the full DOM element?

Thanks!
Vasil
Telerik team
 answered on 13 May 2011
3 answers
127 views
Hello.
I have a question if there is some way to pass some information from server WCF to client combobox object. for example using RadComboBoxData.Context.

The situation is^ combobox populated with two queries in single WCF method.
I want to know how match items werel loaded by each query, to use this information in "show more" to organize some kind of paging.
var result = new RadComboBoxData();
result.Context["users"] = context.ContainsKey("users") ? Convert.ToInt32(context["users"]) : 0 + userList.Count();
result.Context["contacts"] = context.ContainsKey("contacts") ? Convert.ToInt32(context["contacts"]) : 0 + userList.Count();
return result;

But there is no "users" and "contacts" keys in second request, only standart text and numberOfItems.
Is there anything I've missed?

Thanks

Helen
Telerik team
 answered on 13 May 2011
2 answers
102 views
Hey, I would like to create a RadWindow and set some properties, like an id or a name so I could identify it. What I'm trying to do is a taskbar and I want to associate icons to a Telerik Window, and for that I need to set an id to my windows. I saw that we can set title, width and height with Javascript, is there a list of properties somewhere or do we have to guess it  by "trial and error" method ?

Thanks in advance,
Francis
Francis
Top achievements
Rank 1
 answered on 13 May 2011
2 answers
50 views
Hi folks,

I have a question for you. Does anyone know how to create a window (via radopen) outside of the current window. Let's said I have a main window where there is a button. When I click on that button, a window appears (SubWindow). What I want is when I click on a second button that's inside of the SubWindow, a another window appears, but on the main window and not in the SubWindow. Is it possible ?
Thank you
David  
David
Top achievements
Rank 1
 answered on 13 May 2011
6 answers
148 views
Hello.

I'm using Telerik ASP.NET Control 2010 Q2. I have a RadMenu created from SiteMap, but, every time when i click on an item, when the page load, the item remains selected, as if to show me the link where I am. How can disable this??

ASPX Menu Code
<telerik:RadMenu ID="rmnuMainMenu" DataSourceID="smdsMenuSource" OnClientItemClicked="OnClientItemClicked" Width="100%" runat="server" OnItemDataBound="rmnuMainMenu_ItemDataBound" OnItemClick="rmnuMainMenu_ItemClick" />
<asp:SiteMapDataSource ID="smdsMenuSource" ShowStartingNode="false" runat="server" />

SiteMap Code
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" enableLocalization="true" >
  <siteMapNode url="" title="Inicio">
    <siteMapNode url="" title="$Resources:Localization, mnuCatalogs">
      <siteMapNode url="~/CatMaterials.aspx" title="$Resources:Localization, mnuMaterials" />
      <siteMapNode url="~/CatTrains.aspx" title="$Resources:Localization, mnuTrains" />
      <siteMapNode url="~/CatBatchSizes.aspx" title="$Resources:Localization, mnuBatchSizes" />
      <siteMapNode url="" title="$Resources:Localization, mnuFC" />
      <siteMapNode url="" title="$Resources:Localization, mnuMI" />
      <siteMapNode url="" title="$Resources:Localization, mnuBPR"  />
    </siteMapNode>
    <siteMapNode url="" title="$Resources:Localization, mnuPreferences" >
      <siteMapNode url="" title="$Resources:Localization, mnuLanguage">
        <siteMapNode url="" image="../Img/mxFlag.png" title="$Resources:Localization, mnuSpanish" />
        <siteMapNode url="" image="../Img/usFlag.png" title="$Resources:Localization, mnuEnglish" />
      </siteMapNode>
      <siteMapNode url="~/UsersAdmin.aspx" title="$Resources:Localization, mnuUsers" />
    </siteMapNode>
    <siteMapNode url="" title="$Resources:Localization, mnuHelp">
      <siteMapNode url="" title="$Resources:Localization, mnuContents" />
      <siteMapNode url="" title="$Resources:Localization, mnuAbout" />
    </siteMapNode>
  </siteMapNode>
</siteMap>

Item Events Code:
protected void rmnuMainMenu_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
{
    // Store requested language as new culture in the session
    if (e.Item.Text == "Español" || e.Item.Text == "Spanish")
        Session["SelectedCulture"] = "es-MX";
    if (e.Item.Text == "Inglés" || e.Item.Text == "English")
        Session["SelectedCulture"] = "en-US";
 
    // Reload last requested page with new culture
    Server.Transfer(Request.Path);
}
 
protected void rmnuMainMenu_ItemDataBound(object sender, Telerik.Web.UI.RadMenuEventArgs e)
{
    // Load the specific image for every menu item, from the Sitemap information
    e.Item.ImageUrl = ((SiteMapNode)e.Item.DataItem)["image"];
 
    if (e.Item.Level == 0)
    {
        RadMenuItem separator = new RadMenuItem();
        separator.IsSeparator = true;
        separator.Text = "|";
        e.Item.Owner.Items.Insert(e.Item.Index + 1, separator);
    }
}

JavaScript - Close on click code:
<script type="text/javascript">
     // Close RadMenu after click
     function OnClientItemClicked(sender, eventArgs) {
     sender.close();
     }
</script>

Thanks for your answer.
Helen
Telerik team
 answered on 13 May 2011
6 answers
203 views
Hi,

I have a Master Page implemented form, with a RadAjaxPanel and RadAjaxLoadingPanel defined in the Master Page. On the Web Form, I have a RadUpload, and an button to initiate the upload. I've seen a number of examples on doing uploads using various combinations of these, but not all three as described above. Is there an example of how to do this?

I had this working using AjaxPanel, and you simply added the control to the Trigger collection as a postback trigger. I'm looking for something analagous to this.

Steve
Maria Ilieva
Telerik team
 answered on 13 May 2011
4 answers
58 views
I'm using GroupByExpressions and my situation calls for the Groups to not collapse and I set the AllowGroupExpandCollapse="false" in my RadGrid's ClientSettings, but doesn't have any affect on the ability to expand/collapse the Groups.

Isn't this supposed to prevent the user from expanding or collapsing a Group section?
Pavlina
Telerik team
 answered on 13 May 2011
1 answer
68 views
I am working for the first time with the radgrid drag and drop feature; I believe I do have it working properly as I can view the row count growing as I drop new items. However, my grid does not reflect this. My code is below. PLEASE HELP!

Imports System.Data
 
Partial Class Sales_SalesPresentationGenerator
    Inherits System.Web.UI.Page
    Dim ds As New DataSet
    Dim TitleName As DataColumn = New DataColumn("Title"Type.GetType("System.String"))
    Dim TitleID As DataColumn = New DataColumn("TitleID"Type.GetType("System.Int32"))
    Dim Territory As DataColumn = New DataColumn("Territory"Type.GetType("System.String"))
    Dim TerritoryID As DataColumn = New DataColumn("TerritoryID"Type.GetType("System.Int32"))
    Dim Medium As DataColumn = New DataColumn("Medium"Type.GetType("System.String"))
    Dim MediumID As DataColumn = New DataColumn("MediumID"Type.GetType("System.Int32"))
    Private Property dt As DataTable
        Get
            Return ViewState("dt")
        End Get
        Set(value As DataTable)
            ViewState("dt") = value
        End Set
    End Property
 
    Protected Sub Page_Load(sender As Object, e As System.EventArgsHandles Me.Load
        If Not IsPostBack Then
            dt = New DataTable()
            dt.Columns.Add(TitleID)
            dt.Columns.Add(TitleName)
            dt.Columns.Add(TerritoryID)
            dt.Columns.Add(Territory)
            dt.Columns.Add(MediumID)
            dt.Columns.Add(Medium)
 
            SelectedGrid.DataSource = dt
            SelectedGrid.DataBind()
        End If
    End Sub
 
    'Add to selected
    Protected Sub TitlesGrid_RowDrop(sender As Object, e As Telerik.Web.UI.GridDragDropEventArgsHandles TitlesGrid.RowDrop
        'e.DraggedItems.Count
        For Each r In e.DraggedItems
 
            Dim temp As DataRow
            temp = dt.NewRow()
 
            temp.Item("TitleID") = CType(CType(r.Item("TitleID"), TableCell).Text, Integer)
            temp.Item("Title") = CType(r.Item("Title"), TableCell).Text
            temp.Item("Medium") = CType(r.Item("Medium"), TableCell).Text
            temp.Item("MediumID") = CType(CType(r.Item("MediumID"), TableCell).Text, Integer)
            temp.Item("Territory") = CType(r.Item("Territory"), TableCell).Text
            temp.Item("TerritoryID") = CType(CType(r.Item("TerritoryID"), TableCell).Text, Integer)
            dt.Rows.Add(temp)
            ' MsgBox(dt.Rows.Count)
        Next
        SelectedGrid.Rebind()
    End Sub
 
    'Remove from Selected
    Protected Sub SelectedRowDrop(sender As Object, e As Telerik.Web.UI.GridDragDropEventArgsHandles SelectedGrid.RowDrop
 
    End Sub
End Class




<%@ Page Title="" Language="VB" MasterPageFile="~/All/Site.master" AutoEventWireup="false" CodeFile="SalesPresentationGenerator.aspx.vb" Inherits="Sales_SalesPresentationGenerator" %>
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadFilter ID="RadFilter1" runat="server" 
        CssClass="RadFilter RadFilter_Default RadFilter RadFilter_Default RadFilter RadFilter_Default " 
        FilterContainerID="TitlesGrid" Skin="Vista">
    </telerik:RadFilter>
<div style="width:48%float:left">
    
    <telerik:RadGrid ID="TitlesGrid" runat="server" AllowPaging="True" 
        AllowSorting="True" DataSourceID="TitlesDataSource" GridLines="None" 
        ShowGroupPanel="True" Skin="Vista" AllowMultiRowSelection="True">
        <ClientSettings AllowDragToGroup="True" AllowRowsDragDrop="True">
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
<MasterTableView AutoGenerateColumns="False" DataSourceID="TitlesDataSource">
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
 
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <Columns>
        <telerik:GridBoundColumn DataField="Title" HeaderText="Title" 
            SortExpression="Title" UniqueName="Title">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="TitleID" HeaderText="TitleID" 
            SortExpression="TitleID" UniqueName="TitleID" Visible="False" 
            DataType="System.Int32">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Synopsis" HeaderText="Synopsis" 
            SortExpression="Synopsis" UniqueName="Synopsis" Visible="False">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Genre" HeaderText="Genre" 
            SortExpression="Genre" UniqueName="Genre">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Territory" HeaderText="Territory" 
            SortExpression="Territory" UniqueName="Territory">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="TerritoryID" DataType="System.Int32" 
            HeaderText="TerritoryID" SortExpression="TerritoryID" 
            UniqueName="TerritoryID" Visible="False">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Medium" HeaderText="Medium" 
            SortExpression="Medium" UniqueName="Medium">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="MediumID" DataType="System.Int32" 
            HeaderText="MediumID" SortExpression="MediumID" UniqueName="MediumID" 
            Visible="False">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="AvailDate" DataType="System.DateTime" 
            HeaderText="AvailDate" SortExpression="AvailDate" UniqueName="AvailDate">
        </telerik:GridBoundColumn>
    </Columns>
</MasterTableView>
 
<HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
    </telerik:RadGrid>
    <asp:AccessDataSource ID="TitlesDataSource" runat="server" 
        DataFile="~/App_Data/PDF GENERATOR DATA.accdb" 
        SelectCommand="SELECT * FROM [Avails]"></asp:AccessDataSource>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" 
        InitialDelayTime="5" MinDisplayTime="5" Skin="Default" Transparency="20">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
        DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="SelectedGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="SelectedGrid" />
                    <telerik:AjaxUpdatedControl ControlID="TitlesGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="TitlesGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="SelectedGrid" />
                    <telerik:AjaxUpdatedControl ControlID="TitlesGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
</div>
<div style="width:48%float:left">
    <telerik:RadGrid ID="SelectedGrid" runat="server" Skin="Vista" 
        AllowMultiRowSelection="True">
        <ClientSettings AllowRowsDragDrop="True">
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
<MasterTableView>
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
 
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
</MasterTableView>
 
<HeaderContextMenu EnableImageSprites="True" CssClass="GridContextMenu GridContextMenu_Vista"></HeaderContextMenu>
    </telerik:RadGrid>
</div>
    </asp:Content>
 
Tsvetina
Telerik team
 answered on 13 May 2011
2 answers
407 views
Hi....

I have Created on dyanamically Radtrabstrip with multipage option....

If my Radtabstrip has two tab tab1 and tab2.

if i select tab2 ...and my page gets post back...then i want to select tab1 and multipage1 of tab1...

for this i have written code tabstrip.selectindex=0; mutipage.selectedindex=0...

but is not woking... tab2 is remain select as it is....
Cori
Top achievements
Rank 2
 answered on 13 May 2011
1 answer
60 views
complince  report
100   100% CPOE 01
100    100% CPOE 02
75     75% CPOE 03
78    78% CPOE 04
70    70% CPOE 05
0     0% CPOE 05a

rdChart2.Series(0).Clear()

rdChart2.Series(0).DataXColumn =

"Compliance"

 

rdChart2.Series(0).DataYColumn =

"Report"

 

rdChart2.DataSource = dailDataSet

rdChart2.DataBind()

rdChart2.PlotArea.XAxis.AutoScale =

False

 


In this data not binded to rad chart ----------------in these  i want to display reports column  in pie daigaram -----------------
Plz any tell me
Vladimir Milev
Telerik team
 answered on 13 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?