Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
136 views
Hi Telerik team,

I have an issuew ith the grid that I can't figure out. I have a RadTabStrip with MultipPage and each has a grid in it. The grids work perfect initially when I load them through Ajax. However, when I change tabs (they are cached now), the grids lose their scrollbars! What is causing this? Also, radgrid has a default.skin file that applies styles to all grids.

 
<div >
    <telerik:RadTabStrip ID="test" AutoPostBack="true" SelectedIndex="0"
        runat="server" MultiPageID="mpTest
"
OnTabClick="test_TabClick" SkinID="MySkinID">
        <Tabs>
            <telerik:RadTab Text="tab 1" />
            <telerik:RadTab Text="tab 2" />
            <telerik:RadTab Text="tab 3" />
        </Tabs>
    </telerik:RadTabStrip>
</div>
<div>
    <telerik:RadMultiPage ID="mpTest" SelectedIndex="0" runat="server"
        OnPageViewCreated="mpTest_PageViewCreated">
    </telerik:RadMultiPage>
</div>

<telerik:RadGrid runat="server" >
    <MasterTableView ShowHeadersWhenNoRecords="False"/>
    <HeaderStyle HorizontalAlign="Left" VerticalAlign="Bottom"></HeaderStyle>  
    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle>
    <AlternatingItemStyle HorizontalAlign="Left" VerticalAlign="Top"></AlternatingItemStyle>
    <ClientSettings EnableRowHoverStyle="False">
        <Scrolling AllowScroll="True" SaveScrollPosition="True" UseStaticHeaders="True" ScrollHeight="500px" />
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
</telerik:RadGrid>
Venelin
Telerik team
 answered on 10 Sep 2013
1 answer
85 views
HI, Am using a pie chart where I have to show a value on chart. I am able to show the value "Value1" but not value2. How can I achieve to show both these values?

<Series>
                                            <telerik:ChartSeries Name="Series0" Type="Pie" DataYColumn="value1" DataYColumn2="value2" >
                                                <appearance legenddisplaymode="lables">
                                                    <FillStyle FillType="Solid" ">
                                                    </FillStyle>
                                                    <TextAppearance TextProperties-Color="Black">
                                                    </TextAppearance>
                                                    <Border Color="" />
                                            </appearance>
                                            </telerik:ChartSeries>
                                        </Series>

In code behind: am trying 
radchart1.Series[0].DefaultLabelValue = "#Y, #Y2";


Please help me on this.
Petar Kirov
Telerik team
 answered on 09 Sep 2013
2 answers
276 views
Hi there. I have an aspx page that initially shows a treeview. When a child node on the tree is pressed, i want a RadGrid on the page to be popualated. I set the datasource and do a databind() call but it doesn't seem to be working. I've also tried using needDataSource but it has the same problem. Here's my code:



using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Telerik.Web.UI;
using MCMwebapp.Utilities;
 
namespace MCMwebapp
{
    public partial class frmLookupTables : System.Web.UI.Page
    {
 
 
        int CurrentDemog;
        bool LookupDataLoaded;
        bool isOPS = false;
        string selectedNode;
 
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
            
            }
             
        }
    
 
 
        protected void LookupsTree_NodeClick(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e)
        {
            
            RadTreeNode currNode = e.Node;
            if (currNode.Nodes.Count == 0) {
                if (currNode.ParentNode.Text != "Treatments" && !String.IsNullOrEmpty(currNode.Text))
                {
                    selectedNode = currNode.Text;
                    Session["selectedNode"] = selectedNode;
                    loadLookupGrid();
 
                }
 
            }
            
        }
 
 
        protected void loadLookupGrid()
        {
            using (ServiceReference1.Service1SoapClient myService = new ServiceReference1.Service1SoapClient())
            {
                if (Session["selectedNode"] != null)
                {
                    LookupGrid.DataSource = myService.getTable();
                    LookupGrid.Databind();
 
                }
            }
         
 
    }
}

My aspx code:

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmLookupTables.aspx.cs" Inherits="MCMwebapp.frmLookupTables" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
    <asp:Label ID="LookupLabel" runat="server"></asp:Label>
 
 
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="LookupGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="LookupGrid" LoadingPanelID="TablePanel"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
     <telerik:RadAjaxPanel ID="TreePanel" runat="server" HorizontalAlign="NotSet" style="background-color:#808080; float:left" Width="40%">
         
 
         <telerik:RadTreeView ID="LookupsTree" runat="server" OnClientNodeClicked="ClientNodeClicked" OnNodeClick="LookupsTree_NodeClick">
           
        </telerik:RadTreeView>
 
    </telerik:RadAjaxPanel>
 
 
 
     <telerik:RadAjaxLoadingPanel ID="TablePanel" runat="server" HorizontalAlign="Right"
        style="background-color:#E92326; float:right" Width="40%" >
        
    
         <telerik:RadGrid ID="LookupGrid" runat="server" BackColor="Gray"
             BorderColor="#404040" BorderStyle="Solid" CellSpacing="0" GridLines="None"
             Skin="MetroTouch">
             
             <FilterMenu EnableImageSprites="False">
             </FilterMenu>
         </telerik:RadGrid>
      
        
     
         
     </telerik:RadAjaxLoadingPanel>
         
 
   <script type="text/javascript">
       function ClientNodeClicked(sender, eventArgs) {
           var node = eventArgs.get_node();
           node.toggle();
       }
       </script>
 
</asp:Content>

Any ideas? thanks


Will
Top achievements
Rank 1
 answered on 09 Sep 2013
5 answers
127 views
Hi!

I might have found a bug in your demo application and this bug is also haunting my application.
In the demo, found here: http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/contextmenu/defaultcs.aspx.,
you can right clikc on a node and create a new folder.

Now, if you change the default text, a postback will occure and the server side event "OnNodeEdit" will be triggered. But, if you dont change the text and just press enter, no server side event will occure and the node will not be saved.

How do I fix this?

Regards,
Per
Boyan Dimitrov
Telerik team
 answered on 09 Sep 2013
3 answers
94 views
Hey guys,

Not getting very helpful information from the debugger on this, but we have a situation where one RadWindow  has a button that calls a function that opens another RadWindow and then position it using "moveTo". This works very well in Chrome but in IE 8 it throws the following exception:

Invalid argument.  Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_radScriptManagerCommon_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3acaf9918e-87b7-4f16-b8e8-f81c9ff8f4ab%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a8a277cf4-155d-4ba9-b3c0-d6f62646e5f2%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a24ee1bba%3a19620875%3a874f8ea2%3af46195d3%3acda80b3%3a383e4ce8%3a92fe8ea0%3afa31b949%3a490a9d4e%3abd8f85e4%3ae330518b%3a2003d0b8%3a1e771326%3ac8618e41%3a8e6f0d33%3a7165f74%3aaa288e2d%3a58366029%3ae524c98b, line 6 character 63497

The debugger points to a highlighted piece of code that appears to be deep inside some Microsoft stuff:

a.top=d+"px"

I've done quite a bit of searching but haven't seen anyone with the same problem. I did find a post where someone had a similar error as the one above, but it was with opening a RadWindow. Most of the stuff I've seen have recommend to add a setTimeout, but that hasn't worked.

Any help would be greatly appreciated. Thanks.
Brixel
Top achievements
Rank 1
 answered on 09 Sep 2013
2 answers
160 views
Is it possible to add words to the dictionary on the fly? It's infeasible to know the words beforehand. If not, how do I prevent the red squiggles from appearing?
Matthew
Top achievements
Rank 1
 answered on 09 Sep 2013
1 answer
211 views
I have a ASP:DataList with asp:Linkbutton in a ItemTemplate that i try to open a telerik:RadWindow.
I want to send a id with the url using OnClientClick="radopen

This work fine for me, i can pick upp the id 3:
<asp:Linkbutton ID="lbVisa" OnClientClick="radopen('visa.aspx?id='+'3','RadWindow1');return false;" Text="Läs mer..." runat="server" />

But i want to bind the id with the Container.DataItem in the OnClientClick="radopen, but get "The server tag is not well formed.".
<asp:Linkbutton ID="lbVisa" OnClientClick="radopen('visa.aspx?id='+'<%# DataBinder.Eval(Container.DataItem, "id") %>','RadWindow1');return false;" Text="Läs mer..." runat="server" />
What do i wrong?
Please excuse my bad english ....

Marin Bratanov
Telerik team
 answered on 09 Sep 2013
1 answer
267 views
Hello, I used this demo:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/listviewsliderwindowrotator/defaultcs.aspx

 to make a photo gallery, but while load small file (about 100 KB) I always get the error "Out of memroy"

Thanks in advance.

Deyan Enchev
Telerik team
 answered on 09 Sep 2013
1 answer
86 views

I am trying very hard to make my cascading select decorate using telerik form decorator. Here is my js,


var attributes = s.attributes;
 for (var i = 0, iLen = attributes.length; i < iLen ; i++) {
     $elem.append('<option ' + (selectedValue === attributes[i].id ? 'selected ' : '') + 'value="' + attributes[i].id + '">' + attributes[i].name + '</option>');
 }


after this I am calling,


formDecorator.decorate($elem[0], false);

It only works first time when the parent select changed(in a cascading select). But after this nothing works. I have tried,


formDecorator.decorate();

and

formDecorator.updateSelect($elem[0]);

Is there is any way to make it work?

Slav
Telerik team
 answered on 09 Sep 2013
1 answer
111 views

Hello

 Is Rad AjaxManager replacement of Script Manger?   for Ajax Calls

Konstantin Dikov
Telerik team
 answered on 09 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?