Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views
I am a freelancer and in discussions with an end customer to develop a web application. The code that I develop will be used by the customer in their organization as a intranet website.

Based on my understanding of licensing (from your site):

1) I will need a developer license to develop the aplication (I intend using RadControl for .NET)
2) A GPL will suffice since the customer is using this for internal use and will not redistribute the software
3) A copyright / acknowledgement of Telerik copyright needs to be place in the About page of the customers intranet application

Please confirm if the above steps and assumptions are correct.

Thanks
Kishore
Apo
Telerik team
 answered on 24 Jan 2013
1 answer
78 views
I have a problem while I deploy our web site into another IIS. Locally from Visual Studio all works fine but when we deploy our site on IIS (7.5 on Windows Server 2008 R2), we have some problems. When I open the 2 web sites (locally from Visual Studio and the other from IIS on Windows Server) in the same IE (2 tabs) and I notice some different behavior in the user interface !?!?!

I cannot tell if it's the case for all problems we have but at least for one problem I notice the problem come from CSS. On a RadTabStrip, I set Orientation="VerticalLeft". So locally it's on the left because the "display" attributes value is "block" but in the server it's not because because both values "block" and "inline" are present and the "inline" is applied!

Can anybody tell me what's wrong?

I attached screen shots...

Nencho
Telerik team
 answered on 24 Jan 2013
1 answer
157 views
Hi Experts,

I have created rad grid with  multiple group header and added the check box in  first grouping header (BATCH_ID).So i want to do,
when i check the   check box in first grouping header then to be selected (highlighted) the grid items belong to second group header (ITEM_NAME)



Grouping  at Design Level
<GroupByExpressions>
<!-- First Grouping Header -->
                        <telerik:GridGroupByExpression>
                            <SelectFields>
                                <telerik:GridGroupByField FieldAlias="BATCH_ID" FieldName="BATCH_ID" HeaderValueSeparator=" : " />
                            </SelectFields>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldName="BATCH_ID" SortOrder="Ascending" />
                            </GroupByFields>
                        </telerik:GridGroupByExpression>
<!-- Second Grouping Header -->
                        <telerik:GridGroupByExpression>
                            <SelectFields>
                                <telerik:GridGroupByField FieldAlias="Name" FieldName="EMP_DISPLAY_NAME" HeaderValueSeparator=" : " />
                            </SelectFields>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldName="ITEM_NAME" SortOrder="Ascending" />
                            </GroupByFields>
                        </telerik:GridGroupByExpression
</GroupByExpressions>

         Create Header control at run time
Private Sub CreateHeaderControls(ByVal e As GridItemEventArgs)
        If TypeOf e.Item Is GridGroupHeaderItem Then
            Dim item As GridGroupHeaderItem = e.Item
            If IsNumeric(item.GroupIndex.ToString()) Then
                item.DataCell.Controls.Clear()
                Dim check As New CheckBox()
                check.AutoPostBack = True
                check.ID = "CheckAll"
                AddHandler check.CheckedChanged, AddressOf check_CheckedChanged
                item.DataCell.Controls.Add(check)
            End If
        End If
    End Sub


Thanks
Angel Petrov
Telerik team
 answered on 24 Jan 2013
7 answers
433 views
Hi, I really hate to have to keeping asking all these questions but I'm spinning my wheels on a treeview formatting issue.

How do you move the treenodes indent to the left closer to the black border (see attachment)? I've tried playing with the ul class and setting margin-left to 0px but with no effect.

I have the following css to hide the +/- expand icon, so it seems the space used by these images still remains.  I want  move everything left where they used to appear since I don't need them.

<style type="text/css">
    .RadTreeView_Default .rtPlus,
    .RadTreeView_Default .rtMinus
    {
        display: none!important;
    }
</style


Thanks again, Dave.
David
Top achievements
Rank 1
 answered on 24 Jan 2013
7 answers
104 views
Hello,

I have raddockzone with min-height=500. I wish to highlight the exact place within raddockzone where the raddock will be placed after moving from one raddock zone to another. Say, there are already 2 raddocks in the raddockzone and if I tried to push the third dock between these two already existing docks then middle place should be only highlighted with dotted border.

Is there any way to do that ?

Thanks,
Prayag
Slav
Telerik team
 answered on 24 Jan 2013
2 answers
150 views
Hi there

I am using the Advanced Data Binding on a grid and want to set the initial filter. It is showing the text, but its not limiting the results as expected. If I filter after a page load, it does work though. I have also tried filtering with the PreRender event, but that doesn't work.
Here is my ASPX
<telerik:RadGrid ID="uxBookOrderGrid" runat="server" AutoGenerateColumns="false" OnNeedDataSource="uxBookOrderGrid_NeedDataSource"
        AllowPaging="true" PageSize="10" Width="95%"
        AllowFilteringByColumn="true"
        EnableLinqExpressions="false" AllowSorting="true" >
    <MasterTableView DataKeyNames="BookOrderID">
        <Columns>
            <telerik:GridBoundColumn FilterControlWidth="90%" SortExpression="StatusDescription" HeaderText="Status" DataField="StatusDescription" UniqueName="StatusDescription" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" />
        </Columns>    
        <NoRecordsTemplate>
            No Book Orders waiting to be Approved.
        </NoRecordsTemplate>              
    </MasterTableView>
</telerik:RadGrid>
and here is the code behind
protected void uxBookOrderGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    /// <summary>
    /// Fill Grid with all Book Orders that needs to be Approved
    /// </summary>
 
    uxBookOrderGrid.DataSource = SATextBooksUJ.Data.BookOrder.GetBookOrderListForAcquisition(acquisitions.UserID);
 
    if (!IsPostBack)
    {
        uxBookOrderGrid.MasterTableView.FilterExpression = "([StatusDescription] LIKE=\'%Approved by Departmental Approver%\')";
        GridColumn statusColumn = uxBookOrderGrid.MasterTableView.GetColumnSafe("StatusDescription");
        statusColumn.CurrentFilterFunction = GridKnownFunction.Contains;
        statusColumn.CurrentFilterValue = "Approved by Departmental Approver";
    }
}
Any ideas?

Thank you
Jako
Top achievements
Rank 1
 answered on 24 Jan 2013
1 answer
135 views
Hello Expert Team,

I am developing a web application using c# ,asp.net,telerik and sqlserver 2008.

Actually i have developed a ​text file , in this text file (.txt) data is comming from database.

Now problem is that how to bind this text file to our xtrareport​, means finally i want to display this text file in xtrareport .

Is there any control to bind our text file to xtrareport or any telerik control ?

Please help me.
Slav
Telerik team
 answered on 24 Jan 2013
4 answers
162 views
Hi,

I have a RadGrid in my ASP.Net web form.
Now i want to bind this on client-side through a AjaxEnabledWCFService.
After all the implementations done it seems the data is being retrieved through the response
but rather than showing it in the grid it shows an message like "Method not allowed.".

I could not able to find the actual reason behind this error, and what is the cause for dat not being populated.

Here are the details of my implementations :-
I have added the particular service to the Script manager like below :-

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
         <Services>
                <asp:ServiceReference Path="~/services/CustomerListService.svc" />
         </Services>
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>


Then added the service to the RadGrid ClientEvents - DataBindings tag like below :-

 
<DataBinding SelectMethod="GetCustomers" Location="~/services/CustomerListService.svc"
                     SortParameterType="Linq" FilterParameterType="Linq">
                </DataBinding>


I have a service named CustomerListService with DataContract as order,
ServiceContract as GetCustomers() as below codes :-

Ex:

   
[ServiceContract(Namespace = "")]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class CustomerListService
    {
         
        [OperationContract]
        public List<Customer> GetCustomers()
        {
            CustomerData CustData = new CustomerData();
            System.Data.DataTable dt = CustData.GetCustomersList(1, 1, "");
 
            List<Customer> Customerist = new List<Customer>();//Here Customer is DataContract
            foreach (System.Data.DataRow dr in dt.Rows)
            {
                Customer cust = new Customer();
                SetPropertiesFromOrderRow(cust, dr);//set all the property values from DataRow to Order
                CustomerList.Add(cust);
            }
 
            return CustomerList;
        }
    }


The settings in the configuration file are like below :-  

<endpointBehaviors>
   <behavior name="ClientSideBindingTest.services.CustomerListServiceAspNetAjaxBehavior">
    <enableWebScript />
   </behavior>
  </endpointBehaviors>
 
 <services>
  <service name="ClientSideBindingTest.services.CustomerListService">
   <endpoint address="" behaviorConfiguration="ClientSideBindingTest.services.CustomerListServiceAspNetAjaxBehavior"
    binding="webHttpBinding" contract="ClientSideBindingTest.services.CustomerListService" />
  </service>
 </services>

Please let me know if anyone having any suggestions here and also i need to know how to pass the parameter to the service method to
get the values as per the parameter supplied.

Thanks in advance.
Antonio Stoilkov
Telerik team
 answered on 24 Jan 2013
3 answers
183 views

hi
i've this object:

<telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" Runat="server"
Delimiter="" DropDownHeight="150px" DropDownWidth="270px" Filter="StartsWith"
InputType="Text" Width="270px" EmptyMessage="Inserisci la tua città"
Skin="Sunset">
<WebServiceSettings Method="Getcity" Path="index.aspx" />
</telerik:RadAutoCompleteBox>

I have three questions to ask:

1)

i've this code into vbnet:

<WebMethod()>
Public Shared Function Getcity(context As Object) As AutoCompleteBoxData
Dim searchString As String = DirectCast(context, Dictionary(Of String, Object))("Text").ToString()
Dim data As DataTable = Getcomuni(searchString)
Dim result As New List(Of AutoCompleteBoxItemData)()
For Each row As DataRow In data.Rows
Dim childNode As New AutoCompleteBoxItemData()
childNode.Text = row("descrizione").ToString()
childNode.Value = row("id").ToString()
result.Add(childNode)
Next
Dim res As New AutoCompleteBoxData()
res.Items = result.ToArray()
Return res
End Function
Private Shared Function Getcomuni(ByVal text As String) As DataTable
Dim adapter As New SqlDataAdapter("SELECT * from Tab_comuni WHERE descrizione LIKE @text + '%'", ConfigurationManager.ConnectionStrings("TrycontactString").ConnectionString)
adapter.SelectCommand.Parameters.AddWithValue("@text", text)
Dim data As New DataTable()
adapter.Fill(data)
Return data
End Function

but when I try to search for a city, nothing shows the dropdown does not appear.

2)
Why having the object raddecoration and thus eliminating any entry in AutoCompleteBox propriotà skin object, you can not see the edges of the round?

3)
How come when the focus is on the AutoCompleteBox, the edges of the object are not shown

Thanks you



Nencho
Telerik team
 answered on 24 Jan 2013
3 answers
68 views
Good day

Is there anyway I can modify this demo: http://demos.telerik.com/aspnet-mvc/grid/customcommand
to export the grid to PDF or Excel format?

Thank you.
Kostadin
Telerik team
 answered on 24 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?