Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
236 views
Hello everbody,

i am unable to configure my WCF WebService and RadTreeView Control to work together 'On Demand', and because i am absolutly new with WebServices, i have no clue what is the problem. Anybody can give me a hint? By the way, i strongly use the following Demo of Telerik: http://www.telerik.com/help/aspnet-ajax/treeview-load-on-demand-wcf.html and http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/performance/defaultcs.aspx

myTopBarNavigation.svc

<%@ ServiceHost Language="C#" Debug="true"
    Service="xxxx.xxxx.layout.ISAPI.xxxx.xxxx.xxxx.myTopBarNavigation,SharePoint.Project.AssemblyFullName$" 
    CodeBehind="myTopBarNavigation.svc.cs"
    Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressWebServiceHostFactory,
    Microsoft.SharePoint.Client.ServerRuntime,
    Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

myTopBarNavigation.svc.cs

namespace kibp.nordlb.layout.ISAPI.kibp.nordlb.layout
{
     class NodeData
    {
        private string text;
        public string Text
        {
            get { return text; }
            set { text = value; }
        }
    }
 
    //[BasicHttpBindingServiceMetadataExchangeEndpoint]
    [ServiceContract]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    class kibpTopBarNavigation
    {
         [OperationContract] 
        public IEnumerable GetNodes(RadTreeNodeData node, IDictionary context)
        {
            int numberOfNodes = 100;
            List<NodeData> nodes = new List<NodeData>();
            for (int i = 0; i < numberOfNodes; i++)
            {
                NodeData nodeData = new NodeData();
                nodeData.Text = "Node " + i;
                nodes.Add(nodeData);
            }
             return nodes;
        }
    }
}

Error Message @Fiddler:

HTTP/1.1 500 System.ServiceModel.ServiceActivationException

P.s.: The Request looks like this:


and tries to send the following Data:

{"node":{"Text":"Root Node","Value":null,"Key":null,"ExpandMode":3,"NavigateUrl":null,"PostBack":true,"DisabledCssClass":null,"SelectedCssClass":null,"HoveredCssClass":null,"ImageUrl":null,"HoveredImageUrl":null,"DisabledImageUrl":null,"ExpandedImageUrl":null,"ContextMenuID":"","Checked":false},"context":[]}




Hristo Valyavicharski
Telerik team
 answered on 17 Apr 2014
3 answers
90 views
Hi

    x axis values are overlapping in my chart,My values will be come simultaneously Once max value will be 50 another time it will be 5000
    Its difficult to set range in chart Is there any solution for this


Thanks,
Santhosh
Shinu
Top achievements
Rank 2
 answered on 17 Apr 2014
1 answer
296 views
hello,
i have a radgrid with detailtables ,

detailTable has "GridEditCommandColumn"  and another "GridTemplateColumn" that contains linkbutton to remove row ,

<MasterTableView DataKeyNames="FEATURE_ID">
             <Columns>
                 <telerik:GridBoundColumn DataField="FEATURE_ID" UniqueName="FeatureID" ></telerik:GridBoundColumn>
             </Columns>
 
             <DetailTables>
                 <telerik:GridTableView ShowHeader="true" CommandItemDisplay="Top"
                     SkinID="RadGridSkin" Width="100%" runat="server" Name="Fees"
                     EditMode="InPlace">
                     <Columns>
                         <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn>
                        
                         <telerik:GridBoundColumn DataField="FEE_TEMPLATE_ID" UniqueName="FeeID"></telerik:GridBoundColumn>
 
                         <telerik:GridTemplateColumn UniqueName="DeleteFee">
                             <ItemTemplate>
                                 <asp:LinkButton ID="RemoveFee" runat="server" CommandName="RemoveFee" Text="RemoveFee" ImageUrl="../../../images/cancel.png" ToolTip="<%$Resources:Strings,remove  %>" />
                             </ItemTemplate>
                         </telerik:GridTemplateColumn>
                     </Columns>
 
                 </telerik:GridTableView>
             </DetailTables>
 
         </MasterTableView>

in code behind in itemCommand event : 
dataSource of radgrid is updated and Datable.acceptchanges() is called ;

how to rebind only the detailTable where changes have occurred ??



Princy
Top achievements
Rank 2
 answered on 17 Apr 2014
4 answers
155 views

Hi,

On template item, I have a few controls related RadToolTipManager that is be done on ItemDataBound however if I have added a new item, ajax and rebind the list it does not invoke ItemDataBound.  (_NeedDataSource is implemented)

Can I implement UserControl into InsertItemTemplate and EditItemTemplate?   How can I find its control ID?


May I have your suggest?

Cheers,

Duy
Duy
Top achievements
Rank 1
 answered on 17 Apr 2014
1 answer
91 views
Currently have a radgrid containing phone contact information that I populate with data from the database.  What I would like to append to that same grid is more static data (ie phone extensions to various rooms around the building).  Is this even possible to add these additional rows after binding with SQL data?

Attached is what I am trying to accomplish. 

Have a Row of data be the text "Extensions" that spans all the columns and then add a second dataset which contains the various rooms and their extensions. 

Thank you
Eyup
Telerik team
 answered on 17 Apr 2014
3 answers
86 views
Hi telerik ,
in my project  which like transfer employees example demo , I use remove concept
at ajaxrequest event on server before I remove node from chart i have a condition if it true i can remove the node, else i must return a message(eg:"this node can't remove") , how I can do that ? i try to use hiddenfield but it does't work correctly 

thank you 
Shinu
Top achievements
Rank 2
 answered on 17 Apr 2014
4 answers
105 views
Watched a telerik video recently where the presenter demonstrated RadPageLayout and responsive web page design by slowly reducing the size of his Chrome browser window while viewing the telerik website. At each viewport breakpoint the page reconfigured responsively as expected. Tried this with my 
Chrome browser and it worked for me too; but not when using the IE8 browser (telerik web page just truncates). Since telerik supports IE 6+ should I be seeing the same behavior in IE8 as in Chrome?
Ivan Zhekov
Telerik team
 answered on 17 Apr 2014
1 answer
96 views
Hi,
 how to change the text of a boundcolumn when that row is selected?
Princy
Top achievements
Rank 2
 answered on 17 Apr 2014
3 answers
731 views
We using the datepicker with input format "dd-mm-yyyy" in our asp.net web application. Created an validator function for this format. Works fine when leaving the input field it checks the format "dd-mm-yyyy" but when we want to save the record our validator function gets the date as "yyyy-mm-dd" which is invalid according to our validator function. What to do.
Shinu
Top achievements
Rank 2
 answered on 17 Apr 2014
6 answers
862 views

Hi Telerik Team,

     i'm using ASP>NET AJAX RadAutoCompleteBox. I set the DatasourceId its working fine. I can go through the filtered items with "UP" and "Down" keys, but I want to select an item with "TAB" and "ENTER" Key. When I hit TAB or ENTER on dropdown item it should select that item and the OnTextChanged Event should fire.
     I checked the Demo there its selecting when I hit TAB & Enter. But on my screen its not working. Is I missed or messed something.

My code for your reference.

Thanks,


<telerik:RadAutoCompleteBox ID="txtPolicyNo" runat="server" Width="100px" DropDownWidth="98px" DropDownHeight="200px"       DataSourceID="edsPolicy" DataTextField="PolicyNumber" Filter="StartsWith" InputType="Text"   OnTextChanged="txtPolicyNo_TextChanged" TextSettings-SelectionMode="Single">
          <TokensSettings AllowTokenEditing="true" />
</telerik:RadAutoCompleteBox>
                              
 <asp:EntityDataSource ID="edsPolicy" runat="server" ConnectionString="name=PSSContainer" DefaultContainerName="PSSContainer"
           EnableFlattening="false" EntitySetName="tblPolicies" OrderBy="it.[PolicyNumber]" Select="it.[PolicyNumber]"
           GroupBy="it.[PolicyNumber]"
           Where="it.Chapter = @ChapterCode and it.IsPolicy = @IsPolicyOrProcedure">
           <WhereParameters>
                      <asp:ControlParameter ControlID="ddlChapter" DbType="String"
                           DefaultValue="" Name="ChapterCode" PropertyName="Text" />
                       <asp:ControlParameter ControlID="hfServiceType" DbType="Boolean"
                           DefaultValue="" Name="IsPolicyOrProcedure" PropertyName="Value" />
            </WhereParameters>
 </asp:EntityDataSource>



protected void txtPolicyNo_TextChanged(object sender, Telerik.Web.UI.AutoCompleteTextEventArgs e)
{
     try
         {
               string PolicyNo = txtPolicyNo.Text;

                if (PolicyNo.Length > 0)
                {
                    //PolicyNo = PolicyNo.Substring(0, PolicyNo.Length - 2);
                    PolicyNo = PolicyNo.Replace("; ", "");
'
'
'
'
                }
                 
          }
          catch (Exception ex)
          {
               
          }
}
Plamen
Telerik team
 answered on 17 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?