Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
164 views
hello

in a Radpane how can i remove the dock and collapse icons?

thanks
Luis
Top achievements
Rank 1
 answered on 25 Feb 2010
2 answers
139 views
Hi
I have build a RadGrid with dynamic Colums. When i push the Add or Edit Button i get an Error

Code example
Aspx:
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadGrid ID="RadGridDataList" runat="server" AutoGenerateColumns="False" 
            GridLines="None" > 
            <MasterTableView EditMode="PopUp" CommandItemDisplay="Top" > 
            </MasterTableView> 
        </telerik:RadGrid> 
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"   
            ConnectionString="<%$ ConnectionStrings:MT_LDHORep_NewTestConnectionString %>"   
            SelectCommand="SELECT [ROADMAP_PART_NAME], [ROADMAP_PART_DESC], [ROADMAP_PART_ID] FROM [DHO_ROADMAP_PART]">  
        </asp:SqlDataSource> 
    </div> 
    </form> 
 

Code behinde:
        protected void Page_Load(object sender, EventArgs e)  
        {  
            if (!IsPostBack)  
            {  
                RadGridDataList.DataSourceID = "SqlDataSource1";  
                RadGridDataList.MasterTableView.DataKeyNames = new string[] { "ROADMAP_PART_ID" };  
 
                RadGridDataList.MasterTableView.Columns.Clear();  
 
                GridEditCommandColumn editColl = new GridEditCommandColumn();  
                //editColl.UniqueName = "EditButton";  
                editColl.ButtonType = GridButtonColumnType.ImageButton;  
                editColl.ItemStyle.Width = new Unit(1, UnitType.Percentage);  
                RadGridDataList.MasterTableView.Columns.Add(editColl);  
 
 
                GridBoundColumn boundColumn;  
                boundColumn = new GridBoundColumn();  
                RadGridDataList.MasterTableView.Columns.Add(boundColumn);  
                boundColumn.DataField = "ROADMAP_PART_NAME";  
                boundColumn.HeaderText = "Name";  
                boundColumn = new GridBoundColumn();  
                RadGridDataList.MasterTableView.Columns.Add(boundColumn);  
                boundColumn.DataField = "ROADMAP_PART_DESC";  
                boundColumn.HeaderText = "Description";  
 
            }  
        }  
 

What is wrong

Regards
Markus
macy
Top achievements
Rank 1
 answered on 25 Feb 2010
5 answers
174 views
I'm trying to use this example, but cannot get it to work:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultcs.aspx

I'm thinking it's related to the filter in the page load. I'm using a list rather than a database table, and it check for dbnull. I tried using an empty string, but the grid doesn't come up at all when I do.

My list structure is like this:
        class fooMetrics
        {
            public string Metric { get; set; }
            public string CurrentValue { get; set; }
            public string PreviousValue { get; set; }
            public string Change { get; set; }
            public string Category { get; set; }
        }

Here is the page load reference I am referring to:
        protected void Page_Load(object sender, EventArgs e)
        {
            ScriptManager.RegisterClientScriptInclude(this, this.GetType(), "script1", ResolveUrl("~/js/KeyPerformanceIndicators.js"));

            if (Assembly.GetAssembly(typeof(ScriptManager)).FullName.IndexOf("3.5") != -1)
            {
                gridConversion.MasterTableView.FilterExpression = @"it[""Category""] = Convert.DBNull";
            }
            else
            {
                gridConversion.MasterTableView.FilterExpression = "Category IS NULL";
            }
        }

This line is what causes the grid to disappear:
  gridConversion.MasterTableView.FilterExpression = @"it[""Category""] = Convert.DBNull";

Any ideas? My category field would be an empty string if there is no parent.















Veli
Telerik team
 answered on 25 Feb 2010
1 answer
175 views
Hey,

I having trouble showing a custom image as background-image for ".rtPlus" and ".rtMinus". The image is show when the treenode is not expanded, but on hover and when the menu is expanded the image disappear.

Link to my page

I added this in my css file:
.RadTreeView .rtPlus  {background-image: url('../images/treeview/plus.png') !important; height: 10px !important; width: 12px !important; }
.RadTreeView .rtPlus:hover { background-image: url('../images/treeview/plus.png') !important; height: 10px !important; width: 12px !important; }
.RadTreeView .rtMinus {background-image: url('../images/treeview/minus.png') !important; height: 10px !important; width: 12px !important;}
.RadTreeView .rtMinus:hover {background-image: url('../images/treeview/minus.png') !important; height: 10px !important; width: 12px !important;}

Could anyone help me please?


Yana
Telerik team
 answered on 25 Feb 2010
3 answers
124 views
Is there a way to make the rotate cycle over a directory of .htm files and display them? I've tried a few things so far but haven't had any luck.
Fiko
Telerik team
 answered on 25 Feb 2010
1 answer
132 views
I have a simple form with a radtextbox and button and there is also a RadAjaxManager (which is set up correctly with the control ids for the textbox and button) on the page. When ajax is enabled, the textbox's text property is losing any vbcrlfs that were entered ( text.contains(vbcrlf) is false) . If i disable ajax, everything works correctly. I tried using a asp textbox but am seeing the same behavior. Is this an issue with ajax? Is there a workaround for this?


Iana Tsolova
Telerik team
 answered on 25 Feb 2010
5 answers
143 views
I am collaborating on a project with another department, which purchased their Telerik controls separate from my department. We keep on losing the reference to the telerik controls as we open the project from Source Safe, updating our local project in the process. Is this due to the different licenses? This is not a major problem, just a minor inconvenience - we have to delete the reference, then add it back.  Is there a way to avoid  this? 

Thanks

Tom W.
Fiko
Telerik team
 answered on 25 Feb 2010
3 answers
173 views
I need to be able to process a schedule click event serverside, is there any way to do this?  Also, ideally I need access to the date and time that coorespond with where they clicked in the schedule.  I've tried all of the serverside events but can't find one for this.

Thanks

Chris
T. Tsonev
Telerik team
 answered on 25 Feb 2010
7 answers
354 views
Hi,

The latest version of the scheduler (Q3 2009) offers new context menu feature, which is great. The only problem that I am having is that command names changed since the previous version ("QuickInsert" is now "CommandAddAppointment"). Is there a list of all the built-in commands somewhere? I am trying to build a context menu with "Quick insert", "Detailed insert", "Insert recurring event", etc., but I don't know what commands to use. I don't think the demo http://demos.telerik.com/aspnet-ajax/scheduler/examples/contextmenu/defaultcs.aspx lists all the available commands, does it?

Thanks,
Julia
Peter
Telerik team
 answered on 25 Feb 2010
2 answers
86 views
Is it possible, from Javascript, to pass an extra parameter along with the expand()-function to the serverside OnNodeExpand-method?

I'm building a tree using TreeNodeExpandMode.ServerSideCallBack and trying to implement an 'Expand all'-function in the contextmenu. I want to add the branch on the serverside instead of multiple calls to expand(). This all works well, except I can't differentiate the 'default' OnNodeExpand-event from the 'expand all'-event. I've tried using a textfield but as it's an Ajax-request it is not transferred to the server. I've also tried setting a custom attribute on the RadTreeNode but, again, it seems this isn't transferred. Any ideas?
 
I'm using the expand()-function because I'd like to preserve the loading-animation.

 

FU
Top achievements
Rank 2
 answered on 25 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?