Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
140 views
I Use custom Skins and disable all Skins using  the web.config. The problem is that RadTabStrip and Radwindows do not render properly.  Please see images. If I change   <add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />  to   <add key="Telerik.EnableEmbeddedBaseStylesheet" value="true" /> everything start working. I use SharePoint 2010 as host and IE8. IE has limited of css files (31 css) and I try to use custom skins to minimize the css files so if I disable the base stylesheet I will be fine. So I will have only my custom skins which are 3 css.

Tha RadTabstrip show the list of tabs as regular ul and li. and the radwindows show all the images around the box.

Web.Config
    <!-- Disables the embedded scripts and skins for all RadControls -->
    <add key="Telerik.EnableEmbeddedSkins" value="false" />
    <add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />
    <add key="Telerik.EnableEmbeddedScripts" value="true" />
 
Kate
Telerik team
 answered on 09 Nov 2012
1 answer
329 views
Hello,
I'm working with type HtmlChart columns.
I'm assigning the title of the chart from code-behind.
Something like:
MyRadHtml.ChartTitle.Text = "Percentage of progress ...";
I need to insert into the title a line break.
Can you help?
Thank you.
Marin Bratanov
Telerik team
 answered on 09 Nov 2012
1 answer
78 views
Hello, i'm looking for the a way to replace the "Default2006" skin in my Asp.Net program

"<td><telerik:RadDatePicker ID="calMaturityDate" runat="server" Skin="Default2006"></telerik:RadDatePicker></td>"

and downloaded and pasted in a Skins directory into my Visual Studio with the "Default2006" skin directory, but it doesn't seem to be picking it up and i also tried the "Skin=Default" but the "Default" skin doesn't present the fine lines around the grid and so on

thanks very much for any suggestions on how to fix this or any alternative approaches?

bk

 

Bozhidar
Telerik team
 answered on 09 Nov 2012
8 answers
148 views
Hi there,

I want to be able to call some server side methods when an appointment is moved, resized or deleted, but I do not want a postback to occur.  So I can capture the client side move event via OnClientAppointmentResizeEnd, OnClientAppointmentMoveEnd and OnClientAppointmentDeleting, but what I then want to do is cancel the postback that would happen.  I do not want to cancel the client side changes though, so args.set_cancel(true) will not do what I am after.

Is there a way to do what I'm trying to do?

Thanks for your help.

Matthew
Plamen
Telerik team
 answered on 09 Nov 2012
3 answers
159 views
Hi
I am working with RadControlsForAspNetAjaxControlPanel_2012_2_91
and SQLServer 2008 R2.I found the expand recurrence rule demo posted
and i am using it to expand the recurrence rule of appointments.I am using
a windows service that collects the appointments for "execution" every minute.  
In case of an appointment execution failure i need to try to execute again
this appointment as long as there is no other appoinment that is bound to the same resource.
I am trying to get the latest instance from a task for a group but i can't.
e.g This is by Scheduler table containing two recurring appoinments
DTSTART:20121101T103000Z  DTEND:20121101T110000Z  RRULE:FREQ=HOURLY;COUNT=3;INTERVAL=1  for resource 7
DTSTART:20121101T110000Z  DTEND:20121101T113000Z  RRULE:FREQ=HOURLY;COUNT=5;INTERVAL=1 for resource 7
DTSTART:20121101T133000Z  DTEND:20121101T133500Z  RRULE:FREQ=HOURLY;COUNT=2;INTERVAL=1  for resource 8

I use the sql max function for start date but displays me the third instance from the first rule and the fifth instance from the second rule and the second instance from the third rule
Is there any other way to get the latest instance from all instances for a specific resource and for every resource???
(the fifth from second rule and the second from the third rule only)
  

Plamen
Telerik team
 answered on 09 Nov 2012
1 answer
104 views
Hello,

It appears that deploying RadControlsSP.wsp now makes some changes to web.config automatically?  Specifically I believe I am seeing an http handler automatically being registered.  Can you confirm this?

Also, if this is true, is there any way to stop this from happening?  We have deployments running the old version of this package, which did not automatically add the handler, so we created a powershell script that added it ourselves.  But now when deploying the updated RadControlsSP.wsp package we are left with duplicate handler entries.  A manual fix is possible, but do automated deployments to numerous environments, and manually fixing this issue on every web server in a SharePoint farm upon each deployment would be incredibly tedious.

Thank you,

Chris
Dobromir
Telerik team
 answered on 09 Nov 2012
2 answers
99 views

Hi,

I'm using Tabstrig in an user control that is dynamicly loaded in my page
Below is the code of my user control :

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="org_crscls.ascx.cs" Inherits="WBTManager.manageUser.org_crscls" %>
<%@ Reference Page="org.aspx" %>
 
<telerik:RadScriptBlock ID="PageRadScriptBlock" runat="server">
    <script type="text/javascript">
    <!--
        ActiveTab('org_crscls_td', 'OrgMenu_selected', 'OrgMenu', 'td', 'tableOrgMenu');
        var theForm = document.getElementById('wbtform');
        function checkForm(pForm) {
            var bTest = true;
            return bTest;
        }
    //-->  
    </script>
</telerik:RadScriptBlock>
 
<div id="OrgContent" class="OrgContent">
    <telerik:RadTabStrip ID="RadTabHtml" SelectedIndex="0" runat="server" MultiPageID="RadMultiPageCrsCls">
        <Tabs>
            <telerik:RadTab runat="server" Text="Courses" PageViewID="RadPageViewCourses">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Classes" PageViewID="RadPageViewClasses">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPageCrsCls" runat="server" SelectedIndex="0">
        <telerik:RadPageView ID="RadPageViewCourses" runat="server">
            Courses...
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageViewClasses" runat="server">
            Classes...
        </telerik:RadPageView>
    </telerik:RadMultiPage>
</div>
 
<div class="WinButton">
    <div class="WinButtonDetailsAdmin">
        <asp:Button id="BtnCancel" runat="server" Cssclass="button90_second_action" OnClientClick="CloseRadWindow();" />
        <asp:Button id="BtnSubmit" runat="server" Cssclass="button90_main_action" OnClientClick="return(checkForm(theForm));" />
    </div>
</div>

When I first load my control, the first tabstrip element is selected but both pageview appears...
If I then click on the second tab, only the 2nd pageview displays  (that's fine...)
If I go back to the first tab, only the 1st pageview displays  (fine too...)

My problem is at the first load of the control.
My code behind page doesn't contain anything regarding the tabstrip or pageview.

Has someone alreday faced that issue ? nad has a solution ?

Regards.


Nencho
Telerik team
 answered on 09 Nov 2012
3 answers
167 views
I'm developing some prototype and i'd like to make use of ribbon bar just like an office application, for example, i want the ribbon bar to have that application menu with some options like, new, save, and stuff like that. I'm also using a panel bar as a side menu.

The scenario is:
I need to change the tabs and buttons of the ribbon bar with an event from the side bar.

The event on the sidebar changes the xml that populates the ribbon bar but that is where I have a problem.

To change the ribbon bar with xml I have to remove the application menu because with it, I get some exception.

Sys.WebForms.PageRequestManagerServerErrorException:
Failed to load viewstate.  The control tree into which viewstate is being
loaded must match the control tree that was used to save viewstate during
the previous request. For example, when adding controls dynamically, the
controls added during a post-back must match the type and position of the
controls added during the initial request.


I believe that it could be solved if I add definitions for application menu in the xml and use my population event.
But the xml that was created from the method from ribbonbar ("GetXml()") didn't create anything.

I'd like to know if I should add it manually or the tags to do so. (if possible)
Or even another way to make something like that (use the dynamic population for the ribbon bar with application menu)

Thanks
Bozhidar
Telerik team
 answered on 09 Nov 2012
1 answer
243 views
Hi friends,

Am using Radscheduler to Book the Employee for the Particular Project, i need to display the Employees in the Left side, on the right side it will list Project Period Date which i mentioned.
am not using any SqlDataSource / ObjectDatasource for Binding, am using only one Dataset which contains Employee List and also the Date Allocated to the Employees

SQL Returns

EMPID        PROJ_CODE      START_DATE           STATUS
-----------------------------------------------------------------------------------------------
00522         APN_PROJ          05-SEP-2012           BOOKED

00522         APN_PROJ          06-SEP-2012           BOOKED

00522         APN_PROJ          NULL                        NULL

00522         APN_PROJ          08-SEP-2012           PENDING


When i binding this it show as like the return from the SQL Values.

Kindly Check the Attached file. for two Dates. it shows two records for me

    <telerik:RadScheduler runat="server" ID="RadScheduler1" GroupBy="RTT_EMP_STAFFID,Start" Skin="Black"  ShowNavigationPane="false" ShowViewTabs="false"
                OverflowBehavior="Auto" TimelineView-HeaderDateFormat="dd-MMM-yyyy" DataKeyField="RTT_EMP_STAFFID"
                TimelineView-ColumnHeaderDateFormat=" ddd - dd"    >                  
                  <ResourceTypes>
                        <telerik:ResourceType KeyField="RTT_EMP_STAFFID"  Name="RTT_EMP_STAFFID" TextField="RTT_EMP_STAFFID" ForeignKeyField="RTT_EMP_STAFFID" ></telerik:ResourceType>
                   </ResourceTypes>
                
            </telerik:RadScheduler>
           


aspx.cs File
==========

 ds_temp = objProjectBooking.GetEmployeeHolidayWeeklyOff(objSessionInfo, "ProjCode", "Activity ID", "", "", "", "", "01-SEP-2012", "31-DEC-2012", "", "E");
                    if (ds_temp.Tables.Count > 0 && ds_temp.Tables[0].Rows.Count > 0)
                    {

                        RadScheduler1.SelectedDate = Convert.ToDateTime("01-SEP-2012");
                        RadScheduler1.SelectedView = SchedulerViewType.TimelineView;
                        RadScheduler1.TimelineView.NumberOfSlots = Convert.ToInt32(10);
                        //RadScheduler1.DataKeyField = "ID";
                        RadScheduler1.DataSubjectField = "Subject";
                        RadScheduler1.DataStartField = "Start";
                        RadScheduler1.DataEndField = "End";
                        RadScheduler1.GroupBy = "RTT_EMP_STAFFID,Start";
                        RadScheduler1.GroupingDirection = GroupingDirection.Vertical;
                        RadScheduler1.DataSource = ds_temp;    
                        RadScheduler1.ResourceTypes[0].DataSource = ds_temp;
                        RadScheduler1.DataBind();                     

                    }


what was the Problem in this kinldly Help me

Plamen
Telerik team
 answered on 09 Nov 2012
0 answers
58 views
Hi,

I am using version 2011.3.1305.35 of the ASP.NET for AJAX controls.

When I insert a treeview node using client side code, and then drag and drop it, the server side code's SourceDragNode.Value is wrong.  It is the value of the node that is directly ABOVE my inserted node.

I am doing the following:
1)  Using a command on a context menu that uses javascript and an asp ScriptManager and a ServiceReference to insert a node into the treeview.  The javascript that runs in the context menu clicking event is:

selectedFolderParentID = treeNode.get_value();
var UserIDHiddenField = document.getElementById('=UserIDHiddenField.ClientID;');
Portal.UserFavoritesWS.AddFavoriteFolderReturnNode(UserIDHiddenField.value, selectedFolderParentID, folderName, OnFolderInsertCompleted);
eventArgs.set_cancel(true);


2) Then in the callback function (OnFolderInsertCompleted - which is run when the web service returns), I insert the node into the tree at the correct location and put it into edit mode:

function OnFolderInsertCompleted(nodeData) {
var tree = $find("=Me.SavedFavoritesTreeView.ClientID");
var node = new Telerik.Web.UI.RadTreeNode();
tree.trackChanges();
var folderName = nodeData.Text;
var folderID = nodeData.Value;
node.set_text(folderName);
node.set_value(folderID);
node.get_attributes().setAttribute("ObjectTypeID", "80");
node.set_cssClass("savedFolderNode");
var parentNode = tree.findNodeByValue(selectedFolderParentID);
parentNode.get_nodes().add(node);
parentNode.expand();
if (parentNode != tree && !parentNode.get_expanded()) {
    parentNode.set_expanded(true);
}
node.select();
tree.commitChanges();
if (node)
   setTimeout(function () { node.startEdit() }, 20);}


ALL OF THAT WORKS, and I can see that the node's value is indeed the correct ID that was sent back from the node data by the web service.

3) However, if I then immediately Drag and Drop that node (before any other server side page refresh or postback), the server-side SourceDragNode.Value is NOT from the node I've dragged.  It is the value from the node directly ABOVE the node I've dragged.

The result of this, since I have the wrong SourceDragNode.Value, is that the wrong node is being dragged and dropped!

Of course on any full page refresh or postback the SourceDragNode.Value is correct and drag and drop works find because I rebind my treeview on the server, so everything is property sync'ed up at that time...  But it seems like if I do the database insert from the client and also add the node from the client, the server code isn't yet aware of that node (like it is accessing the wrong index item or something).

Any Ideas on what I'm doing wrong or how I can fix this?

Thanks,
Brent
Brent Hetland
Top achievements
Rank 1
 asked on 09 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?