Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
115 views
how to get radgrid cancel command in radcombobox selectedindexchanged event
abinav
Top achievements
Rank 1
 answered on 21 Jun 2011
3 answers
76 views
Hi

I'm currently working on a web app and I'm using the following technologies: asp, silverlight and ajax. I'm using telerik too (aspnet.net ajax component). My problem is that I need silverlight to talk to my asp code. So, I tried to used a ajax-enabled WCF  service to make the communication, but it seem like telerik doesn't really work with it. I come to that conclusion cause I tried two examples and they both work well with a asp.net application, but not with a RadControl web application. For those who are interested, here are the example :

http://www.dotnetcurry.com/ShowArticle.aspx?ID=235 and http://msdn.microsoft.com/en-us/library/bb924552.aspx.

So, am I missing something, or telerik and ajax-enabled wcf service really don't work together. And if so, what can a use to talk between my server-side code and my silverlight.
Thank you

David 
David
Top achievements
Rank 1
 answered on 21 Jun 2011
1 answer
55 views
Hi

Tried the examples I have found in Telerik site to try and set the forecolor of a hierarchical grids header but nothing works. The back color is setting but not the forcolor. I have tried setting the color in my CSS, I have tried setting the color at the GridGroupHeaderItem level and setting the Forecolor at the GridGroupHeaderItem.DataCell level. Here is the latest code. Can you tell me why this isnt working? I am also wanting to set Font so I assume I will hit a similar issue. Thank you

.nomRed1
{
background-color: #ef1209; 
}
.nomRed2
{
background-color: #c1131e; 
}


protected void clientContribution_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridGroupHeaderItem)
    {
        GridGroupHeaderItem item = (GridGroupHeaderItem)e.Item;
        DataRowView groupDataRow = (DataRowView)e.Item.DataItem;
        item.CssClass = "nomRed1";
        item.DataCell.ForeColor = Color.Magenta;
    }
}
wonderbison
Top achievements
Rank 1
 answered on 21 Jun 2011
2 answers
107 views
Hi,

Recently, my department upgrade RadControl4AJAX to the latest one. When I tried the RadCombo for search, I think its performance is somewhat badly suffered in loading about 40K rows. Is there anyway to get it works faster or I have to reduce the record load?

Sincerely,

d-cpt
d-cpt
Top achievements
Rank 2
 answered on 21 Jun 2011
6 answers
131 views
Hi,

I've been knocking my head against this problem for a full day now - any help will be very much appreciated.

I have a databound RadPanelBar, each Panel contains a set of search results. The display of results is encapsulated in a user controls, SearchResults. The user control is instantiated in the item template of the panel bar, and on databinding, it's event delegates are set - yest these are never called when the datapager posts back from the client.

The markup looks like this:

<telerik:RadPanelBar ID="resultsPanelBar" runat="server" ExpandMode="FullExpandedItem" >
    <ItemTemplate>                         
        <telerik:RadAjaxPanel ID="wrapperPanel" runat="server" RequestQueueSize="10">               
            <telerik:RadXmlHttpPanel RequestQueueSize="4" LoadingPanelID="searchLoadingPanel" ID="resultsUpdatePanel" runat="server">           
                <selfsvc:SearchResults ID="searchResult" runat="server" />
            </telerik:RadXmlHttpPanel>
        </telerik:RadAjaxPanel>
    </ItemTemplate>
</telerik:RadPanelBar>

The databinding code sets the delegates for the pager's server events as follows:

void resultsPanelBar_ItemDataBound(object sender, Telerik.Web.UI.RadPanelBarEventArgs e)
{
    string sourceName = ((KeyValuePair<string, string>)e.Item.DataItem).Key;
    RadXmlHttpPanel panel = (RadXmlHttpPanel)e.Item.FindControl("resultsUpdatePanel");
    if (panel != null)
    {
        selfService.UserControls.SearchResults results = (selfService.UserControls.SearchResults)panel.FindControl("searchResult");
        if (results != null)
        {
            results.SourceName = sourceName;
            RadDataPager pager = (RadDataPager)results.FindControl("RadDataPager1");
            if (pager != null)
            {
                pager.Command += new EventHandler<RadDataPagerCommandEventArgs>(pager_Command);
                pager.PageIndexChanged += new EventHandler<RadDataPagerPageIndexChangeEventArgs>(pager_PageIndexChanged);
            
        }
        clientPnlSrcMap.Add(panel.ClientID, sourceName);
        panel.ServiceRequest += new XmlHttpPanelEventHandler(panel_ServiceRequest);
    }
Rob
Top achievements
Rank 1
 answered on 21 Jun 2011
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
98 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
113 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
140 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?