Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
112 views
Hi everyone,

The MS Outlook Calendar (day view) contains functionality where if the duration of an appointment is less than the minutes per row a little hook or protusion appears at the top left of the appointment.

Has this functionality been implemented within the rad scheduler? I've been asked to implement it as part of my scheduler's functionality, and don't know if it is possible.

Many Thanks

Mark
Plamen
Telerik team
 answered on 05 Mar 2012
1 answer
119 views
I installed the 2012_1_CTP of the SAK and attempted to activate the RadGrid in a site collection.  I got a file not found error on the ".dwp" web part file.  After inspecting the Elements.xml file in the folder containing the web part, I discovered the path was not specified properly. I removed the erroneous "RadGridSharePoint" directory level from the Path attribute.

Does not work:
  <Module Name="TelerikSPRadGridWebPart" List="113" Url="_catalogs/wp">
    <File Path="RadGridSharePoint\TelerikSPRadGridWebPart\TelerikSPRadGridWebPart.dwp" Url="TelerikSPRadGridWebPart.dwp" Type="GhostableInLibrary">
      <Property Name="Group" Value="Telerik" />
    </File>   
  </Module>
</Elements>

Works:
  <Module Name="TelerikSPRadGridWebPart" List="113" Url="_catalogs/wp">
    <File Path="TelerikSPRadGridWebPart\TelerikSPRadGridWebPart.dwp" Url="TelerikSPRadGridWebPart.dwp" Type="GhostableInLibrary">
      <Property Name="Group" Value="Telerik" />
    </File>   
  </Module>
</Elements>

This allowed me to properly activate the SPRadGrid web part.
Tsvetoslav
Telerik team
 answered on 05 Mar 2012
5 answers
89 views
Hi,
 I have a User Control that has 7 Labels (Viewstates are disabled).
 1 RadDatePicker
 1 RadTextbox
 4 aspTextBoxes

I have 2 RadInputManagers
1 makes 2 textboxes NumericTextBoxes of Number Type with 0 decimal digits
1 enables me to change the Type and Decimal Digits from the code-behind based on the Properties of the User Control

Let's call this control KPIControl

The KPIControl takes up about 34k bytes when it has meaningful data attached to i.

These UserControls are generated via a RadListView so there could be 1 to Many UserConrols depending on other factors.

I have 2 questions.
1) Is there a way to lower that 34k overhead anymore?
     There can easily be 50, to 100+ of these controls rendered on a single page.
     The only way i can think of to decrease the size anymore is to not use Telerik Controls, use normal textboxes and do my own number validation via Javascript that I store in an external JavaScript file. (But that defeats the whole purpose of telerik controls)

2) If i setup a page to have 100 of these controls (~3.4mb) rendered i run into SERIOUS Performance issues with IE8 (the browser used by my company)
  To calculate how long it takes to load the page I set variable to the current time and then in the Body onload event I calculate the time difference.
In IE8 it is taking more than 2.5 seconds Q3 2011 (not as good as FF, but acceptable) and 3.75 seconds (Q1 2012) to Load the Page AND THEN, it takes another 18+ seconds(unacceptable) for either the page to render the controls or unfreeze the IE8 window. And then on a postback, IE8 will pop-up an alert telling me there is a long running script, which is unacceptable.

 In contrast it takes Firefox 1.2 seconds to load the page and no extra time to render it.
 also, It takes slightly less using Q3 2011 Radcontrols versus Q1 2012 controls
In Summary, 
 
Time to Load and Display 100 KPIControls:
Firefox: 1.25 seconds (Q3 2011)
IE8:       20+ seconds. (Q3 2011) //2.5seconds load + 17.5+ seconds till render or till unfrozen
Firefox: 1.75 Seconds (Q1 2012)
IE8:     23+ seconds (Q1 2012)   //3.75 seconds load + 17.5 + seconds till runder or till unfrozen


And on a side note what the heck did Q1 2012 do to the Styling of RadInput Controls? It totally fubared the look of my site when i upgraded from Q3 2011 to Q4 2012.

Please HELP!
Thanks,
~Patrick
Vasil
Telerik team
 answered on 05 Mar 2012
2 answers
200 views
Is there an option to have the datapager show at the top and bottom of a ListView similar to what can be done with the Gridview? Alternatively, if I add two datapager controls to the LayoutTemplate, will they update each other or does that need to be done in code if the page is changed on one of them?
Pavlina
Telerik team
 answered on 05 Mar 2012
1 answer
92 views
hi

I downloaded the sample and the advanced form works as it is.

But when i added radajaxmanager to the RadSchedulerAdvancedForm.aspx, i am not able to save or edit.

When I click the Save or Edit button, the form just would not close. How should i go about it? Thanks a lot.

http://www.telerik.com/community/code-library/aspnet-ajax/scheduler/customize-the-advanced-form-with-the-advanced-template-user-controls.aspx
Plamen
Telerik team
 answered on 05 Mar 2012
6 answers
144 views
We are building reports (non-telrik) that have 3D pie-charts. We are unable to use the silverlight version because our report generator is in a class-libraray and we get into issues with System.Windows.dll as it has references to ver 2.0.5.0  dlls, in particular System.Runtime.Serialization  and the class library has ver 3.0.0.0 dlls. So we are looking for a non-silverlight 3D pie chart. We would appreciate any work-arounds as well.
Thanks!
Joan
Top achievements
Rank 1
 answered on 05 Mar 2012
4 answers
129 views
Hi,

We are having a serious issue with RadWindow, any quick help on this is very much appreciated.

Scenario:

We have a aspx page on which there are rad buttons like 'Add', 'Print', 'Filter'. Below these buttons we have a grid placed inside an Asp:UpdatePanel. This grid lists out items and has buttonbound columns which are used for edit/delete funcationality.

To add a new record we use the 'Add' button displayed above the grid. Upon clicking this button we open up a RadWindow having various fields controls for the user to enter data.

Now our problem is that Suppose there is a RadComboBox on this RadWindow and the location of the RadComboBox is exactly above the underlying grid's button bound column then instead of showing combo items the grid's edit/delete event gets fired depending on which column of the grid is located exactly below the RadComboBox of the RadWindow.

I dont understand how can a RadCombo placed on a RadWindow fires a Grid Event for a link on the grid which is located exactly below the RadComboBox . This is very Surprising.


Waiting for reply from the telerik team as well as people who might have faced this issue before.
Marin Bratanov
Telerik team
 answered on 05 Mar 2012
1 answer
229 views
I have an ASP DetailsView with a RadGrid in one of the Template Columns. What I would like to do is when I put my DetailsView into edit mode to add the edit and delete columns to the RadGrid. Right now I have it so in the DataBound event for the DetailsView I check if it's in edit mode and then add the "Add New Record" button. I have tried adding code to turn on the edit column but it doesn't work. See the code example below. Any help would be appreciated.

if(((DetailsView)sender).CurrentMode== DetailsViewMode.Edit)
            {
                DropDownList ddl = (DropDownList)((DetailsView)sender).FindControl("DevicesLocation");
                Label lbl = (Label)((DetailsView)sender).FindControl("lblLocationID");
 
                LocationDropDown(ddl);
                ddl.SelectedValue = lbl.Text;
 
    // Show the command display on edit
                ipAddressRadGrid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;

      // Add edit column
                ipAddressRadGrid.AutoGenerateEditColumn = true;
 
                ipAddressRadGrid.Rebind();
            }
Antonio Stoilkov
Telerik team
 answered on 05 Mar 2012
2 answers
185 views
Hi everyone,

I am having a problem refreshing a node after saving changes on the server side.  A summary:

I have an ASP.NET Ajax RadTreeView within an UpdatePanel.  A user selects a node and clicks an Edit button.  This opens a jQuery dialog in which node data can be changed, such as the description (not the value!).  After clicking the Save button in the dialog, a piece of JavaScript triggers a button, which has been registered for AsyncPostBack.  On the server side, the node data is saved, and execution returns to a JavaScript method on the page.  I then want to refresh the node that has been edited, in order to display, for instance, the new description for the node.  I might be going about this the wrong way, but I thought I would be able to accomplish this by refreshing the node's parent, and then re-selecting the node itself.  Everything works, accept re-selecting the node that had been edited. 

I write the following code:

var tree = FindTree();
var currentNodeValue = tree.get_selectedNode().get_value();
RefreshParentNode();
var currentNode = tree.findNodeByValue(currentNodeValue);
// TODO: why is this node not found?!?
// For now, after update, the parent is selected because the child node is not found, even though it is there...
if (currentNode) {
    currentNode.select();
}

The RefreshParentNode function simply finds the parent node of the selected node, and then refreshes it using the following code:

function RefreshNode(node) {
    if (node) {
        node.collapse();
        node.get_treeView().trackChanges();
        node.get_nodes().clear();
        node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.WebService);
        node.get_treeView().commitChanges();
        node.expand();
    }
}

All nodes are now displayed correctly, including the updated node with its new description.  However, as the comments in the code fragment at the top show, the findNodeByValue function fails to find the node that had been edited, so I can't re-select it.

So, I basically, have two questions:

1) Is there an easier way to get the edited node to display its new description?
2) If not: why is the node not found by findNodeByValue after refreshing the parent, and how can I fix this?

By the way, in case this is not clear from the code fragments above: I am using a LoadOnDemand scenario.  Root nodes are loaded immediately, child nodes are loaded using a webservice.

UPDATE: Yes, the FindTree method uses $find and not $get.  The tree reference is not the problem...

Regards,
Inge
Inge
Top achievements
Rank 1
 answered on 05 Mar 2012
3 answers
166 views
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Position="BottomCenter"
                RelativeTo="Element" Width="400" Height="400" Animation="Resize" HideEvent="LeaveTargetAndToolTip"
                OnAjaxUpdate="OnAjaxUpdate" OnClientHide="OnClientHide" RenderInPageRoot="true" AnimationDuration="200">
              
<TargetControls>
<telerik:ToolTipTargetControlTargetControlID="Complain_btn" IsClientID="true"/>
</TargetControls>
</telerik:RadToolTipManager>
<Columns>
       <telerik:GridTemplateColumn  HeaderText="Complains"   UniqueName="TemplateColumn1">
        <ItemTemplate>
        <telerik:RadButton ID="Complain_btn"  Text="Complain Details"  runat="server" >
        </telerik:RadButton>
          </ItemTemplate>
          </telerik:GridTemplateColumn>
</Columns>
 
 protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args)
        {
            this.UpdateToolTip(args.Value, args.UpdatePanel);
        }
 
        private void UpdateToolTip(string elementID, UpdatePanel panel)
        {
            Control ctrl = Page.LoadControl("Complains.ascx");
            panel.ContentTemplateContainer.Controls.Add(ctrl);
            Complains c = (Complains)ctrl;
             c.CompID = elementID;
        }
I have a radgrid with a radbuttons added to the master table view. And I want to use tooltip manager and add tooltips from the database dynamically. Can any one tell me how to add tooltips step by step . This is my radgrid code. Please help Me!


 


Marin Bratanov
Telerik team
 answered on 05 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?