Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
129 views
Dear,

I have problem with ASP.NET RadScheduler in my ASP.NET MVC project again. I'm using built in ContextMenu, but receiving "theForm is not defined" error every time I click with right mouse button.
It was working perfectly for some time, but it has stopped with next release. RadScriptManager is defined in my master page (before RadScheduler is declared).
Do You have any idea what could be wrong?
I can send You access to my development application, but would prefer personal contact by e-mail instead of public forum.

Thank You
Kind regards


Here is part of the code:

  <telerik:RadScheduler runat="server" ID="RadScheduler1" AllowDelete="false" AllowEdit="true"
            RowHeight="16px" Culture="cs-CZ" AllowInsert="false" MinutesPerRow="15" StartEditingInAdvancedForm="false"
            StartInsertingInAdvancedForm="false" OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick"
            OnClientTimeSlotContextMenuItemClicked="TimeSlotContextMenuItemClicked" OnClientTimeSlotClick="OnClientTimeSlotClick"
            OnClientAppointmentDeleting="OnClientAppointmentDeleting" OnClientAppointmentDataBound="OnClientAppointmentDataBound"
            Height="900px" OnClientAppointmentEditing="OnClientAppointmentEditing" OnClientAppointmentContextMenuItemClicked="appointmentContextMenuItemClicked"
            SelectedView="WeekView" DayHeaderDateFormat="dddd, dd MMMM yyyy" HoursPanelTimeFormat="HH:mm">
            
            <AppointmentContextMenus>
                <%--The appointment context menu interaction is handled on the client--%>
                <%--See the JavaScript code above--%>
                <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu">
                    <Items>
                        <telerik:RadMenuItem Text="Export iCalendar" Value="GenerateVCal"
                            ImageUrl="~/Content/Images/Icons/iCalendar16.png" />
                        <telerik:RadMenuItem IsSeparator="True"  />
                        <telerik:RadMenuItem Text="Delete"  Value="CommandDelete" ImageUrl="~/Content/Images/DataEditing/Delete.gif"
                            Enabled="True" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
            </AppointmentContextMenus>
            <TimeSlotContextMenus>
                <telerik:RadSchedulerContextMenu runat="server" ID="TimeSlotContextMenu">
                    <Items>
                        <telerik:RadMenuItem Text="CreateAppointment" Value="CreateAppointment"  />
                        <telerik:RadMenuItem Text="CreateTask" Value="CreateTask"  />
                        <telerik:RadMenuItem Text="CreateEmail" Value="CreateEmail"  />
                        <telerik:RadMenuItem Text="CreateCall" Value="CreateCall" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
            </TimeSlotContextMenus>
            <TimelineView GroupBy="Calendar" GroupingDirection="Vertical" />
            <AdvancedForm Enabled="false" EnableResourceEditing="false" />
            <WebServiceSettings Path="~/Models/SchedulerWebService.asmx" ResourcePopulationMode="ClientSide" />
        </telerik:RadScheduler>
Dimitar Milushev
Telerik team
 answered on 09 Apr 2010
1 answer
125 views
I'm using RadControls for ASP.NET AJAX version Q1 2009, .NET Framework 2.0, VS 2005, IIS 6, and IE 8.

I added a customized InlineEditTemplate to a RadScheduler. When I double-clicked an appoint, the editor displayed correctly, but when I clicked the Cancel or Update button, or resized the editor window, I got a JScript error . However, the data was still posted to the database despite the JScript error. When I removed the InlineEditTemplate (using the default Inline Template), the error went away.

Here are more details:

ASPX code:

<

InlineEditTemplate>

 

 

<span class="rsCustomAppointmentContainerInner">

 

 

<asp:Label ID="Label1" runat="server" Text="Select an OPR"></asp:Label>

 

 

<telerik:RadComboBox ID="RadComboBox1" runat="server"

 

 

DataSourceID="opr_datasource" DataTextField="organization_key"

 

 

DataValueField="organization_key" SelectedValue='<%#Bind("organization") %>' Width="100%">

 

 

</telerik:RadComboBox>

 

 

<asp:LinkButton ID="UpdateButton" runat="server" CommandName="Update" Font-Underline="false" Font-Bold="true" ForeColor="gray">

 

 

<asp:Image runat="server" ID="insertImage" Height="16px" Width="16px" ImageUrl="~/Images/Save.gif" AlternateText="update" />

 

Update

 

</asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

 

 

<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Font-Underline="false" Font-Bold="true" ForeColor="gray">

 

 

<asp:Image runat="server" ID="Image3" Height="16px" Width="16px" ImageUrl="~/Images/cancel.gif" AlternateText="cancel" />

 

Cancel

 

</asp:LinkButton>

 

 

</span>

 

 

</InlineEditTemplate>

 


Error message when clicking the buttons:

  Invalid argument.  Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d1.0.61025.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f0f78f9-0731-4ae9-b308-56936732ccb8%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.1.402.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ab30853f2-6f9f-496e-85c8-cca8f7f2e17c%3a16e4e7cd%3aed16cbdc%3a11a04f7e%3af7645509%3a24ee1bba%3a650fdad%3aa960fda2%3aca44ff11%3a58366029, line 6243 character 1

Error line: 

line 6243: wrap.style.zIndex=parseInt(wrap.style.zIndex)-this._wrapZIndexStep;


Error message when resizing the inline editor:

  'this._template.offsetHeight' is null or not an object  Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d1.0.61025.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f0f78f9-0731-4ae9-b308-56936732ccb8%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.1.402.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ab30853f2-6f9f-496e-85c8-cca8f7f2e17c%3a16e4e7cd%3aed16cbdc%3a11a04f7e%3af7645509%3a24ee1bba%3a650fdad%3aa960fda2%3aca44ff11%3a58366029, line 6279 character 1

Error line:

line 6279: var _128=this._textArea?this._textArea.parentNode.offsetHeight:this._template.offsetHeight;

Thank you very much for your help!
Peter
Telerik team
 answered on 09 Apr 2010
1 answer
160 views
Hi,

I am trying to se Client side API of Telerik RadTabStrip1 but I am getting this error Object doesn't support this property or method.
 In my javascript I am taking the instance of RadTabStrip1  by this js code
var tabStrip= $find("<%= RadTabStrip1.ClientID %>");
var tab
= tabStrip.findTabByText(text);

but tabStrip gets the NULL value and if I write the following code
RadTabStrip1.findTabByText(text);
then RadTabStrip1 object is being made but it din't recognize any client side methods of this control and I get the error Object doesn't support this property or method.
In my aspx file I have put the control in this way

<

 

telerik:RadTabStrip ID="RadTabStrip1" runat="server" Height="30px"

 

 

Width="456px" ></telerik:RadTabStrip>

 

and from the code behind I am adding tabs to this tab strip. Please take a look of code snippet

For Each tabNode In tabList

Dim myTab1 As RadTab = New Telerik.Web.UI.RadTab

myTab1.Text = tabNode.GetAttribute("title")

tabId = tabNode.GetAttribute("id")

myTab1.Value = tabId

RadTabStrip1.Tabs.Add(myTab1)

Next

I am getting all the tabs in the Tab strip but at the same time I get the above mentioned script error also.
Please help. I have tried to find the solution entire day but nothing worked so far.

Yana
Telerik team
 answered on 09 Apr 2010
3 answers
127 views

I have 2 treeviews and when I check something in one I need something to be checked in the other. The one that has the event is working and calling my checkNode(text) function. The checkNode function is executing everything correctly, except when it calls the node.check() nothing is happening. I made sure it is finding the node and has the right object, it is just not checking it. Code is below:


function

 

onNodeChecked(sender, args) {

 

 

var node = args.get_node();

 

 

if (node.get_checked()) {

 

 

if (node.get_text() == "Region") {

 

checkNode(

"Region");

 

checkNode(

"State");

 

}

}

}

 

function checkNode(text) {

 

 

var tree = $find("<%= ColumnTreeView.ClientID %>");

 

 

var node = tree.findNodeByText(text);

 

 

var nodetest = tree.findNodeByText("Region");

 

nodetest.check();

 

var nodes = tree.get_allNodes();

 

 

if (node != null) {

 

alert(

"checking something");

 

node.check();

}

}

Yana
Telerik team
 answered on 09 Apr 2010
1 answer
153 views

Hi,
I am using toolTip in my Grid, and want to view benefitDetails in a ToolTip when I hold the mouse over a benefit.
A tooltip appear, but I cant see any details when I hold the mouse over a benefit.

Here is my code:
<telerik:RadToolTipManager ID="RadToolTipManager1" OffsetY="-1"
    runat="server" RelativeTo="Element"
    Position="MiddleRight" >
    <TargetControls>
        <telerik:ToolTipTargetControl TargetControlID="RadGrid1" Value="benefitDetails" />
    </TargetControls>
</telerik:RadToolTipManager>
<telerik:RadGrid AutoGenerateColumns="false" ID="RadGrid1" AllowFilteringByColumn="false"
    AllowSorting="false" ShowFooter="True" runat="server" GridLines="None" AllowPaging="false"
    Skin="Outlook" OnColumnCreated="RadGrid1_ColumnCreated" HeaderStyle-CssClass="RgGroupCol"
    OnItemDataBound="RadGrid1_ItemDataBound" OnItemCreated="RadGrid1_ItemCreated">
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <HeaderStyle BackColor="#507CD1" ForeColor="white" Font-Size="XX-Small" />
    <FooterStyle BackColor="#D3E9BF" CssClass="reportFooter" />
    <GroupHeaderItemStyle Font-Bold="True" ForeColor="White" CssClass="dataHead" />
    <AlternatingItemStyle BackColor="transparent" />
    <MasterTableView ShowGroupFooter="True" AllowMultiColumnSorting="false" DataKeyNames="benefitsId">
        <Columns>
            <telerik:GridTemplateColumn>
                <ItemTemplate>
                   <asp:HyperLink ID="targetControl" runat="server" NavigateUrl="#" Text='<%# Eval("description") %>'></asp:HyperLink>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="basis" HeaderText="Basis" UniqueName="basis"
                HeaderStyle-CssClass="dataHead" DataFormatString="{0:#}">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn Aggregate="Sum" DataField="employerCost" HeaderText="EmployerCost"
                DataFormatString="{0:N0}" UniqueName="employerCost" FooterText="Sum: " HeaderStyle-CssClass="dataHead"
                ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="benefitDetails" UniqueName="benefitDetails" HeaderStyle-CssClass="dataHead"
                Visible="false">
            </telerik:GridBoundColumn>
        </Columns>
        <ItemStyle BackColor="#BFD5E9" />
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="category" FieldAlias="category" FormatString=""
                        HeaderText="" SortOrder="None" />
                </GroupByFields>
                <SelectFields>
                    <telerik:GridGroupByField FieldName="categoryDescription" HeaderText=" " FieldAlias="categoryDescription"
                        FormatString="" HeaderValueSeparator=" " />
                </SelectFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
        <RowIndicatorColumn>
            <HeaderStyle BackColor="#507CD1" Width="20px" />
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
        </ExpandCollapseColumn>
    </MasterTableView>
</telerik:RadGrid>


Code behind:
        protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
            {
                Control target = e.Item.FindControl("targetControl");
                if (!Object.Equals(target, null))
                {
                    if (!Object.Equals(this.RadToolTipManager1, null))
                    {
                            this.RadToolTipManager1.TargetControls.Add(target.ClientID, (e.Item as GridDataItem).GetDataKeyValue("benefitsId").ToString(), true);

                    }
                }
            }
    }

Anyone can help me?

Thanks,
Thaya
Svetlina Anati
Telerik team
 answered on 09 Apr 2010
1 answer
151 views

Hi,

I m having some three asp:button in my page and i m using formdecorator to initialize skins to that buttons.

But formdecorator loading at all server side events. I want to set it once and i dont want to load it again & again.

And it take some 6 secs to set skin to that buttons after server side events.

Below is the formdecorator i have used,

 

<telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="Buttons" >

 

</telerik:RadFormDecorator>

and below is the button in Hierarchygrid,

 

 

 <CommandItemTemplate> 
                            <input type="Button" runat="server" value="MoveDown" onclick="moveRowDown()">  
                              
                            <input type="Button" runat="server" value="MoveUp"  onclick="moveRowUp()">  
                                                  
                 </CommandItemTemplate> 
 

Please find the screenshots to get clear idea about the problem.
Give suggestions to solve it.

Regards,
Maha

Lini
Telerik team
 answered on 09 Apr 2010
2 answers
167 views
Hi,

I have on my page a RadGrid and an ASP Button. Default the Grid has a PageSize of 10. When I click the ASP Button, the Grid is exported to Excel using the default RadGrid export method. The properties I have set for Exporting are:
  • ExportOnlyData = true
  • IgnorePaging = true
  • OpenInNewWindow = true

When the button is clicked, the Grid is correctly (all rows) exported to Excel, but when I perform an action (after the export) on the Grid itself (sorting,paging,etc.) de AllowPaging property of the Grid is set to False and all rows in the Grid are shown on the Page.
When I set the AllowPaging property back to True, after the Export, still all rows in the Grid are shown on the Page.
Offcourse when I set the IgnorePaging property to False, this problem does not occur!

Can anybody help me with this problem?

Thanks,
Danny


P.s. I am using Telerik Controls versie 2009 Q2

Danny Scheelings
Top achievements
Rank 1
 answered on 09 Apr 2010
1 answer
93 views
Hello

I have a grid (Rad AJAX 2010 Q1 C# 3.5) that is in a content page (the masterpage provides the navigation control and general look of the page while the content page shows the grid-content itself).  I finally got my grid to cosmetically resize to fit the available space that the content page provides for it on 'all' browsers.  When I say resize to fit I mean that as the browser window is resized the grid resizes to fill the new amount of space provided to it. (a formidable challenge on its own)  

My new  quest is this:

with the grid resizing and occupying 100% of the available Height and Width, the number of data rows displayed in this grid remains constant leaving an empty area in the grid at the bottom where I'd like to display more rows.  I have read the forums looking for an example like this but haven't found any...  Can you provide me with an example of how to do this within a content page.  I am sure that other readers will be interested in an example such as this.

thanks in advance!
AJ
Dimo
Telerik team
 answered on 09 Apr 2010
1 answer
156 views
Is there any opportunity in the future to have RadAjaxPanel's container element be customizable?  If I could use a TBODY instead of a DIV it would be fantastic to support in-table update panels easily.
Dimo
Telerik team
 answered on 09 Apr 2010
3 answers
345 views
Hi,

I am using a GridDropDownColumn and in some cases it cannot match the selected item with the list because of the case sensitive search.
On the RadComboBox there is a field iscasesensitive, i do not see this setting on the GridDropDownColumn.
Is there another way to do this, perhaps by overruling the compare in some way?

Tom
Radoslav
Telerik team
 answered on 09 Apr 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?