Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views

Hi,

I have a problem in my multirow radscheduler. I'm using version 2009.3.1314.1030.  When I navigate through time using the navigation arrows or scroll of the mouse, at some point the cell width increases or decreases in the rows below the first one. I attached a picture of its state after this change. Also here is the code of my scheduler;

<TelerikScheduler:RadScheduler x:Name="Scheduler_WorkingHour"
                 ScrollViewer.VerticalScrollBarVisibility="Visible"
                 AppointmentEditing="Scheduler_WorkingHour_AppointmentEditing"
                 AppointmentAdding="Scheduler_WorkingHour_AppointmentAdding"
                 AppointmentEdited="Scheduler_WorkingHour_AppointmentEdited"
                 AppointmentDeleted="Scheduler_WorkingHour_AppointmentDeleted"
                 TelerikControls:StyleManager.Theme="{StaticResource MaintenanceThemeKey}"
                 AppointmentDeleting="Scheduler_WorkingHour_AppointmentDeleting"
                 EditAppointmentStyle="{StaticResource EditAppointmentStyle}"
                 RecurrenceChoiceDialogDefaultRecurrenceMode="Series"
                 ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                 ViewMode="Timeline"
                 OpenModalDialogs="True"
                 ShowsConfirmationWindowOnDelete="False"
                 ShowsConfirmationWindowOnClose="False"
                 IsInlineEditingEnabled="False"
                 AppointmentAdded="Scheduler_WorkingHour_AppointmentAdded"
                 ActiveViewDefinitionChanged="Scheduler_WorkingHour_ActiveViewDefinitionChanged"
                 SchedulerPerformedGrouping="Scheduler_WorkingHour_SchedulerPerformedGrouping"
                 SelectedViewStartDateChanged="Scheduler_WorkingHour_SelectedViewStartDateChanged"
                 >
</TelerikScheduler:RadScheduler>


Is this a bug of the scheduler or am I missing something? Thank you.

Nurullah
Peter
Telerik team
 answered on 16 Sep 2010
2 answers
79 views
I downloaded the trial version and noticed there's no installer and no msi file. Clicking on ToolBoxInstaller.exe brings up a prompt and I have to figure out how the parameters work!

Earlier versions used to have an installer that did everything. Now it's a bunch of folders and I have to figure things out. So now no start menu. No self installation into the toolbox. This really sucks.

Why make it now more complicated and not user friendly!? I expect Telerik installers to get better, not worse!
abdu bukres
Top achievements
Rank 1
 answered on 16 Sep 2010
1 answer
247 views
Hello,
          I have RadAsyncUpload control in my aspx page. I got the following error WebResource.axd missing.

Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager

Then I added the following to my web.config file.

<

 

system.webServer>

 

<

 

handlers>

 

<

 

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2010.1.309.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

 

 

 

name="Telerik.Web.UI.WebResource"/>

 

</

 

handlers>

 

</

 

system.webServer>

 

 

 

I still get the same error after adding webresource.axd to webconfig. I restarted webserver multiple times but no use. Any help would be appreciated.

Thanks,
Bharani

T. Tsonev
Telerik team
 answered on 16 Sep 2010
1 answer
124 views
Hello,
        I have two RadASyncUpload control on my page. Since the file will be actually sent after a post back, is there a way to do a post back immediately after the upload is done otherwise I wouldnt know which RadASyncUpload control posted the file first. I need to know which file was posted from which RadASyncUpload Control. Is there a way to know that.

Thanks,
Bharani
T. Tsonev
Telerik team
 answered on 16 Sep 2010
1 answer
141 views
I have a scheduler component and I want a custom insert view. Is it possible to get controls from the AdvancedInsertTemplate? I tried using FindControl on the scheduler component but with no luck. So is the recormended way to get all selected values from a ListBox places in the AdvancedInsertTemplate? I guess that custom attributtes dosent support multiple values? Same if I used a gridview how do I get the values from that?

protected void RadScheduler1_AppointmentInsert(object sender, Telerik.Web.UI.SchedulerCancelEventArgs e)
        {  
            string test = e.Appointment.Attributes["Test"];            
            ???? here to get values from listbox???
        }

    <telerik:RadScheduler ID="RadScheduler1" runat="server" Height="583px"
        Width="889px" onappointmentcreated="RadScheduler1_AppointmentCreated"
        onappointmentinsert="RadScheduler1_AppointmentInsert" CustomAttributeNames="Test,Test2">        
        <AdvancedInsertTemplate > 
            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Subject") %>'></asp:TextBox>
            <asp:ListBox ID="ListBox1" runat="server" SelectionMode="Multiple" SelectedValue='<%# Bind("Test") %>'><asp:ListItem>dsdsd</asp:ListItem><asp:ListItem>sdsdsd</asp:ListItem></asp:ListBox>
            <asp:LinkButton runat="server" ID="UpdateButton" CssClass="rsAdvEditSave" CommandName="Insert">Insert</asp:LinkButton>
        </AdvancedInsertTemplate>

        <AdvancedEditTemplate>
            hello
        </AdvancedEditTemplate>
    </telerik:RadScheduler>

Veronica
Telerik team
 answered on 16 Sep 2010
5 answers
192 views

I am using the Online Demo Calendar Template example http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/specialdays/defaultcs.aspx to create a templated calendar. I want to assign all Saturday/Sundays and all days prior to todays date to a template to indicate these days are unavailable. I also want to assign days pulled from a database to this template as well (I have not implemented the database piece yet, my code below is just assigning today's date).

I created the template declaratively like in the example. I need to assign the special days/template programmatically. I am using the RadCalendar_DayRender event to assign special days/template for the saturday/sunday. I am using the Page_Load event to assign the days from the database.

Days assigned in the DayRender event are not showing the template at all.

Days assigned in the Page_Load event are showing a generic template (not the template I assign) on initial page load, but then show the template that I assigned on post back.

1) How do I get the correct template to show on initial page load?
2) How can I assign all saturday/sundays and all days prior to today in the Page_Load event? or how can I get the template assignment to work in the DayRender Event.

Here is my code.

<%@ Page Title="" Language="C#" MasterPageFile="~/BlankMasterPage.master" AutoEventWireup="true" CodeFile="DatePicker.aspx.cs" Inherits="admissions_cfad_DatePicker" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="Common/Calendar.Special.css" rel="Stylesheet" type="text/css" />
</asp:Content>
  
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderTitle" Runat="Server">
</asp:Content>
  
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderMain" Runat="Server">
  
    <telerik:RadCalendar ID="RadCalendar1" runat="server" AutoPostBack="true" skin="Special"
         EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" EnableMonthYearFastNavigation="false"
         ShowOtherMonthsDays="false" DayNameFormat="Short" EnableMultiSelect="false"
         OnDefaultViewChanged="RadCalendar1_DefaultViewChanged"
        ondayrender="RadCalendar1_DayRender">
        <HeaderTemplate>
            <asp:Image ID="HeaderImage" runat="server" Width="757" Height="94" Style="display: block" />
        </HeaderTemplate>
        <FooterTemplate>
            <asp:Image ID="FooterImage" runat="server" Width="757" Height="70" Style="display: block" />
        </FooterTemplate>
        <CalendarDayTemplates>
            <telerik:DayTemplate ID="NotAvailableTemplate" runat="server">
                <Content>
                    <div class="rcTemplate rcDayNotAvailable">
                        Not Available
                    </div>
                </Content>
            </telerik:DayTemplate>
        </CalendarDayTemplates>
    </telerik:RadCalendar>
  
</asp:Content>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
  
public partial class admissions_cfad_DatePicker : System.Web.UI.Page
{
    Image _headerImage = null;
    Image _footerImage = null;
  
    protected void Page_Load(object sender, EventArgs e)
    {
        _headerImage = (Image)RadCalendar1.FindControl("HeaderImage");
        _footerImage = (Image)RadCalendar1.FindControl("FooterImage");
        AddImages(RadCalendar1.CalendarView);
  
        if (!Page.IsPostBack)
        {
            RadCalendarDay calendarDay = new RadCalendarDay();
            calendarDay.Date = DateTime.Now.Date;
            calendarDay.TemplateID = "NotAvailableTemplate";
            calendarDay.IsSelectable = false;
            RadCalendar1.SpecialDays.Add(calendarDay);
        }
      
    }
  
    protected void RadCalendar1_DefaultViewChanged(object sender, Telerik.Web.UI.Calendar.DefaultViewChangedEventArgs e)
    {
        AddImages(e.NewView);
    }
  
    protected void RadCalendar1_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
    {
        if (e.Day.Date.DayOfWeek == DayOfWeek.Saturday || e.Day.Date.DayOfWeek == DayOfWeek.Sunday
            || e.Day.Date < DateTime.Now.Date)
        {
            RadCalendarDay calendarDay = new RadCalendarDay();
            calendarDay.Date = e.Day.Date;
            calendarDay.TemplateID = "NotAvailableTemplate";
            calendarDay.IsSelectable = false;
            RadCalendar1.SpecialDays.Add(calendarDay);
        }
    }
      
    private void AddImages(Telerik.Web.UI.Calendar.View.CalendarView inputView)
    {
        switch (inputView.ViewStartDate.Month)
        {
            case 0:
            case 1:
            case 11:
                _headerImage.ImageUrl = "Common/header_winter.jpg";
                _footerImage.ImageUrl = "Common/footer_winter.jpg";
                _headerImage.AlternateText = _footerImage.AlternateText = "Winter";
                break;
            case 2:
            case 3:
            case 4:
                _headerImage.ImageUrl = "Common/header_spring.jpg";
                _footerImage.ImageUrl = "Common/footer_spring.jpg";
                _headerImage.AlternateText = _footerImage.AlternateText = "Spring";
                break;
            case 5:
            case 6:
            case 7:
                _headerImage.ImageUrl = "Common/header_summer.jpg";
                _footerImage.ImageUrl = "Common/footer_summer.jpg";
                _headerImage.AlternateText = _footerImage.AlternateText = "Summer";
                break;
            case 8:
            case 9:
            case 10:
                _headerImage.ImageUrl = "Common/header_autumn.jpg";
                _footerImage.ImageUrl = "Common/footer_autumn.jpg";
                _headerImage.AlternateText = _footerImage.AlternateText = "Autumn";
                break;
        }
    }
  
}

Thank you for your help.
Iana Tsolova
Telerik team
 answered on 16 Sep 2010
1 answer
169 views
Hi,

I cannot get multiple file selection to work.

I saw another post on this but couldn't see any answers.  I followed this article:
Upload / Multiple File Selection
but can only ever select a single file.  I have Flash 10 installed and if I run that demo directly from the Telerik site it works.

My markup is:
<telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" MultipleFileSelection="Automatic">
</telerik:RadAsyncUpload>

I also tried installing the latest version of the Telerik controls.  The dialog boxes do look different between my demo version and the Telerik one.  What else could be the problem?
Geoff Ballard
Top achievements
Rank 1
 answered on 16 Sep 2010
1 answer
97 views
Hello

We are using telerik asp net ajax editor in our application.
We are using RadControls for ASP.NET AJAX Q1 2010 SP2.
My problem is "New Paragraph" button is not working in firfox and it is not changing paragraph.

I got same problem in demo application available in live site.
http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx


I have indicated problem button in red circle in attached image.

Please help me.

Regards
Atul Kumar Srivastav
Rumen
Telerik team
 answered on 16 Sep 2010
1 answer
75 views

 

 

 

Dear Team,
 but I cant Find inner sever Table  control How To slove the problem..

with Regards,
S.Kannadasan

 

 

protected void Page_Init(object sender, System.EventArgs e)

 

{

DefineGridStructure();

 

 

}

 

private void DefineGridStructure()

 

{

 

RadGrid grid1 = new RadGrid();

 

grid1.ID =

"Comm";

 

grid1.AutoGenerateColumns =

false;

 

grid1.Skin =

"Vista";

 

 

DataTable CROWS = new DataTable();

 

 

DataTable CCOLUMNS = new DataTable();

 

 

DataTable Comercial = new DataTable();

 

CROWS = CommercialColumn();

 

for (int i = 0; i < CROWS.Rows.Count+1; i++)

 

{

 

DataColumn DC;

 

 

if (i == 0)

 

{

DC =

new DataColumn("VendorName");

 

}

 

 

else

 

 

 

{

DC =

new DataColumn(CROWS.Rows[i-1][0].ToString());

 

}

Comercial.Columns.Add(DC);

}

 

DataRow DR = null;

 

 

CCOLUMNS = CommercialRow();

 

for (int i = 0; i < CCOLUMNS.Rows.Count; i++)

 

{

DR = Comercial.NewRow();

 

for (int j = 0; j < Comercial.Columns.Count; j++)

 

{

 

if (j == 0)

 

{

DR[0] = CCOLUMNS.Rows[i][0].ToString();

}

 

else

 

 

 

{

 

DataRow[] DR1;

 

DR1 = CommercialPoint().Select(

"EvaluationText='" + CCOLUMNS.Rows[i][0].ToString() + "'");

 

DR[j] = DR1[0][

"Weightage"].ToString();

 

}

}

Comercial.Rows.Add(DR);

}

 

DR = Comercial.NewRow();

 

for (int i = 2; i < CCOLUMNS.Rows.Count; i++)

 

{

 

 

for (int j = 0; j < Comercial.Columns.Count; j++)

 

{

 

if (j == 0)

 

{

DR[0] =

"Total";

 

}

 

else

 

 

 

{

 

DR[j] =

"100%";

 

}

}

 

}

Comercial.Rows.Add(DR);

 

for (int j = 0; j < Comercial.Columns.Count; j++)

 

{

 

if (j == 0)

 

{

 

GridBoundColumn boundColumn1 = new GridBoundColumn();

 

boundColumn1.DataField =

"VendorName";

 

boundColumn1.UniqueName =

"VendorName";

 

boundColumn1.HeaderText =

"Vendor Name";

 

grid1.MasterTableView.Columns.Add(boundColumn1);

}

 

else

 

 

 

{

 

GridTemplateColumn templateColumn = new GridTemplateColumn();

 

templateColumn.UniqueName = Comercial.Columns[j].ColumnName;

templateColumn.HeaderTemplate =

new MyTemplate(Comercial.Columns[j].ColumnName);

 

templateColumn.HeaderText = Comercial.Columns[j].ColumnName;

templateColumn.DataField = Comercial.Columns[j].ColumnName;

templateColumn.ItemTemplate =

new MyTemplate1(Comercial.Columns[j].ColumnName);

 

grid1.MasterTableView.Columns.Add(templateColumn);

GridColumn.Add(Comercial.Columns[j].ColumnName);

}

}

grid1.DataSource = Comercial;

grid1.DataBind();

 

this.PlaceHolder2.Controls.Add(grid1);

 

}

 







protected

void btnApporved_Click(object sender, EventArgs e)

 

{

 

ArrayList SelectedColumn = new ArrayList();

 

 

RadGrid commgrid = (RadGrid)PlaceHolder2.Controls[0];

 

 

GridHeaderItem headerItem = (GridHeaderItem)commgrid.MasterTableView.GetItems(GridItemType.Header)[0];

 

 

foreach (string Columns in GridColumn)

 

{

 

CheckBox lb = (CheckBox)headerItem[Columns].Controls[0];

 

 

if (lb != null)

 

{

 

if (lb.Checked == true)

 

{

 

string Ids = lb.ID.ToString();

 

lb.Enabled =

false;

 

 

// SelectedColumn.Add(Ids);

 

StatusUpdated(Ids);

}

}

}

}

 



public

class MyTemplate : ITemplate

 

{

 

protected CheckBox boolValue;

 

 

private string colname;

 

 

Table TableName = new Table();

 

 

HtmlTable table = new HtmlTable();

 

 

public MyTemplate(string cName)

 

{

colname = cName;

}

 

public void InstantiateIn(System.Web.UI.Control container)

 

{

 

 

HtmlTableRow row = new HtmlTableRow();

 

 

HtmlTableRow row1 = new HtmlTableRow();

 

 

HtmlTableCell cell = new HtmlTableCell();

 

 

HtmlTableCell cell1 = new HtmlTableCell();

 

 

Label labelName = new Label();

 

 

//TableRow TR = new TableRow();

 

 

//TableRow TR1 = new TableRow();

 

 

//TableCell TC = new TableCell();

 

 

//TableCell TC1 = new TableCell();

 

labelName.Text =

"INITIAL OFFER/FINAL OFFER";

 

 

boolValue =

new CheckBox();

 

boolValue.ID = colname;

boolValue.Text =

"<a href='Commerical.aspx'>" + colname + "</a></br></br>";

 

 

// boolValue.DataBinding += new EventHandler(boolValue_DataBinding);

 

 

//TC.Controls.Add(boolValue);

 

 

//TC1.Controls.Add(labelName);

 

 

//TR.Cells.Add(TC);

 

 

//TR1.Cells.Add(TC1);

 

 

//TableName.Rows.Add(TR);

 

 

//TableName.Rows.Add(TR1);

 

 

 

//cell.Controls.Add(boolValue);

 

 

//cell1.Controls.Add(labelName);

 

 

//row.Cells.Add(cell);

 

 

//row1.Cells.Add(cell1);

 

 

//table.Rows.Add(row);

 

 

//table.Rows.Add(row1);

 

 

//container.Controls.Add(table);

 

container.Controls.Add(boolValue);

container.Controls.Add(labelName);

}

Princy
Top achievements
Rank 2
 answered on 16 Sep 2010
5 answers
201 views
Hi,

I have a couple of Radio buttons and drop downs in a Radwindow.
Now since these controls have "Auto postback" set to true, the radwindow refreshes whenever the values of the drop downs or radio buttons are changed.

How I stop these page refreshes?
Please suggest.

Thanks!
Georgi Tunev
Telerik team
 answered on 16 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?