Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
121 views
Hello

    I am using the  ASP.Net AJAX controls version 2008.2.1001.20. The following are the problems that I face when using the treeview

 1)When tristate property is set to on we have problem in checking the child nodes when the parent node is checked . I got 4 levels of child nodes from the root, can we do check and uncheck the entire treeview by checking the parent node?.(right now its not working)

 2)Reordering the treeview nodes(Drag and Drop) is not working  when the Treeview(as an item template) is placed inside the comboBox. When I drag the node from the treeview, the dragging image is shown outside the dropdown of the comboBox and moreover node is not dropping in the destination.

Earliest reply is appreciated

 Thank you



Simon
Telerik team
 answered on 10 Nov 2008
1 answer
113 views

Hello

I'm having a problem displaying an image in my subject.  I have followed the tutorial regarding exporting appointments to ICalendar and this function work properly.  However, the export image is not visible in appointments that are displayed on a single line.  If the appointment spans several hours in week or day view, for instance, then the image is visible. But if the appointment is only 30min in day or week view and for all appointments in Month view, I do not see the image.  I do not allow deletes in the calendar and I would like for the export image to appear in the top right corner of all appointments where the 'x' would normally be.

I have pasted relevant code from my page below...Thanks again for any suggestions

Brian  

 

<

 

style type="text/css">

 

 

 

<!

-- Sets the height of apps in day view -->

 

 

 

 

 

.RadScheduler .rsContent .rsHoursTable th

 

{

 

font-size: 9px;

 

 

line-height: 15px;

 

 

height: 15px;

 

}

 

 

.RadScheduler .rsDayView td.rsCell

 

{

 

font-size: 9px;

 

 

line-height: 15px;

 

 

height: 15px;

 

}

 

 

<!

-- Sets the height of apps in Month view -->

 

 

 

 

 

.RadScheduler .rsMonthView div.rsWrap

 

{

 

height: 15px;

 

}

 

 

<!

-- Sets the height of apps in Week view -->

 

 

 

 

 

.RadScheduler .rsWeekView div.rsWrap

 

{

//

height: 15px;

 

}

 

 

.RadScheduler .rsWeekView td.rsCell

 

{

 

font-size: 9px;

 

 

line-height: 15px;

 

 

height: 15px;

 

}

 

<!

-- Sets background colour of current day -->

 

 

 

 

 

.RadScheduler_Default .rsRow .rsCell.rsTodayCell

 

 

 

 

{

 

background: orange ;

 

}

 

 

 

</

 

style>

 

 

 

</

 

head>

 

<

 

body>

 

 

 

 

 

 

<form id="form1" runat="server">

 

 

 

 

 

<div>

 

 

 

 

 

 

 

<asp:TextBox Visible="false" runat="server" id="txtPermissions"></asp:TextBox>

 

 

 

 

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

 

 

 

 

 

</telerik:RadScriptManager>

 

 

 

 

 

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:xxx %>"

 

 

 

 

 

SelectCommand="populteCalendarTelerik" SelectCommandType="StoredProcedure">

 

 

 

 

 

<SelectParameters>

 

 

 

 

 

<asp:ControlParameter ControlID="txtPermissions" DefaultValue="" Name="viewPermissions"

 

 

 

 

 

PropertyName="Text" Type="String" />

 

 

 

 

 

<asp:ControlParameter ControlID="cboResources" DefaultValue="0" Name="resourceID"

 

 

 

 

 

PropertyName="SelectedValue" Type="Int32" />

 

 

 

 

 

</SelectParameters>

 

 

 

 

 

</asp:SqlDataSource>

 

 

 

 

 

<asp:SqlDataSource ID="sqlDSourceResources" runat="server" ConnectionString="<%$ ConnectionStrings:ggCalConnSBDB5 %>"

 

 

 

 

 

SelectCommand="searchGetResourceList" SelectCommandType="StoredProcedure"></asp:SqlDataSource>

 

 

 

 

 

<br />

 

 

 

 

 

 

 

<telerik:RadComboBox ID="cboResources" runat="server" DataSourceID="sqlDSourceResources" DataTextField="Resource" DataValueField="resourceID" AutoPostBack="True" Width="282px">

 

 

 

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

 

 

&nbsp;

 

 

 

 

 

 

<telerik:RadScheduler CustomAttributeNames="resourceLabelColour" ID="RadScheduler1" runat="server" OnClientAppointmentDoubleClick="AppointmentEditing" OnAppointmentCommand="RadScheduler1_AppointmentCommand" OnClientAppointmentEditing="AppointmentEditing" OnClientAppointmentInserting='"Appointment Inserting"' DataEndField="appEndTime" DataKeyField="appID" DataSourceID="SqlDataSource1" DataStartField="appStartTime" DataSubjectField="appSubject">

 

 

 

 

 

 

<AppointmentTemplate>

 

 

 

 

<%

#Eval("Subject")%>

 

 

<div style="text-align: right;">

 

 

 

 

 

<span style="cursor: pointer; cursor: hand;">

 

 

 

 

 

<asp:ImageButton ImageAlign="texttop" runat="server" ID="btnICalExport" ImageUrl="/images/export.png" AlternateText="Export to iCalendar"

 

 

 

 

 

CommandName="Export" OnClientClick="Export(this, event); return false;" />

 

 

 

 

 

</span>

 

 

 

 

 

</div>

 

 

 

 

 

</AppointmentTemplate>

 

 

 

 

 

<ResourceTypes>

 

 

 

 

 

<telerik:ResourceType DataSourceID="SqlDataSource1" ForeignKeyField="appID" KeyField="resourceID"

 

 

 

 

 

Name="ggResource" TextField="ResourceDisplay" />

 

 

 

 

 

</ResourceTypes>

 

 

 

 

 

 

 

</telerik:RadScheduler>

 

Peter
Telerik team
 answered on 10 Nov 2008
4 answers
118 views

Hello!

There is a kind of problem.
I have the same two updatepanels with two radzones.
When I make any (ANY) ajax callback via any updatePanel, all the request params are passed to the server.
And every RadDock passes similar info:

'ctl00_ContentPlaceHolder1_1_RadDock_ClientState' 
'  "{\"Top\":0,\"Left\":0,\"DockZoneID\":\"ctl00_ContentPlaceHolder1_zoneSearch\",\"Collapsed\":false,\"Pinned\":false,\"Resizable\":false,\"Closed\":false,\"Width\":\"300px\",\"Height\":null,\"ExpandedHeight\":0,\"Index\":0}"

it's up to 250 symbols, so if I have 200 docks - it's more than 50000(!) symbols.
so for rapid ajax requests it's not so good and I don't need any of this info (managing positions "manually").
is there a possibility to reduce this exceed traffic (switch-off those parameters passing)?
 I added 

 

StoreLayoutInViewState

="false" and EnableViewState="false"

but nothing changed.

Thank you and the best regards!

 

Oliver Popov
Top achievements
Rank 1
 answered on 10 Nov 2008
1 answer
109 views

Hi,

Would it be possible to graphically view the start and end time of the resources of an appointment? This would be especially helpful in the timeline view where we group by the resources that we are scheduling.

Thanks,
Wen

Peter
Telerik team
 answered on 10 Nov 2008
1 answer
69 views
Hello,

We discovered the sharedcalendar property and we must say: good job

using 9 datepickers on 1 page results in 156kB of HTML code, using a sharedcalendar results in 55kB of HTML.

Now the next step could be a radcalendar on a masterpage and all subcontrols (even dynamically loaded controls) could use that one.
Does it already exist or is there a way to simulate this for instance pushing the calendar through to all controls.

Is it possible to throw some light on this topic?

thanks in advance

The Sofim-team (Belgium)


Missing User
 answered on 10 Nov 2008
1 answer
135 views
I setup my own skin based upon the RadMenu Default skin. I'm able to get the down arrow to appear on the root menu items in IE7 and Firefox just fine. but unable to get them to work in IE6.

Here is a copy of the stylesheet i'm using.

/* RadMenu Default skin */

.RadMenu_Custom
{
 /*border: 1px solid #010101;*/
 border-bottom-width: 0;
 /*border-top-color: #383838;
 background: #444 url(Menu/MenuBackground.gif) repeat-x top left;*/
 text-align: left;
}

.RadMenu_Custom_rtl
{
 text-align: right;
}

.RadMenu_Custom_Context
{
 background: none;
 border: 0;
}

.RadMenu_Custom a
{
 text-decoration: none;
}

.RadMenu_Custom .rmLink
{
 line-height: 24px;
 text-decoration: none;
 color: #fff;
}

.RadMenu_Custom .rmLink:focus,
.RadMenu_Custom .rmFocused
{
 outline: 0;
}

.RadMenu_Custom .rmExpanded
{
 z-index: 10000;
}

.RadMenu_Custom .rmLink:hover,
.RadMenu_Custom .rmFocused,
.RadMenu_Custom .rmExpanded
{

 color: #333;
}

.RadMenu_Custom .rmLink .rmText
{
 
 font: normal 12px Arial, sans-serif;
}
.RadMenu_Custom .rmHorizontal .rmExpandDown

  background: transparent url(Menu/RootGroupArrowDown.gif) no-repeat right center; 
}
.RadMenu_Custom .rmGroup
{
 background: #fff;
}

.RadMenu_Custom .rmGroup .rmLink
{
 text-decoration: none;
 color: #333;
}

.RadMenu_Custom_rtl .rmGroup .rmLink
{
 text-align: right;
}

.RadMenu_Custom .rmGroup .rmLink:hover,
.RadMenu_Custom .rmGroup .rmFocused,
.RadMenu_Custom .rmGroup .rmExpanded
{
 color: #fff;
 background: #444;
}

.RadMenu_Custom .rmText
{
 padding: 3px 20px 5px 20px;
}

.RadMenu_Custom .rmGroup .rmLink .rmText
{
 font-size: 11px;
}

/* <expand arrows styling> */

.RadMenu_Custom .rmGroup .rmLink .rmExpandRight
{
 background: transparent url(Menu/ArrowExpand.gif) no-repeat right -3px;
}

.RadMenu_Custom .rmGroup .rmLink .rmExpandLeft
{
 background: transparent url(Menu/ArrowExpandRTL.gif) no-repeat left -3px;
}

.RadMenu_Custom .rmGroup .rmLink:hover .rmExpandRight,
.RadMenu_Custom .rmGroup .rmFocused .rmExpandRight,
.RadMenu_Custom .rmGroup .rmExpanded .rmExpandRight
{
 background-image: url(Menu/ArrowExpandHovered.gif);
}

.RadMenu_Custom .rmGroup .rmLink:hover .rmExpandLeft,
.RadMenu_Custom .rmGroup .rmFocused .rmExpandLeft,
.RadMenu_Custom .rmGroup .rmExpanded .rmExpandLeft
{
 background-image: url(Menu/ArrowExpandHoveredRTL.gif);
}

/* </expand arrows styling> */

.RadMenu_Custom .rmHorizontal .rmItem 
{
    border-right: 1px solid #fff;
    padding-right: 10px;}
.RadMenu_Custom .rmHorizontal .rmLast { border-right: 0; }

.RadMenu_Custom .rmVertical .rmItem { border-bottom: 1px solid #353535; }
.RadMenu_Custom .rmVertical .rmLast { border-bottom: 0; }

.RadMenu_Custom_rtl .rmHorizontal .rmItem { border-left: 0; }

.RadMenu_Custom .rmRootGroup .rmGroup .rmItem,
.RadMenu_Custom_Context .rmGroup .rmItem
{ border-right: 0; border-bottom: 0; }

.RadMenu_Custom .rmGroup
{
 border: 1px solid #828282;
 background-color: #fff;
}

.RadMenu_Custom .rmGroup .rmExpanded
{
 z-index: 11;
}

.RadMenu_Custom .rmTopArrowDisabled,
.RadMenu_Custom .rmBottomArrowDisabled,
.RadMenu_Custom .rmLeftArrowDisabled,
.RadMenu_Custom .rmRightArrowDisabled
{
 display: none;
}

.RadMenu_Custom .rmTopArrow,
.RadMenu_Custom .rmBottomArrow,
.RadMenu_Custom .rmLeftArrow,
.RadMenu_Custom .rmRightArrow
{
 font-size: 0;
 line-height: 0;
 color: #fff;
}

.RadMenu_Custom .rmTopArrow,
.RadMenu_Custom .rmBottomArrow
{
 height: 10px;
 width: 100%;
 background: #fff url(Menu/ArrowScrollUpDown.gif) no-repeat top center;
}

.RadMenu_Custom .rmBottomArrow
{
 background-position: center -18px;
}

.RadMenu_Custom .rmLeftArrow,
.RadMenu_Custom .rmRightArrow
{
 width: 10px;
 height: 100%;
 background: #fff url(Menu/ArrowScrollLeftRight.gif) no-repeat left center;
}

.RadMenu_Custom .rmRightArrow
{
 background-position: -18px center;
}

.RadMenu_Custom .rmItem .rmDisabled .rmText
{
 color: #999;
}

.RadMenu_Custom .rmRootGroup .rmItem .rmDisabled
{
 background: none;
}

.RadMenu_Custom .rmGroup .rmItem .rmDisabled
{
 background-color: #fff;
}

.RadMenu_Custom .rmRootGroup .rmSeparator,
.RadMenu_Custom .rmGroup .rmSeparator
{
 background: #8f8f8f;
 border-top: 1px solid #676767;
 border-bottom: 0;
}

.RadMenu_Custom .rmSeparator .rmText
{
 display: none;
}

.RadMenu_Custom .rmHorizontal .rmSeparator
{
 height: 20px;
 width: 1px;
 line-height: 20px;
 border: 0;
}

.RadMenu_Custom .rmVertical .rmSeparator
{
 height: 1px;
 margin: 3px 0;
 border: 0;
 line-height: 1px;
}

.RadMenu_Custom .rmLeftImage
{
 margin: 2px;
}

.RadMenu_Custom .rmSlide
{
 margin: -1px 0 0 -1px !important;
}

* html .RadMenu_Custom .rmVertical .rmSlide
{
 margin-left: -2px !important;
}

* html .RadMenu_Custom .rmHorizontal .rmSlide
{
 margin-top: -2px !important;
}

.RadMenu_Custom_rtl .rmSlide
{
 margin: -1px 0 0 2px !important;
}

* html .RadMenu_Custom_rtl .rmVertical .rmSlide
{
 margin-left: 3px !important;
}

* html .RadMenu_Custom_rtl .rmHorizontal .rmSlide
{
 margin-top: -2px !important;
 margin-left: 0 !important;
}

.RadMenu_Custom .rmItem .rmDisabled:hover
{
 background: none;
}

Yana
Telerik team
 answered on 10 Nov 2008
1 answer
134 views
Hi I am using Telerik version 2008.2.723.20.
I have placed RadMaskedTextBox inside a grid there are few of these are disabled based on some business condition.
What I found is disabled RadMaskedTextBox throws client side javascript erorrs when mouse hovered them.
This happens in IE7 only in FF3 this is running fine.

Is this new or this is known to you are resolved in new version?


Yavor
Telerik team
 answered on 10 Nov 2008
1 answer
87 views
Hello Telerik-Team,

i would like to design a webpage that behaves like this:

first, select an item from a list of items (e.g. RadGrid-items)
second, select a time-setting from a RadioButtonList
(e.g.
time setting 1: 03:00h-15:00h
time setting 2: 15:00h-03:00h)
then, select a day (or several days) in RadScheduler (in month view).
With this last click, the selected RadGrid-item is inserted into
the Scheduler with the selected timesetting (at each selected day).

While trying to implement this design, i had also difficulties
adjusting the height of the cells in the scheduler. I was
only able to adjust the height of all cells.
Instead, I'd rather like to adjust the cells in the
corresponding rows only.

Also, this should all happen clientside. The data is not to be inserted
into a Database before the User is done inserting items to the scheduler.

Any suggestions or examples is appreciated.

Kind regards,
K.
Pavel
Telerik team
 answered on 10 Nov 2008
2 answers
265 views
Hi all,

I'm writing a page use RadGrid. These are my code:

1. test.aspx
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" Width="97%" ShowFooter="True" OnNeedDataSource="RadGrid1_NeedDataSource" GridLines="None" Skin="WebBlue" AutoGenerateColumns="False">
                <MasterTableView CommandItemDisplay="Top" DataKeyNames="ItemID" EditMode="InPlace" Width="100%">
                    <Columns>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                            <ItemStyle CssClass="MyImageButton" Width="20px"/>
                        </telerik:GridEditCommandColumn>

                        <telerik:GridTemplateColumn HeaderText="ItemID" FooterText="Total items: " UniqueName="ItemID">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblItemID" Text='<%# Eval("ItemID") %>' Width="30px"></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <telerik:RadComboBox ID="cboItemID" DataTextField="ItemID" DataValueField="ItemID"
                                    OnInit="RadComboBox1_Init"
                                    EnableLoadOnDemand="True" runat="server" Width="30px" Skin="Telerik">
                            </telerik:RadComboBox>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>

                        <telerik:GridTemplateColumn HeaderText="Description" SortExpression="Description">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblDescription" Text='<%# Eval("Description") %>' Width="120px"></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox runat="server" ID="txtDescription" Text='<%# Bind("Description") %>' Width="120px"/>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>

 ......................
                    </Columns>
                 </MasterTableView>
         </telerik:RadGrid>
2. test.aspx.cs

public partial class test : Page
{
    protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
    {
        RadGrid1.DataSource = SetUpData();
    }

    protected void RadComboBox1_Init(object sender, EventArgs e)
    {
        RadComboBox comboBox = (RadComboBox)sender;
        comboBox.DataSource = SetUpData();
        comboBox.DataBind();
    }

    private List<ItemTest> SetUpData()
    {
        List<ItemTest> listTest = new List<ItemTest>();

        ItemTest test1 = new ItemTest();
        test1.ItemID = "1";
        test1.Description = "description1";
        listTest.Add(test1);

        ItemTest test2 = new ItemTest();
        test2.ItemID = "2";
        test2.Description = "description2";
        listTest.Add(test2);

        return listTest;
    }
}

internal class ItemTest
{
    private string itemID;
    private string description;

    public string ItemID
    {
        get { return itemID; }
        set { itemID = value; }
    }

    public string Description
    {
        get { return description; }
        set { description = value; }
    }
}



My problem is: my page display normal in list view, but when I want to add new record or edit current record, my combo box only display one value. It can't display anymore.

Any one can help me, please.

Thanks so much.

tuan anh
Top achievements
Rank 1
 answered on 10 Nov 2008
1 answer
331 views
I can not get the interval to change for a GridDateTimeColumn with the picker set to TimePicker.  I don't get any errors but the interval stays at 1 hour.

here is my code

protected void AddressGrid_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if ((e.Item is GridEditableItem) && (e.Item.IsInEditMode)) 
        { 
             
            GridEditableItem item = (GridEditableItem)e.Item; 
            RadDateTimePicker DoNotCallMinuteEnd = (RadDateTimePicker)item["DoNotCallMinuteEnd"].Controls[0]; 
            DoNotCallMinuteEnd.TimeView.Interval = new TimeSpan(00, 30, 00); 
            RadDateTimePicker DoNotCallMinuteBegin = (RadDateTimePicker)item["DoNotCallMinuteBegin"].Controls[0]; 
            DoNotCallMinuteBegin.TimeView.Interval = new TimeSpan(00, 30, 00); 
        } 
    }  



<telerik:GridDateTimeColumn HeaderText="begin Time To Call" UniqueName="DoNotCallMinuteBegin" DataField="FormatedEndTime"  
PickerType="TimePicker" DataType="System.TimeSpan"  >  
</telerik:GridDateTimeColumn> 
<telerik:GridDateTimeColumn HeaderText="end Time To Call" UniqueName="DoNotCallMinuteEnd" DataField="FormatedEndTime" 
  PickerType="TimePicker" DataType="System.TimeSpan" > 
</telerik:GridDateTimeColumn> 
Missing User
 answered on 10 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?