Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
48 views
ver 2010:1:309:35

I have telrik ASP.Net Ajax tools
this is the version of it i got it from opening the project
 i want to know that which Q is this and Which SP is this 

because after knowing this i will download it 
or anypne please post the exact version download link 


Thanks 
Sebastian
Telerik team
 answered on 21 Jun 2011
2 answers
101 views
I'm converting my existing ASP TreeView to a RadTree view. I'm getting hung up on the child node syntax. 

This is what I currently have for my ASP TreeView:

t1.FindNode(rs.GetString(4).ToString().ToLower()).ChildNodes.Add(node);
t1.FindNode(rs.GetString(4).ToString().ToLower()).Collapse();


I'm not sure what the equivalent would be for RadTreeView.


Thanks.
William
Top achievements
Rank 1
 answered on 21 Jun 2011
1 answer
115 views
Hi,

We are loading a rad grid dynamically on dropdown selection change event.
Everything works fine when number of rows in a grid are less than the pagesize.
When number of rows are more than the page size i.e. when we have more than one page update event is not getting fired.
It fires the ItemCommand event but in itemcommand event e.cancelled is coming as true.
Please check.
Tsvetina
Telerik team
 answered on 21 Jun 2011
5 answers
142 views
Hi All,

I'm new to the Telerik comunity and control suite, and after seeing the demo's of the RadScheduler i was blown awa. I've started evaluating whether this control will be able to be encorporated into our creaking architecture and in doing that i've come across a problem i can't quite get my head around. Please note that this is currently using the default XML file for the data provider (i haven't got round to using our database yet).

I've put the following code in the ASPX page:

<telerik:RadScriptManager ID="sman" runat="server" EnableTheming="false"/>
<telerik:RadScheduler ID="radCalendar" runat="server" AdvancedForm-Enabled="true" StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true" />

And the following code in the code behind (this is to programmatically add our items to the dropdown, it will be from a database but i'm hardcoding this to mock this for testing purposes).

protected void Page_Init(object sender, EventArgs e)
{
    ResourceType priority = new ResourceType("PriorityLevel");
    radCalendar.ResourceTypes.Add(priority);
    radCalendar.Resources.Add(new Resource("PriorityLevel", 1, "Low"));
    radCalendar.Resources.Add(new Resource("PriorityLevel", 2, "High"));
       
      ResourceType user = new ResourceType("S7User");
      radCalendar.ResourceTypes.Add(user);
      user.AllowMultipleValues = true;
      radCalendar.Resources.Add(new Resource("S7User", 8, "Iain"));
      radCalendar.Resources.Add(new Resource("SUser", 9, "Nick"));
      radCalendar.Resources.Add(new Resource("S7User", 10, "Paul"));
      radCalendar.Resources.Add(new Resource("S7User", 11, "Stephan"));
     radCalendar.Provider = new XmlSchedulerProvider(Server.MapPath("~/App_Data/Appointments.xml"), true);
}

The 'Priority' field now appears as a drop down, as does the S7User, these save too perfectly into the 'Appointments.xml' file, but, when i try to reopen the calendar i get the error:

Cannot find resource of type 'PriorityLevel' with Key=1 for appointment with ID=41.


The XML that is saved in the 'Appointments.xml' file is as follows:

<?xml version="1.0" encoding="utf-8"?>
<Appointments>
  <NextID>42</NextID>
  <Appointment>
    <ID>41</ID>
    <Subject>asdfasdf</Subject>
    <Start>2011-06-15T09:30Z</Start>
    <End>2011-06-15T10:30Z</End>
    <Resources>
      <PriorityLevel Key="1" />
      <S7User Key="8" />
    </Resources>
  </Appointment>
</Appointments>

Can anyone offer any guidance as to why this is happening please? It works when I have the resources in the XML file, but taking them out breaks it, even though they are added to the control. One thing to note is in the Page_Init they are added to the 'Resources' collection in the control.

Any help is greatly appreciated.

Iain

Plamen
Telerik team
 answered on 21 Jun 2011
1 answer
106 views
I have a web page uses 17 RadAjaxPanels and one RadAjaxLoadingPanel. This is to allow user load part of the data on page upon users' request.

But this page failed in our load test of 50 users.

I noticed if I expand one RadAjaxPanel on browser, the CPU usage will go up to over 30% for a moment then comes down. In case of 30 concurrent users expanding and collapsing panels, the CPU usage will go up to and stay at 100%.

Is this normal? Are there any ways I can make RadAjaxPanel less heavy on CPU?

Thanks a lot.
Veli
Telerik team
 answered on 21 Jun 2011
4 answers
229 views
In the ApplyExpressions event, I need to iterate over the RadFilterApplyExpressionsEventArgs.Expressions collection.  It appears that to access specific values of each filter expression (field name, field type, view state, value, etc.), you need to cast each filter expression to its specific derived type.  The only property exposed at the RadFilterExpression base type level is FilterFunction.

Basically I'm looking for the best way to iterate over a collection RadFilterExpressions, and access the specific properties of each instance.  What makes this a little more complex that you'd expect is that each filter expression is composed of a number derived types - with the filter properties and values exposed by different types in the chain.  What's the best way to access the specific filter expression properties?

Can anyone point me to a code example? 
Brian Pratt
Top achievements
Rank 1
 answered on 21 Jun 2011
5 answers
196 views
I'm usig the clearfilter functionality as described in the below demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx
 You can see in the demo, type something in the filter box and before filtering(before clicking enter or tab) if you click on clear filter button, it is filtering the grid instead of clearing the filter text box as it is firing the filtercommand..Is there a way to fix this.
Iana Tsolova
Telerik team
 answered on 21 Jun 2011
1 answer
59 views
Hi All,

Can anyone tell me how can I implement Rad Binary Image control in sharepoint webparts?

A demo is given on this control in Telerik site where they used SQL server as backend to retrieve images.

But here I want to use Picture library path or Lists to retrieve Images.

Help me how can I integrate and get the result.

Regards
BRK
Tsvetoslav
Telerik team
 answered on 21 Jun 2011
1 answer
147 views
Hi,

I am using RadAjaxPanel in master page as shown below:


<
telerik:RadAjaxPanel ID="rapContents" runat="server" EnableAJAX="true" OnAjaxSettingCreating="rapContents_AjaxSettingCreating">

 

 

 

<asp:ContentPlaceHolder ID="phContents" runat="server">

 

 

 

</asp:ContentPlaceHolder>

 

 

 

</telerik:RadAjaxPanel>

 


And in the content page I used a radcombobox, the code is below:

 

 

<telerik:RadComboBox ID="rcbSP" runat="server" DataValueField="ID" DataTextField="Name"

 

 

 

EmptyMessage="None" HighlightTemplatedItems="true" AllowCustomText="true" Width="180"

 

 

 

OnClientDropDownClosed="onDropDownClosing"><ItemTemplate>

 

 

 

<div onclick="StopPropagation(event)" class="combo-item-template">

 

 

 

<asp:CheckBox runat="server" ID="chkSP" onclick="onCheckBoxClick(this, 'SP')" />

 

 

 

<asp:Label runat="server" ID="lblSP" AssociatedControlID="chkSP">

 

<%

 

# Eval("Name")%>

 

 

 

 

</asp:Label>

 

 

 

</div>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadComboBox>

 


 

 

//Combobox Binding - only binding first time the page loads

 

 

 

this.rcbSP.DataSource = LU_ServerPurposeBLL.GetList(false);

 

 

 

 

this.rcbSP.DataBind();

 


Now my issue is, when I have a postback in the content page, the data (list items) in the combobox is lost and displaying "None" (the empty message).

Please help me in resolving the issue. Thanks in advance.

 

 

 

Kate
Telerik team
 answered on 21 Jun 2011
8 answers
188 views
Hi,

I wanted to populate a Treeview based upon a DataTable retrieved from the AdventureWorks database using a recursive CTE in a Stored Procedure. It is the good old recursive problem of components witin components within a product. The SP is:

USE [AdventureWorks]
GO
/****** Object:  StoredProcedure [dbo].[CreateProductComponentHeirarchyForProduct]    Script Date: 05/18/2011 20:44:38 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
 
ALTER PROCEDURE [dbo].[CreateProductComponentHeirarchyForProduct]
    @ComponentID int
AS
BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON;
 
    ; WITH BillOfMaterialsCTE
    (
        BillOfMaterialsID,
        ProductAssemblyID,
        ComponentID,
        Quantity,
        Level
    )
    AS
    (
        SELECT  bom.BillOfMaterialsID,
            bom.ProductAssemblyID,
            bom.ComponentID,
            bom.PerAssemblyQty,
            0 as Level
        FROM Production.BillOfMaterials bom
        WHERE bom.ComponentID = @ComponentID
         
        UNION ALL
         
        SELECT  bom.BillOfMaterialsID,
            bom.ProductAssemblyID,
            bom.ComponentID,
            bom.PerAssemblyQty,
            Level + 1
        FROM Production.BillOfMaterials bom
        INNER JOIN BillOfMaterialsCTE bomCTE
            ON bom.ProductAssemblyID = bomCTE.ComponentID
        WHERE bom.EndDAte IS NULL
    )
    SELECT 
        bomCTE.ProductAssemblyID,
        p.ProductID,
        p.ProductNumber,
        p.Name,
        p.Color,
        bomCTE.Quantity,
        bomCTE.Level
    FROM BillOfMaterialsCTE bomCTE
    INNER JOIN Production.Product p
        on bomCTE.ComponentID = p.ProductID
     
END

I used the following method to populate a RadTreeView on a page:

public void SetResults(DataTable results)
{
    this.ProductsRadTreeView.DataSource = results;
 
    this.ProductsRadTreeView.DataFieldID = "ProductAssemblyID";
    this.ProductsRadTreeView.DataFieldParentID = "ProductID";
    this.ProductsRadTreeView.DataTextField = "Name";
 
    this.ProductsRadTreeView.DataBind();
}

When it hits the DataBind() call, the error message is: These columns don't currently have unique values.

This is no surprise to me. I did not expect them to be unique It is a recursive algorithm where components can be used in more than one component/product, so of course there will be duplicates.

Can the RadTreeView display such a ResultSet?

Cheers
Nikolay Tsenkov
Telerik team
 answered on 21 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?