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

I have been using Rad Editor in my application. I used it with no toolbars.

I have upgraded to Rad Ajax Rad Editor now. And it has some extra space around the borders of editor.

Those are all some 'wrapper' TDs. I really need to get rid of them. Is there any way you can propose?

Thanks!
Martin
Telerik team
 answered on 20 Jun 2008
1 answer
124 views
Hi, I can't get your Treeview ContextMenu to work under prometheus, have tried another thread for XML loading so now using straight code (another thread has working example using declarative control-side contextmenus, so at least I know that works!).

Using similar code to the help file, can see the population code runs fine through debug, however on the page there is nothing on a right-click (although it looks like they're in the javascript).

        Public Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load 
            If Not Page.IsPostBack Then 
                cntxMenuUserGroup = New RadTreeViewContextMenu() 
                cntxMenuUserGroup.ID = "UGM_UserGroup" 
                Dim menuItem1 As New RadMenuItem() 
                menuItem1.Text = "Remove User From UserGroup" 
                menuItem1.Value = "UGM_User_Remove" 
                cntxMenuUserGroup.Items.Add(menuItem1) 
                Dim menuItem2 As New RadMenuItem() 
                menuItem2.Text = "Add User To UserGroup" 
                menuItem2.Value = "UGM_User_Add" 
                cntxMenuUserGroup.Items.Add(menuItem2) 
                RadTree1.ContextMenus.Add(cntxMenuUserGroup) 
                BuildTree() 
            End If 
        End Sub 
 
        Public Sub BuildTree() 
            dbCon.Open() 
            Dim adapter As New SqlDataAdapter("SELECT blah blah", dbCon) 
            Dim ds As New DataSet 
            adapter.Fill(ds) 
            Dim row As DataRow 
            For Each row In ds.Tables(0).Rows 
                Dim node As New Telerik.Web.UI.RadTreeNode 
                node.Text = CStr(row("UDesc")) 
                node.Value = CStr(row("UVal")) 
                node.ContextMenuID = "cntxMenuUserGroup" 
                RadTree1.Nodes.Add(node) 
                If row("NumRecs") > 0 Then 
                    node.ExpandMode = Telerik.Web.UI.TreeNodeExpandMode.ServerSide 
                Else 
                    node.ExpandMode = Telerik.Web.UI.TreeNodeExpandMode.ClientSide 
                End If 
            Next row 
            dbCon.Close() 
        End Sub 

Why does
                node.ContextMenuID = "cntxMenuUserGroup" 
seem to be ignored? I tried swapping in "UGM_UserGroup" in case of helpfile error but still same.
Phil C
Top achievements
Rank 2
 answered on 20 Jun 2008
0 answers
81 views
I have a tabstrip and a number of multipages. On these multipages are various controls.
The tabstrip is used as a wizard type system, i.e the first (Multipage) has to be posted back, before the 2nd multipage (and second tab) is enabled and so on.
The problem is, on each multipage, I have various RadCombo boxes, which are attached to object datasources, taken from my BLL.
On any of the multipages apart from the Initial one, the combo boxes contain duplicate values.

Does anyone know why this is?
Mick
Top achievements
Rank 1
 asked on 20 Jun 2008
1 answer
163 views
I have a web form that I would like to show multiple RadGrids each with a different data source. Only one grid should be displayed at a time depending on a user action. I've been able to get this to work using Ajax but with multiple PlaceHolders. I just make the unneeded PlaceHolders visible=false. I would like to use a single PlaceHolder.

I'm building my grid structure and setting up ajax programmatically. So, in the Page_Init I build the grid structure for all my grids. I need to do this because in Page_Load I'm adding all the ajax settings to the controls, otherwise all the controls will be null.

When the user action occurs I clear the PlaceHolder, build the specific grid, and add the new grid to the PlaceHolder. The problem is the previous grid is still there and the two grids appear, not just the recent one. It seems like the RadGrid is not clearing from the PlaceHolder when I do this.PlaceHolder1.Controls.Clear().

Any ideas?

Thanks
Jonathan
Veli
Telerik team
 answered on 20 Jun 2008
1 answer
112 views
The problem is normally the details takes a collection object from the parent which is fine in most cases but in this case I have an object for example

class person
{
string name
string job
string description
}

And I want each row to show NAME and JOB and when I expand that row
to should the details I want to show DESCRIPTION.

Is there any easy way to have the detailstable have access to get the DESCRIPTION? 

Hoping there is a cleaner way that using onDataBinding and reassign the datasource?
Veli
Telerik team
 answered on 20 Jun 2008
3 answers
253 views
I'm using the menu control with the WebBlue skin as well as a css class to make some minor adjustments to it (you guys provided the css class to me).  Here's the code below:

Code in CSS file:

div.MenuWithEnds
{
    border-left: solid 1px #69798C;
    border-right: solid 1px #69798C;
    padding-left: 0px;
    padding-right: 0px;
    position:absolute;
    right:10px;
}

Code in ASPX page:

<telerik:RadMenu ID="RadMenu1" runat="server" Skin="WebBlue" Flow="Horizontal" CssClass="MenuWithEnds"> 
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    <Items> 
        <telerik:RadMenuItem id="mnuTools" runat="server" Text="Tools" Value="Tools" ToolTip="Tools" style="z-index:10000;"> 
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem id="mnu2" runat="server" Text="Item2" Value="Item2" NavigateUrl=""> 
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem id="mnu3" runat="server" Text="Item3" Value="Item3" NavigateUrl=""> 
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem id="mnu4" runat="server" Text="Item4" Value="Item4" NavigateUrl=""> 
        </telerik:RadMenuItem> 
        <telerik:RadMenuItem id="mnuLogout" runat="server" Text="Log out" ToolTip="Log out" Value="Logout" NavigateUrl="~/Logout.aspx"> 
        </telerik:RadMenuItem> 
    </Items> 
</telerik:RadMenu> 

My problem is that the left and right padding on each item is too large.  How can I adjust my css class (or add a new css class) so that I can adjust the padding of the menu items?
Alex Gyoshev
Telerik team
 answered on 20 Jun 2008
1 answer
196 views

I have a very simple scenario here, with a Tab strip with two tabs, that changes the datasource of a grid (so it would load different categories of products for example). I am trying to get this to work, and it seems to go well until I click edit to edit a row, because then the whole grid disappears.

Can someone please help me with this. It is very simple I am sure.Where am I going wrong?

// Test.aspx.cs (codebehind)  
using System;  
using System.Collections;  
using System.Configuration;  
using System.Data;  
using System.Linq;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.HtmlControls;  
using System.Web.UI.WebControls;  
using System.Web.UI.WebControls.WebParts;  
using System.Xml.Linq;  
 
using Mariner7.TalentManager;  
using Telerik.Web.UI;  
 
public partial class Test : System.Web.UI.Page  
{  
 
 
    public int OrgID { get; set; }  
    public string Category { get; set; }  
 
    protected void Page_Load(object sender, EventArgs e)  
    {  
        if(!Page.IsPostBack)  
        {  
            Category = RadTabStrip1.Tabs[0].Text;  
            RadGrid1.DataSource = GetDataSource();  
            RadGrid1.DataBind();  
        }  
    }  
 
    protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)  
    {  
        Category = e.Tab.Text;  
        Refresh();  
    }  
 
    public void Refresh()  
    {  
        RadGrid1.DataSource = null;  
        RadGrid1.DataSource = GetDataSource();  
        RadGrid1.DataBind();  
    }  
 
    private object GetDataSource()  
    {  
        ArrayList list = new ArrayList();  
        switch (Category)  
        {  
            case "Cat1":  
                list.Add("item 10");  
                list.Add("item 11");  
                break;  
            case "Cat2":  
                list.Add("item 20");  
                list.Add("item 21");  
                break;  
            default:  
                break;  
        }  
        return list;  
    }  
      
}  
 
--Test.aspx  
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register assembly="RadTabStrip.Net2" namespace="Telerik.WebControls" tagprefix="radTS" %> 
 
<!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 type="text/javascript">  
      function pageLoad() {  
      }  
    </script> 
</head> 
<body> 
    <form id="form1" runat="server">  
      
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadTabStrip1">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1"/>  
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="RadGrid1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
      
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" OnTabClick="RadTabStrip1_TabClick" Orientation="HorizontalTop">  
        <Tabs> 
            <telerik:RadTab Text="Cat1"/>  
            <telerik:RadTab Text="Cat2"/>  
        </Tabs> 
    </telerik:RadTabStrip> 
 
    <telerik:RadGrid   
            ID="RadGrid1"   
            runat="server"   
            GridLines="Horizontal"   
            AutoGenerateEditColumn="true"   
            Skin="WebBlue" > 
        <MasterTableView  AutoGenerateColumns="True" EditMode="InPlace" TableLayout="Auto">  
            <RowIndicatorColumn Visible="False">  
                <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn Visible="False" Resizable="False">  
                <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <Columns> 
            </Columns> 
            <EditFormSettings> 
                <PopUpSettings ScrollBars="None"></PopUpSettings> 
            </EditFormSettings> 
        </MasterTableView> 
    </telerik:RadGrid> 
      
    </form> 
</body> 
</html> 
 
 

Shinu
Top achievements
Rank 2
 answered on 20 Jun 2008
1 answer
104 views
I have wrapped a few controls (labels and a radgrid) in a RadAjaxPanel and set the LoadingPanelID to the ID of a RadAjaxLoadingPanel on the same page.

When the grid is updated the image appear alright, but it does not animate.

This happens regardless if I use either method below:

  <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" Transparency="30" BackColor="#E0E0E0"> 
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.LoadingProgressBar.gif") %>' style="margin-top: 75px;" /> 
  </telerik:RadAjaxLoadingPanel> 
 
  <telerik:RadAjaxLoadingPanel id="LoadingPanel2" Runat="server"> 
    <asp:Image id="Image1" runat="server" ImageUrl="~/Images/loading.gif" /> 
  </telerik:RadAjaxLoadingPanel> 

...it makes no difference if I add the RadAjaxLoadingPanel inside or outside of the RadAjaxPanel.

What am i missing?

Pavel
Telerik team
 answered on 20 Jun 2008
1 answer
127 views
I have got 2 user control on the same page, and they can communicate together.  However, when i put them inside the doc zones they stop working, and all that is accessible is the actual rad control rather then the actual controls inside it also.  is there anyway to get at the controls inside them?

thanks
Petio Petkov
Telerik team
 answered on 20 Jun 2008
3 answers
90 views
I just noticed, while attempting to edit the templates of my doubly nested table, that the 'Edit Template' submenu will only display 15 items, with no way to scroll to more.
I have, 19 items, and as of right now, I can't see the 4 template columns of my deepest table.

I tested that it is a limit, and not my items not being there, by removing 2 items that were visible, and 2 that weren't visible before showed.
Or - am I going insane and have a broken version of visual studio?

Any tips/pointers on how to get more/all the items to display?


Here are the items that it displays
MasterTableView
MasterTableViewEditForm
MasterTableView: Column 0 - TypeID
MasterTableView: Column 1 - CompanyType
Detail table: 0
Detail table: 0EditForm
Detail table: 0: Column 0 - Copmany ID
Detail table: 0: Column 1 - Company Name
Detail table: 0: Column 2 - Address
Detail table: 0: Column 3 - Numbers
Detail table: 0: Column 4 - Website
Detail table: 0: Column 5 - Blurb
Detail table: 0: Column 6 - Independant
Detail table: 0_0
Detail table: 0_0EditForm

Here are the items it doesn't display
Detail table: 0_0: Column 0 - Rep ID
Detail table: 0_0: Column 1 - Rep Name
Detail table: 0_0: Column 3 - Numbers
Detail table: 0_0: Column 4 - Website
Sebastian
Telerik team
 answered on 20 Jun 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?