Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
83 views
I have a radgrid and each row has a nestedview.

Inside these nested views, a number of textbox controls are dynamically added using a repeater control.

Some, but not all, of these textboxes require a value to be entered.

If the row is expanded, then validation occurs on the controls that require it. If the row is collapsed, then no validation occurs.

How can I force validation even if the row is collapsed, whether it has ever been expanded or not? As I understand it the nested view isn't loaded until its required? Is there a way to force the nestedviews to be loaded but hidden when the page loads, or can anyone thing of another way around this?

Basically, I need a RadGrid to have a hidden list of controls that are shown when the user expands the row, but need to validate all controls, even if the row hasn't been expanded.


Karl
Top achievements
Rank 1
 answered on 30 Mar 2011
1 answer
80 views
Hi,

I have a menu set to the left of my page inside a pane of the rad splitter. The splitter is working at a 100% height.

The menu can get longer and shorter as the user browses through site, ie: The sub menu items open up underneath the main menu items on the left and extend it.

The problem i am having is this:
 I dont want a scroll bar appearing when the menu is higher than the users viewport, instead I want it to rather display the "GroupSettings" images to scroll the menu. The only problem is it that I dont want to set a fixed height to the GroupSettings option as it will then crop off the menu and look funny if the user viewport is higher than the menu height specified in GroupSettings.

Is there a way to set the value of GroupSettings to 100% height so that it will always sit on the top and bottom edges of the radPane and if the user's viewport becomes smaller than the actual menu height then the scroll buttons will "activate" and the user will be able to scroll the hidden menu items?

I suppose there should be someway to pull the height of the radPane using javascript as it changes and set the groupSettings to use that height. So as you resize the viewport, the radpane height value gets used for the GroupSettings value for the menu?

Your help with this would be greatly appreciated!
arathol
Top achievements
Rank 1
 answered on 30 Mar 2011
1 answer
133 views
Hi,

Can I add  2 data field values from client side in one column.
I need to show a currency value and format in one column which is calculated thorugh stored procedure.

 

<telerik:GridBoundColumn  HeaderText="Currency" DataField="Value" DataField ="Format" UniqueName="SC">

 

 

</telerik:GridBoundColumn>

 


I dont want to add anything in code behind.

Thanks
Princy
Top achievements
Rank 2
 answered on 30 Mar 2011
1 answer
61 views
My employer has a use case that would work great with the self-referencing heirarchy, however, the default behavior does not quite match what we want to do with it, and I'm at a loss for trying to get it working the way I want to.

Our data model is represented using objects (not DataTables or DataSources) and is bound as a list of objects to DataSource in NeedsDataSource.

1. We only want to show root nodes on the root node. From what I can tell, a simple FilterExpression on the MasterTableView fixes this.
2. We want to allow sorting, filtering, paging, grouping, etc.. I was able to fix this by turning this all on and then turning it off on the child grids on pre-render.
3. We want the filters to also apply to the child grids AND include the top level node if a child node matches. <-- this is where I get stuck. I figured a custom filter expression combined with a method on each object that returns true if that item or any child item matches would work, but it doesn't seem as if calling custom methods on the objects is allowed in FilterExpression.
Martin
Telerik team
 answered on 30 Mar 2011
1 answer
101 views
I would like to change the appearance of the expand/collapse button of the split bar to be wider than the split bar itself, making it a tab that overlaps the pane next to it. My goal is to make it more visible than the default appearance. See the attached screen shot for an example of what I am seeking. My attempts at increasing the width of the button also increased the width of the split bar, which I don't want.

Is a style like I am seeking possible?

Thanks!

Dobromir
Telerik team
 answered on 30 Mar 2011
1 answer
143 views
If you look at the screenshot I provided, there is a toolbar with a house, export and import.

If I select a type of bulletin board, must show a button after the house.

My problem is this. The DropDownList is in a RadAjaxPanel and ToolBar is a external. I can not use this example because RadAjaxManager content-year white space is dynamic. The toolbar is always present in any important case.


How do I select if "Important messages", my toolbar is refreshed as if I did not RadAjaxPanel everything works.
Maria Ilieva
Telerik team
 answered on 30 Mar 2011
7 answers
218 views
Hello,

I have created a usercontrol where I show an overview of rows from an entity. So far all this entities had a hierarchie (parentid). Now I have an entity (table) without a hierarchie. In other words, the treelist only have to show one level. Because I want to reuse this usercontrol I like to know if it is possible. I had removed the property ParentDataKeyNames but that the Exception:

KeyNames collection length must match ParentKeyNames collection length.


Is it possible what I want?

Kind regards,

Patrick
Sebastian
Telerik team
 answered on 30 Mar 2011
1 answer
64 views
I am using a popup edit form with a form template.  I found the javascript to center the popup window which is working perfectly.  However, I cannot seem to get the bottom of the form to fit within the popup window.  It overflows on the bottom.  I have tried setting the height of the popup window in the popupsettings and also setting it in the javascript with no difference.  How do I tell the FormTemplate not to overflow the bottom of the popup window?  I am attaching a picture of what I mean.

thanks!
Pavlina
Telerik team
 answered on 30 Mar 2011
2 answers
167 views
Hi Telerik

I'm trying to get at node i a treeview to behave as normal, but the user must not be able to change the nodes checked state.
Is it posible to make a node "ReadOnly" but behave as normal?

I've made a small test project to show that i'm looking for.

Hope you understand my problem.

The Html
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadTreeView.Default" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="True" 
            TriStateCheckBoxes="True" DataFieldID="id" DataFieldParentID="Parrentid" 
            onnodedatabound="RadTreeView1_NodeDataBound" CheckChildNodes="true">
              
        </telerik:RadTreeView>
    </div>
    </form>
</body>
</html>


Code behind
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
  
namespace RadTreeView
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            RadTreeView1.CheckBoxes = true;
            RadTreeView1.DataSource = TreeDataItem.GetTreeData();
            RadTreeView1.DataBind();
        }
  
        protected void RadTreeView1_NodeDataBound(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e)
        {
            TreeDataItem _node = e.Node.DataItem as TreeDataItem;
  
            e.Node.Text = _node.Text;
            //e.Node.Checkable = !_node.ReadOnly;
            e.Node.Checked = _node.Selected;
  
            if (_node.ReadOnly)
            {
                e.Node.ImageUrl = "CheckedCheckbox.jpg";
                e.Node.Checked = true;
                e.Node.Enabled = false;
                e.Node.Attributes.Add("style", "Color: #000000;");
            }
        }
    }
}

Class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
  
namespace RadTreeView
{
    public class TreeDataItem
    {
        private string _text;
  
        public string Text
        {
            get { return _text; }
            set { _text = value; }
        }
  
        private int _id;
  
        public int ID
        {
            get { return _id; }
            set { _id = value; }
        }
  
        private int _parrentId;
  
        public int ParrentId
        {
            get { return _parrentId; }
            set { _parrentId = value; }
        }
  
        private bool _readOnly;
  
        public bool ReadOnly
        {
            get { return _readOnly; }
            set { _readOnly = value; }
        }
  
        private bool _selected;
  
        public bool Selected
        {
            get { return _selected; }
            set { _selected = value; }
        }
  
  
        public TreeDataItem (int id, int parrentId, string text, bool Readonly, bool selected)
        {
            _id = id;
            _parrentId = parrentId;
            _text = text;
            _readOnly = Readonly;
            _selected = selected;
        }
  
        public static List<TreeDataItem> GetTreeData()
        {
            List<TreeDataItem> data = new List<TreeDataItem>();
  
            data.Add(new TreeDataItem(1, 0, "Beer", false, false));
            data.Add(new TreeDataItem(2, 1, "Carlsberg", false, true));
            data.Add(new TreeDataItem(3, 1, "Heineken", false, false));
            data.Add(new TreeDataItem(4, 0, "Food", false, false));
            data.Add(new TreeDataItem(5, 4, "Burger", false, true));
            data.Add(new TreeDataItem(6, 4, "Pizza", false, false));
            data.Add(new TreeDataItem(7, 4, "Sandwitch", true, true));
            data.Add(new TreeDataItem(8, 4, "Spagetti", false, false));
            return data;
        }
    }
}
Jakob
Top achievements
Rank 1
 answered on 30 Mar 2011
9 answers
150 views
I have an application with master page, I placed rad-scheduler under RadAjaxPanel on my content page with ScriptManager/RadScriptManager. When I insert any appointment it works fine but when i update any appointment it does not work, it fails to update.
Similarly when I do the same work in my simple ASPX page without any master page it works fine for me.
In both case i use SQLDataSource wizard to select,insert,update and delete from RadScheduler.

Please help me out I am stuck.
Urgent response is appreciated 

Regards,
Mohsin
Veronica
Telerik team
 answered on 30 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?