Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
267 views
Hi,

I have a problem in my announcement in my MOSS 2007,  After I enabled RadeditorMoss. The page always validated the body even it is unempty and then the announcement cannot save anymore. Do you have any solution on my problem?

Please see the attached files for you ready reference.

Thank you.
Stanimir
Telerik team
 answered on 09 Apr 2010
1 answer
212 views
I have 2 grid columns that are bound to 2 datetime fields.  The database allows NULL values because there are times that a user can fill out some information on the form but leave the datetime empty.  The problem is when I save the edited grid rows any blank datetime fields get saved back to the database as '1/1/1900 12:00 AM'.  I have tried setting the ConvertEmptyStringToNull=true but it doesn't affect the save.
Radoslav
Telerik team
 answered on 09 Apr 2010
1 answer
248 views

Hi Telerik Team,

We are currently evaluating  your RadTabStrip and RadMultipage controls to use in our project.

We have the following requirements,

1) We have RadTabstrip control and RadMultipage control in the form. On Clicking (or) Loading on the TabStrip Item, We want to view the corresponding . aspx page  in the Multipage Control.

2)We have get the Page Url and Page Title  from Database. Page Title assign to the radtabstrip and Pageurl Assign to the Multipage Control, Based on Page Url, the Page will be open inside the Multipage Control.

 

Notes,

 We have existing .aspx page url, page Title get from database, this Corresponding page url .aspx page will  load in multipage control and  corresponding Page title assign to the Tab strip.

Right now we are using this Coding for loading RadTabstrip and  RadMultipage Control

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

    {

     RadTab RadTabVar = new RadTab();

     RadTabVar.Text = Convert.ToString(DtBindScreenValue.Rows[i]["sDefaultName"]);

     RadTabVar.Value = Convert.ToString(DtBindScreenValue.Rows[i]["aspxPageUrl"]);

     RadTabVar.ImageUrl = Convert.ToString(DtBindScreenValue.Rows[i]["Image"]);

     pnxWindowStrip.Tabs.Add(RadTabVar);

 

      RadPageView pageView = new RadPageView();

      pageView.ID = Convert.ToString(DtBindScreenValue.Rows[i]["sDefaultName"]);

      PnxMultipageView.PageViews.Add(pageView);

     

      RadTabVar.PageViewID = pageView.ID;

   

   }

 

This is our page screen Shot. This page contain radtabstrip and Multipage control.

Please provide as a working sample with our requirement.

Thanks in advance.

 

Regards,

 

 

 

 

 

Veronica
Telerik team
 answered on 09 Apr 2010
1 answer
76 views
Hello,

I am using the latest version of ASP.Net Ajax controls. I created a Visual Studio web project (using the Telerik template)  that includes a default.aspx page with a RadChart, Everything works correctly but now I need to deploy it to a Sharepoint 2007 site.

What is the way to add this project (the aspx page, associated resources, settings, etc) to Sharepoint?
Is it possible to integrate this new page into my Sharepoint site using a very simple method like a page viewer web part (standard web part that comes with Sharepoint)?

Thank you,
M. R.
Peter
Telerik team
 answered on 09 Apr 2010
3 answers
162 views
Hi
I have an input box on my Master page.
The only event to hand is 'OnTextChanged' so I can type something in the text box and hit enter or click the button and it posts back to the code 'Master_Search_TextChanged' however that is also true of moving your mouse out of the box and clinking on another link. The event 'Master_Search_TextChanged' is always fired regardless of ony change in user intention how can you stope this without using classic code of one text box and one button ?
I have tried using Javascript to consume or control events (eg 'DisableOffFocusSearching') as outlined in the code libs but nothing works.
Any suggestions
Doug.


<div class="search FloatFlds">  
<%-- 
<telerik:RadTextBox   
                                  
ID="Master_Search1" ShowButton="true" BorderWidth="0px" ButtonsPosition="Right" 
 EmptyMessage="Search" AutoPostBack="true" CssClass="box-" runat="server" EnableAjaxSkinRendering="true" 
OnTextChanged="Master_Search_TextChanged" AutoCompleteType="Search" BorderStyle="None" 
Width="200px" Skin="WebBlue">  
<ClientEvents OnButtonClick="DisableOffFocusSearching" /> 
</telerik:RadTextBox>
--%> 
 
<div style="float: left; display: inline">  
<asp:TextBox ID="Master_Search" runat="server"   
AutoCompleteType="Search"   
CssClass="box" BorderWidth="0px" Width="179px"></asp:TextBox></div>  
 
<div style="float: right; display: inline">  
<asp:ImageButton ID="LinkButton19" BorderStyle="None" BorderWidth="0px" 
OnClick="Master_Search_TextChanged" 
 ImageUrl="~/App_Themes/t/resources/css/images/buttons-bullets/search_btn.gif" 
runat="server" /></div>  
</div> 
<!-- 

 

function DisableOffFocusSearching(sender, eventArgs) {
if (sender.get_enabled()) sender.disable(); else sender.enable(); } //DisableOffFocusSearching

 

 

 



-->
Dimo
Telerik team
 answered on 09 Apr 2010
1 answer
119 views
I have an ComponentArt treeview control that is skinned to look like a menu control per my clients request.  It looks and work perfect except for that fact it is not a Telerik control.  I would love to use the RadTreeView control but I cannot figure out all of the css components needed to make it work properly.  Please see the attached image of the two controls side by side and you will see what I am trying to accomplish.  I followed the example of how to create your own skin which was very useful but I just can't figure out what I'm missing.

 

.RadTreeView_Skins,  
.RadTreeView_Skins a.rtIn,  
.RadTreeView_Skins .rtEdit .rtIn input  
{  
        background-image: url(TreeView/item_bg.gif);  
 
    background-color:#666666;  
    border: 1px solid #666666;   
    font-family: arial, verdana;   
    font-size: 10px;   
    font-weight: bold;   
}  
 
.RadTreeView_Skins .rtPlus,   
.RadTreeView_Skins .rtMinus  
{  
    background-image: url('TreeView/plusminus.png');  
}  
 
.RadTreeView_Skins .rtChecked,  
.RadTreeView_Skins .rtUnchecked,  
.RadTreeView_Skins .rtIndeterminate  
{  
    background-image: url('TreeView/TriState.png');  
}  
 
.RadTreeView_Skins .rtHover .rtIn   
{  
    background-image: url(TreeView/item_Expanded_bg.gif);  
    border: 1px solid white;  
    font-family: arial, verdana;   
    font-size: 10px;   
    font-weight: bold;   
    cursor:hand;  
    color:#000;  
    width:350px;  
}  
 
.RadTreeView_Skins .rtSelected .rtIn  
{  
    background-image: url(TreeView/item_expanded_bg.gif);  
    border: 1px solid white;  
    font-family: arial, verdana;   
    font-size: 10px;   
    font-weight: bold;   
    cursor:hand;  
    color:#000;  
    width:350px;  
}  
 
.RadTreeView_Skins .rtSelected .rtLoadingBefore,  
.RadTreeView_Skins .rtSelected .rtLoadingAfter,  
.RadTreeView_Skins .rtSelected .rtLoadingBelow  
{  
    color: #333;  
}  
 
.RadTreeView_Skins .rtLoadingIcon  
{  
    background-image: url('TreeView/LoadingIcon.gif');  
}  
 
.RadTreeView_Skins .rtLI .rtEdit .rtIn  
{  
    border-color: #6c6c6c;  
    background: #fff;  
}  
 
.RadTreeView_Skins_disabled .rtIn,  
.RadTreeView_Skins .rtDisabled .rtIn  
{  
    color: #ccc;  
      
Peter
Telerik team
 answered on 09 Apr 2010
3 answers
115 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
119 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
154 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
119 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?