Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
148 views
I'm using a RadGrid within a RajAjaxManager.
On a specific LinkButton, I need to export the content of the grid to CSV.
So I need to disable Ajax to allow export works. I'm doing this :

<

 

script type="text/javascript">

 

 

function mngRequestStartedEAE(ajaxManager, eventArgs) {

 

 

if (eventArgs.EventTarget.indexOf("exportCsv") != -1) {

 

eventArgs.EnableAjax =

false;

 

}

 

}

 

</

 

script>
<

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="mngRequestStartedEAE" >

    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="content">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="content" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="10"
    BackColor="#ffffff" CssClass="ajax_loader">
</telerik:RadAjaxLoadingPanel>
<asp:Panel ID="content" runat="server" CssClass="MaxW">
<!-- some other controls -->
<asp:LinkButton ID="exportCsv" runat="server" OnClick="exportCsv_Click" Text="Exporter"></asp:LinkButton>
<!-- grid declaration ... -->
</asp:Panel>

All of this works fine ! BUT :
All other next requests doesn't works, because no more ajax is running :( So all actions like autopostback on controls within content panel are not invoked...

What am I doing wrong ?

Thanks for help !
Alexandre BARBIER
Top achievements
Rank 1
 answered on 07 Feb 2011
1 answer
87 views
I am trying to use either a RadGrid or a RadListView - however I want the column names to be on the left hand side going up and down - much like the ASP.NET DetailsView.  Does anyone know how to accomplish this?
Sebastian
Telerik team
 answered on 07 Feb 2011
1 answer
71 views
Hi, just wondering if there's a way to display some lines to represent shifts (morning, afternoon, evening) in scheduler week or day view?

Cheers
Prasanna
Veronica
Telerik team
 answered on 07 Feb 2011
1 answer
66 views
Is it possible to use an Excel file as a template for RadGrid layout that would have merged cells, etc.?

Thank you
Princy
Top achievements
Rank 2
 answered on 07 Feb 2011
1 answer
92 views
In my RadSchedular I have set the following parameters.

DayView-WorkDayStartTime="08:00:00"
DayView-DayEndTime="18:00:00"      
WorkDayStartTime="08:30:00"
WorkDayEndTime="17:00:00"


As a test I created a task that started at 16:30 on one day, and finish at 9:00am the next day.

With Workday start and end times of 17:00 and  8:30am this is a one hour task.

However, by clicking the 24 hour view, the RadScheduler displays this task as running from 16.30 on the first day, till midnight that night, and on the next day starting at midnight and finishing at 9am.

Wrong.

How can I tell the RadScheduler to only display tasks in business hours. With this in mind, what is the point of the WorkDay[Start:End]Time parameters?

 
Peter
Telerik team
 answered on 07 Feb 2011
3 answers
991 views
Hi,

I have a grid on my web page. which is populated with data in bound columns.
I have one Client Select Column in grid to select specific column.
Now, i want to save my grid data in database, when user select any row (by clicking checkbox in clientselectcolumn).
Anyone can provide sample example for this.
Thanks in Advance.
Princy
Top achievements
Rank 2
 answered on 07 Feb 2011
1 answer
62 views

I am try to add user control into a tabscript but it is through me an error please let me know what wrong I am doing here


    protected void Page_Load(object sender, EventArgs e)
    {


        if (!Page.IsPostBack)
        {
            for (int i = 0; i < 6; i++)
            {
                RadPanelItem itm = new RadPanelItem();
                RadPanelItem chlditm = new RadPanelItem();
                if (i == 0)
                    itm.Text = "Professional Degrees";
                else if (i == 1)
                    itm.Text = "Crash courses";
                else if (i == 2)
                    itm.Text = "Professional courses";
                else if (i == 3)
                    itm.Text = "vocational courses";
                else if (i == 4)
                    itm.Text = "CNC courses";
                chlditm.Text = "English speaking courses";




                pnlCourses.Items.Add(itm);
            }
            AddTab("CourseDetail");
            AddPageView(RadTabStrip1.FindTabByText("CourseDetail"));
        }
    
      


    }


    protected void tbCourseDetail_TabClick(object sender, RadTabStripEventArgs e)
    {
       
    }


    


    private void AddTab(string tabName)
    {
        RadTab tab = new RadTab();
        tab.Text = tabName;
        RadTabStrip1.Tabs.Add(tab);
        RadPageView pageView = new RadPageView();
        pageView.ID = tabName;
        RadMultiPage1.PageViews.Add(pageView);
    }




  




    protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
    {
        string userControlName = e.PageView.ID + ".ascx";


        Control userControl = Page.LoadControl(userControlName);
        userControl.ID = e.PageView.ID + "_userControl";


        e.PageView.Controls.Add(userControl);
    }
    protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
    {
        AddPageView(e.Tab);
        e.Tab.PageView.Selected = true;
        
    }


    private void AddPageView(RadTab tab)
    {
        RadPageView pageView = new RadPageView();
        pageView.ID = tab.Text;
        RadMultiPage1.PageViews.Add(pageView);
        pageView.CssClass = "pageView";
        tab.PageViewID = pageView.ID;
    }
Yana
Telerik team
 answered on 07 Feb 2011
16 answers
408 views
I would like to save the dock state when user moves docks from one place to the other. I would like to load this new dock state when user logs into my website next time. The dock state should be saved in the database when user click on save state button and it should be loaded from the database when user logs on next time to my website. I don't want the HttpCookie for saving the dock state configuration. How can I achive this?
Pero
Telerik team
 answered on 07 Feb 2011
1 answer
91 views
There is a problem when using the new feature included in Q32010 for highlighting multiple timeslots then using the context menu to create a new appointment if you set the background color of the timeslots dynamically in the TimeSlotCreated event.

ex:
void Schedule_TimeSlotCreated(object sender, Telerik.Web.UI.TimeSlotCreatedEventArgs e) {
  e.TimeSlot.Control.BackColor = Color.FromArgb(230, 230, 230);
}

what ends up getting rendered is this:
<td style="background-color: rgb(230, 230, 230);" class="rsSelectedSlot"> </td>

The problem is that because the styles for the background color are applied directly to the element, the class styles are not being overridden.

Is there another way I can set the background color for a timeslot that would fix this problem?  Also, is there a way to change the color of the SelectedSlot through a property and not directly overriding the style on the page or using a skin?
Nikolay Tsenkov
Telerik team
 answered on 07 Feb 2011
1 answer
106 views
I have many combo boxes in a repeater.When the user selects one value from a combo box and then clicks on the next one , I want to display all the unselected values.
Eg. Items - A ,B ,C are bound to the combox box in repeater. If user selects B in one of the combo boxes , I want to display only A , C in the next combo box and so on.
How do I acheieve this? Do i handle this in ItemsRequested event of the combo box? Is it possible to do this on client side?
Yana
Telerik team
 answered on 07 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?