Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 views
Hi-

I would like to use the advanced edit form to allow the users to change some resources/properties of appointments. However, I do not want the user to be able to edit the begin or end dates for appointments. I realize that if I set the RadScheduler AllowEdit property to false, the advanced edit form will not show. I cannot even call it from the server side with
RadScheduler1.ShowAdvancedEditForm(appt)
If I set the the AllowEdit property to true, I can show a customized edit form. However the user can resize the apponitments and move them in the scheduler, changing the start and end dates. Eventhough this does not actually persist changes in my application, I would prefer that the user not be able to change appoinments in this way.

Does anyone know of an approach for achieving this: prevent the user from resizing or moving appointments while utilizing the edit form?

Thanks for any help

Michael
MFitzpatrick
Top achievements
Rank 1
 answered on 06 Aug 2010
3 answers
444 views
Hi,

I'm using RadScheduler with a custom DbSchedulerProviderBase. How can I tell, inside DbSchedulerProviderBase.Delete(RadScheduler, Appointment) method if user chose to delete just that recurrence occurrence or the entire serie?

TIA,

Rubens
T. Tsonev
Telerik team
 answered on 06 Aug 2010
1 answer
111 views
Hi,

I have a databound radpanelbar and was wondering how I could bind a call to a clientside javascript function to individual panelbar items.

I have the following simple database table that the panelbar is bound to:

[ItemID]
[ItemText]
[ParentID]
[ClientSideFunction ]

The [ClientSideFunction] Field is the javascript call I need to execute when the panelbar item is clicked.

Thanks
Shinu
Top achievements
Rank 2
 answered on 06 Aug 2010
1 answer
95 views
Hi,

i have a radgrid and i have grouping enabled. Collapse and Expand are done server-side. I also need to use a  menu when i click on a row in the radgrid. What would be the suggestion of doing this?

Regards
daaland1972
Tsvetoslav
Telerik team
 answered on 06 Aug 2010
1 answer
162 views
Seems that get_itemIndexHierarchical returns incorrect value when there are collapsed groups over the selected item. 

I have an ajaxified radgrid with radcontextmenu that calls a function. In this function eventargs.get_itemIndexHierarchical is used to get the index. This is done according to your example with radgrid and radcontextmenu. Sender.get_masterTableView().get_dataItems()[index].get_element() is then called but returns null, which is not the wanted behaviour. Expand/collapse is done server-side and only the expanded items are transferred to the client as i can see. This is working when groups over the selected item are expanded.

Maybe there are other ways to get index of the selected item when using radcontextmenu and radgrid with expand/collapse server-side? 

Regards
daaland1972
Martin
Telerik team
 answered on 06 Aug 2010
2 answers
193 views
Hi Telerik Team,

I am having problems with RadTabStrip in an UpdatePanel/RadAjaxPanel in DNN user control. After first load of the page when page gets asynchronously postback by clicking a Button inside the tab, i get the javascript error because somehow tabstrip control added twice and the error message is:

Two components with the same id can't be added to the application

Is there some setting or other thing that I am missing to do this?

Regards,
Zeeshan
Zeeshan Abbasi
Top achievements
Rank 1
 answered on 06 Aug 2010
3 answers
90 views
Hi,

I created a simple page with two telerik controls, one per web part. I set up the controls to connect as do standard controls but the two rad controls display a greyed connection option... Isn't it enough to use this.allowconnect = true to authorize connections?

Thx,
Yipi!
Tsvetoslav
Telerik team
 answered on 06 Aug 2010
5 answers
134 views
I'm having trouble using the code in one of the demos that allows for the tabstrip to show the child elements of the initial tab onmouseout.  Here's the code I'm using.

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="ScriptManager" runat="server" />
    <telerik:RadCodeBlock runat="server" ID="RadCodeBlock1">
    <script type="text/javascript" language="javascript">
        function SelectMyTab(sender, eventArgs) {
            var tab = eventArgs.get_tab();
            tab.select();
        }

        function UnSelectMyTab(e) {
            var tabStrip = $find('<%= RadTabStrip1.ClientID%>');
            if (!tabStrip) return;
            //Find the element which the mouse is over
            var destElement = e.relatedTarget || e.toElement;
            if ($telerik.isDescendant(tabStrip.get_element(), destElement))
                return;
            var initialTab = tabStrip.findTabByText(tabStrip.get_attributes().getAttribute("InitialTab"));
            initialTab.unselect();
            initialTab.selectParents();
        }
    </script>
    </telerik:RadCodeBlock>
    <div>
        <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" UnSelectChildren="True"
                                OnClientMouseOver="SelectMyTab"
                                OnClientMouseOut="UnSelectMyTab(event)"
                                ClickSelectedTab="True"
                                SelectedIndex="0"
                                AutoPostBack="True" >
            <Tabs>
                <telerik:RadTab runat="server" Text="Root RadTab1" Selected="true">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="Child RadTab 1">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Child RadTab 2">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Root RadTab2">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="test">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="test2">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTab>
                <telerik:RadTab runat="server" Text="Root RadTab3">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
    </div>
    </form>
</body>



c# code:

protected void Page_Load(object sender, EventArgs e)
    {
        RadTabStrip1.Attributes["InitialTab"] = RadTabStrip1.InnermostSelectedTab.Text;
    }


Not sure what I'm missing but I get a javascript error that says "Object doesn't support this property or method".

- Kirk
Kirk Thomas
Top achievements
Rank 1
 answered on 06 Aug 2010
1 answer
123 views
Hi Telerik Team,

Can any one help me how to bind data for the Silver light Chart in asp.net.
is there any way to directly bind data to the silverlight chart without the Entity Framework databind method.
how do i bind my sql datatable to Chart?
Do i have have to learn silverlight for changing the datasource of the file ChartIntegrationApplication.xap

Plzz help aspd..

Thanks
K²

Vladimir Milev
Telerik team
 answered on 06 Aug 2010
1 answer
138 views
This may or may not be your problem as it only occurs using IE8, not IE7 or Firefox.  On the other hand, it only seems to happen with the RadComboBox, so I thought I'd bring it to your attention just in case.

I'm using ASP.NET 3.5 and when I select an item in a combobox, it changes the contents of a related combobox and label field.  I'm using the RadAjaxManager in it's simplest for for this.  The problem is that in IE8, it scrolls to the top of the page, and you have to scroll down to the control again as the page is longer than the screen. (The MaintainPositionOnScrollBack page directive has no effect)  To get around this, I have put in an ugly javascript hack to set the scroll position when the combobox is opened, and then update the scroll position in the ClientEvents property of the AjaxManager to the previous position.  This works, but causes a brief flicker.  I was wondering if you had a more elegant solution.

<script type="text/javascript">
      // Ugly hack
    var nonIEScrollPosition = 0;
    var IEScrollPosition = 0;
    function setScrollPosition(sender, args)
    {
        nonIEScrollPosition = document.body.scrollTop;
        IEScrollPosition = document.documentElement.scrollTop;
    }
    function updateScrollPosition(sender, args)
    {
        document.body.scrollTop = nonIEScrollPosition;
        document.documentElement.scrollTop = IEScrollPosition;
    }
</script>
<telerik:RadAjaxManager ID="ajaxManager" runat="server">
    <ClientEvents OnRequestStart="updateScrollPosition"></ClientEvents>
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="ddlTMS">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="ddlBuNo" LoadingPanelID="radLoadingPanel" />
                <telerik:AjaxUpdatedControl ControlID="lblCostCenter" LoadingPanelID="radLoadingPanel" />
            </UpdatedControls>

The control is defined as so:

<telerik:RadComboBox ID="ddlTMS" Skin="Simple" DataTextField="TypeModelSeriesID" DataValueField="TypeModelSeriesID"
    OnClientDropDownOpening="setScrollPosition" AutoPostBack="true" runat="server"></telerik:RadComboBox>
<asp:CustomValidator ID="cvTMS" Display="Dynamic" ControlToValidate="ddlTMS" ValidationGroup="Save" EnableClientScript="false"
    OnServerValidate="CheckTMS" runat="server"></asp:CustomValidator>
Simon
Telerik team
 answered on 06 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?