Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
323 views
I need to have a status dropdown in each row of my RadGrid. This is something I want displayed and functional at all times, not just in edit mode. What I've done so far is use a template column with a dropdownlist inside, hard-coding the 3 status options. On the radgrid_ItemDataBound I grab the data row and set the selected value of the dropdown based on the data from the server. Now I need to fire and update when the dropdown is changed. I can point the dropdownlist to fire a Public Sub from the OnSelectedIndexChanged property but I need to it pass another value from the datarow. My first thought was to programmatically add in the status items w/ a unique id pulled from the database attached as the corresponding value but for some reason, it no longer fires the OnSelectedIndexChanged event.

Any ideas on how this can be achieved?
 
Richard
Top achievements
Rank 1
 answered on 20 Feb 2012
3 answers
134 views
I have a RadGrid that has the following clientSettings.

<ClientSettings>
   <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="700"    EnableVirtualScrollPaging="false" SaveScrollPosition="false" />
</ClientSettings>

So I want the vertical scroll to appear when the Grid grows past the 700 height I have specified in the scrollHeight. This works fine. The problem I'm running into is that the horizontal scrollbar is always appearing at the location of the max scrollHeight (700). So If my grid has 2 rows the horizontal scroll is way down the page and there is a bunch of white space filling in the space between the bottom of the 2nd row and the actual Horizontal scroll bar.

Any help or ideas would be appreciated. If you need more code I can paste more but the issue seems pretty clear and I was hoping for a fairly simple fix.

Thanks,

Julian
Julian
Top achievements
Rank 1
 answered on 20 Feb 2012
1 answer
649 views
Hi,

I am creating a demo in rad Bubble Charts. I am facing problem in plotting negative values in the X-Axis. Its plotted in the positive quadrant (Refer Attached Images : ExpectedOutput.png, ActualOutput.png). Secondly, I would like to show bubbles with different colors (as "Vary By Colors" option in Excel). Please tell me how can we achieve these in the rad charts.

Thanks in advance,

Karthik
Karthikeyan
Top achievements
Rank 1
 answered on 20 Feb 2012
2 answers
203 views
I have attempted every way possible to reduce the row height of my grid, to no avail. I have tried changing the ItemStyle as such:
<ItemStyle Height="10px" Font-Size="X-Small"></ItemStyle>

I have attempted to change the values in the editor window. and finally, I customised the relative section of the style sheet. Does anyone have any ideas?

I can change every other aspect of the row, including increasing the row height; but the thing just won't shrink.






MfE_Developer
Top achievements
Rank 1
 answered on 20 Feb 2012
1 answer
100 views
Is it possible to collapse (or expand) a group based on the Group's FieldName property?

I have the following in my PreRender function, but it just collapses all groups:

foreach (var gi in rgVendorInvItems.MasterTableView.GetItems(GridItemType.GroupHeader))
{
     gi.SetChildrenVisible(false);
}

Any input would be greatly appreciated!
AJ
Top achievements
Rank 2
 answered on 20 Feb 2012
4 answers
353 views
Hi Telerik Support,

I have created a list of checkbox controls within Radmenu from code-behind with one root node and a list of menu-items directly under this root node with 3 columns - see attachment.  

Test.aspx
<telerik:RadMenu runat="server" ID="RadMenu1" Skin="Vista"
   DataFieldID="ItemId" DataFieldParentID="ParentItemId"
    DataValueField="ItemId" DataTextField="Text" OnClientLoad="OnClientMenuLoaded">
    <DefaultGroupSettings RepeatColumns="3" RepeatDirection="Vertical" />
      </telerik:RadMenu>

Test.aspx.cs
namespace WebApplication1
{
    public partial class ListViewIn_Menu : System.Web.UI.Page
    {
        protected override void OnInit(EventArgs e)
        {
            RadMenu1.ItemTemplate = new TextBoxTemplate();
            base.OnInit(e);
        }
 
 
        protected void Page_Load(object sender, EventArgs e)
        {
               //Construct source list to bind to Menu
                List<MenuSelection> lstV = new List<MenuSelection>();
                MenuSelection lstItm;
                for(int i = 1; i<= 50 ; i++)
                {
                    if (lstV.Count == 0)
                    {
                        lstItm = new MenuSelection();
                        lstItm.ParentItemId = 0;
                        lstItm.ItemId = lstV.Count + 1;
                        lstItm.Checked = false;
                        lstItm.Text = "MenuLevel1";
                    }
                    else
                    {
                        lstItm = new MenuSelection();
                        lstItm.ItemId = lstV.Count + 1;
                        lstItm.ParentItemId = 1;
                        lstItm.Checked = GetSelectedList().Contains(lstItm.ItemId);
                        lstItm.Text = "MenuLevel2_" + (lstV.Count + 1).ToString();
                    }
                    lstV.Add(lstItm);
                }
 
                RadMenu1.DataSource = lstV;
                RadMenu1.DataBind();
 
 
 
        }
 
 
        private List<int> GetSelectedList()
        {
            //Get the selected checkbox text from hidden field (where checkbox is checked)
            List<int> selList = new List<int>();
            foreach (string itm in hidSelectedList.Value.Split(new char[] { '|' }))
            {
                if (!string.IsNullOrEmpty(itm))
                {
                    selList.Add(Convert.ToInt32(itm));
                }
            }
 
            return selList;
        }
 
    }
 
    public class MenuSelection
    {
        public MenuSelection()
        {
        }
 
        public int ItemId { get; set; }
 
        public int ParentItemId { get; set; }
 
        public string Text { get; set; }
 
        public bool Checked { get; set; }
    }
 
    class TextBoxTemplate : ITemplate
    {
        public void InstantiateIn(Control container)
        {
            CheckBox cb = new CheckBox();
            cb.DataBinding += new EventHandler(cb_DataBinding);
            container.Controls.Add(cb);
        }
 
        void cb_DataBinding(object sender, EventArgs e)
        {
            CheckBox target = (CheckBox)sender;
            RadMenuItem item = (RadMenuItem)target.BindingContainer;
            MenuSelection ds = (MenuSelection)item.DataItem;
            target.Checked = ds.Checked;
            target.Text = ds.Text;
            target.ID = "ck";
            target.Attributes.Add("onclick", "OnMenuCheck_Click('" + ds.ItemId.ToString() + "')");
             
        }
    }

My issue is:- 
a) how can I use javascript to read all the text from checkbox (checked) and build a string store in hidden field so that I can access from code-behind.

b) When I check on the root node, all child-nodes will get checked. How to use javascript to read each checkbox in RadMenu?

c) I may add one hidden field together with checkbox in RadMenu then how to read this hidden field's value?

d) You have better way of presenting this design using other control?

I can use normal javascript to read them E.g. alert($get('RadMenu1_i0_i0_ck2').checked); But can I use the method provided by Telerik framework? I afraid this naming format may change in future by Telerik product upgrade. I have tried other methods provided in help file and from this forum with no help.

Anyone can help? Thanks in advanced.
PS
Tan PS
Top achievements
Rank 1
 answered on 20 Feb 2012
0 answers
80 views
I have a Rad tree view inside a RadGrid. The RadTree dissapears when the page is run in Quirks mode in IE. What should I do??

HELP!!!!!

Naupad
Top achievements
Rank 1
 asked on 20 Feb 2012
3 answers
132 views

I have a requirement in which I need to hide the recurrence check box form the Edit Appointment dialog. I wonder if this is possible

Thank you

J

Jose
Top achievements
Rank 1
 answered on 20 Feb 2012
4 answers
172 views
Hi;

I am trying to create a custom scheduler modules for our application, I only want to user the RadSchedulerRecurrenceEditor as you can see in the following code snippet and the image provided. I need to make sure that the Recurrence check box is always checked and its visibility is set to hidden, however I have not been able to come up with a solution to this issue yet. Would you please help me with this issue as I need to get started on this development soon. 

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<asp:Panel ID="pnlDefaultButtonSupport" runat="server" DefaultButton="btnOk">
 
<fieldset class="noborder" style="width: 780px;">
        <telerik:RadSchedulerRecurrenceEditor runat="server" ID="rscr">
    </telerik:RadSchedulerRecurrenceEditor>  
</fieldset>
 
<div class="ActionContainerNoBottom" style="width: 780px">
    <asp:Button ID="btnOk" runat="server" Text="Save" SkinID="CommandButton"/>  
    <asp:Button ID="btnClose" runat="server" Text="Close" PostBackUrl="javascript:GetRadWindow().close();" SkinID="CommandButton" CausesValidation="false"/>
</div>
</asp:Panel>

Thanks;
Jose
Top achievements
Rank 1
 answered on 20 Feb 2012
6 answers
240 views
I have a Scheduler where I need to disable the Recurrence Dialog when the User Clicks on an Appointment to edit it.  I still want to show the edit dialog but not the "Do you want to edit this instance or all instances" of Appointment dialog. 

Thanks!
Rhys
Jose
Top achievements
Rank 1
 answered on 20 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?