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

Here I have one radgrid in which I have two boundcolumns and others are I have added dynamically at runtime "GridTemplateColumn" from code behind. In which I have added one check box control in ItemTemplate. Here also I have one save button outside of the radgrid. Now when I am clicking on that save button I can not getting that checkbox added dynamically in columns on click of save button. please assist me for the same.

Adding columns like:

GridTemplateColumn templateColumn = new GridTemplateColumn();

templateColumn.ItemTemplate = new MyTemplate(obj.Name.ToString());

templateColumn.DataField = obj.ActionMenuID.ToString();

templateColumn.HeaderText = obj.Name;

templateColumn.UniqueName = obj.Name;

radgrid1.MasterTableView.Columns.Add(templateColumn);

class MyTemplate : ITemplate  <- Class called at the time of above column creation to generate checkbox under the itemtemplate

 

 

public void InstantiateIn(System.Web.UI.Control container)
{
        checkBox = new CheckBox();
        checkBox.ID = colname;
        container.Controls.Add(checkBox);
    }

 

Now how to get this checkbox on click of save button?

Thanks you,

Regards,

Kaushal Jani

 

 

 


Jaya
Top achievements
Rank 1
 answered on 21 Feb 2015
1 answer
111 views
Tab Strip - Dynamic PageView Creation via AJAX :

I have tried the sample given in telerik site. But the first PageView only loaded. The other 2 tabs doesn't get loaded.
I have used an usercontrol for all the three tabs. Please find the code below.


Home.aspx.cs

  protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void Page_Init(object sender, System.EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                AddTab("RadScheduler");
                AddPageView(RadTabStrip1.FindTabByText("RadScheduler"));
                AddTab("RadGrid");
                // AddPageView(RadTabStripMembersAdditionalInfo.FindTabByText("RadGrid"));
                AddTab("RadHTMLChart");
                //AddPageView(RadTabStripMembersAdditionalInfo.FindTabByText("RadHTMLChart"));

            }
        }

        private void AddTab(string tabName)
        {
            RadTab tab = new RadTab();
            tab.Text = tabName;
            tab.Width = Unit.Pixel(200);
            RadTabStrip1.Tabs.Add(tab);
        }

        protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
        {
            //string userControlName = e.PageView.ID + "CS.ascx";            
            Control userControl = Page.LoadControl("~/_UserControlAdditionalInfo1.ascx");
            userControl.ID = e.PageView.ID + "_userControl";

            e.PageView.Controls.Add(userControl);
        }

        private void AddPageView(RadTab tab)
        {
            RadPageView pageView = new RadPageView();
            pageView.ID = tab.Text;
            pageView.CssClass = "contentWrapper" + tab.Index;
            RadMultiPage1.PageViews.Add(pageView);
            tab.PageViewID = pageView.ID;
        }
        protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
        {
            AddPageView(e.Tab);
            e.Tab.PageView.Selected = true;
        }
        protected void RadTabStripMembersAdditionalInfo_TabClick(object sender, RadTabStripEventArgs e)
        {
            AddPageView(e.Tab);
            e.Tab.PageView.Selected = true;
        }
I Sam Asir
Top achievements
Rank 1
 answered on 21 Feb 2015
2 answers
92 views
Hello,
I am looking for a little info on how to get the rad splitter to shift to accommodate the scrollbars when they dynamically appear.
Currently, my panel only displays scrollbars when required, but when the parent RadPanelItems are expanded and the scrollbars appear the splitter does not shift over to accommodate them and the scrollbar blocks the dropdown arrows from view on the Parent items.

You can see my issue in action here: http://dcmapsa.azurewebsites.net/

Is there a way to have the window resize to fit the scrollbars an the full width of the panelbar items?
Brett
Top achievements
Rank 2
 answered on 21 Feb 2015
2 answers
108 views
Hello,

I have followed the example shown in this article (http://www.telerik.com/support/kb/aspnet-ajax/scheduler/details/implement-related-radcombobox-controls-in-the-advanced-form)  to add two Rad combo boxes to the appointment advanced edit form.  In my case I need to have second combo box load based on the selection of the first combo box.  

I also have code in the parent page FormCreated event to set the default value of the first combo box when the form is shown which is as follows:

                   '--- check for insert / edit mode
                    Select Case e.Container.Mode

                        Case SchedulerFormMode.AdvancedEdit         '--- edit mode
                            '--- fall through

                        Case SchedulerFormMode.AdvancedInsert       '--- insert mode

                            '--- for insert mode we want to select the user in the drop down to match this user

                            '--- get a reference to the drop down
                            cboUser = TryCast(e.Container.Controls(1).FindControl("cboUser"), RadComboBox)

                            '--- set the default user to this user
                            cboUser.SelectedValue = mobjAppointment.UserKey

                    End Select

What I have noticed is happening is that the FIRST time the advanced form is shown the OnSelectedIndexChanged event does NOT fire for the first combo box.  However, upon subsequent inserts / edits the event DOES fire.  If I comment out the code above in the FormCreated event, the OnSelectedIndexChanged event fires the first time as well.

So there appears to be an issue when setting the selected value property of a combo box on the advanced edit form and the OnSelectedIndexChanged event.  I need the code above to set a default value (by user) in the first combo box.  I'm not sure how to work around this.

Thank you.

bhenke
Top achievements
Rank 1
 answered on 21 Feb 2015
0 answers
45 views
I have a listview in a usercontrol that pulls is data from a sql database. Each listviewitem has a button on it that opens a radwindow with another usercontrol that contains a mediaplayer control. I need to pass the listview datakey videoID to the mediaplayer. I have been searching for some assistance on this, and so far I have only seen examples that incorporate radgrid and radwindow without a usercontrol. 
Ashley
Top achievements
Rank 1
 asked on 20 Feb 2015
3 answers
214 views
Hi All,

Is it possible to show text instead of the toggle icon while rendering for mobile?

Best Regards,
Damodar
Dimitar
Telerik team
 answered on 20 Feb 2015
2 answers
68 views
Hi, please go here and open up a dialog from the editor:

http://admin.edwicksoft.com/test.aspx

The content area is centered horizontally and, whenever the browser window is large enough to actually notice that (and have unused "white" space to the left and right of the content area), the popups move to the right and the gray background area does the same, making things look pretty weird.

Is there any property I can set to prevent that from happening?

Thanks,
Rick
Rick Langevoort
Top achievements
Rank 1
 answered on 20 Feb 2015
1 answer
62 views
Hi All
Im working on a web app for client which organizes tournaments, lasting 2-3 days. He wants to have one large scheduler where where he will schedule and see all the matches. Since the matches are on multiple locations I have the following structure:

date: 02.17.2015                                                                                                         
                                         Location 1           Location 2           Location 3

8:00                                appointment1                                   appointment2               

8:15                                                                                                                             
.
.
.
date: 02.18.2015                                                                                                         
                                       Location 1           Location 2           Location 3

8:00                                                                                                                             

8:15                                                                                                                             
.
.
.
This is already implemented and working properly with the following setup 
<MultiDayView UserSelectable="false" GroupBy="Date, MatchLocation" GroupingDirection="Vertical" />

However, since one tournament may last for 3 days starting from the mornings till the evening, making the scheduler huge and you need to scroll endlessly. They want to save space on this form, and want me to have different start time for each day. For instance most of the tournaments start at the evening of the first day, then continue early next day, and last few hours (finals only) starting late in the third day. Is there any way to set up start and end time for each day in such multi day view?? So instead of the structure above I have something like this:

date: 02.17.2015                                                                                                         
                                         Location 1           Location 2           Location 3

18:30                                appointment1                                   appointment2               

18:45                                                                                                                             
.
.
.
21:45                                                                                                                             
                                                                                                                           
date: 02.18.2015                                                                                                         
                                        Location 1           Location 2           Location 3

8:00                                                                                                                             

8:15                                                                                                                             
.
.
.
21:45                                                                                                                            

date: 02.19.2015                                                                                                         
                                        Location 1           Location 2           Location 3

13:00                                                                                                                             

13:15                                                                                                                             
.
.
.
16:00                                                                                                                           

I would really appreciate your help
Boyan Dimitrov
Telerik team
 answered on 20 Feb 2015
12 answers
348 views
Hi,
I am trying to bind RadHtml Chart ,in one of my Column I am having a special character like ' ( ' , so When I am having this(special character) in my column  chart  is  not binding but in earlier version of telerik it used  to bind as expected (2013 version) but after upgrading it to 2014 its not supporting,please let me know the solution for this.

Thanks,
Chary.
Danail Vasilev
Telerik team
 answered on 20 Feb 2015
1 answer
212 views
Dear All
    I have used Rad Treeview in ASP.NET, I want to refresh my treeview and it can persist old node selection.
How to do it ?
Help will really appreciating.

Thanks
koolprasad
Boyan Dimitrov
Telerik team
 answered on 20 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?