Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
99 views
I have a situation where I need to be able to modify the text alignment for all the cells in a specific column from left-aligned to right-aligned.  For reasons which are too complicated to go into here, is there a way that I can do this with client-side code?  If the properties to do this are not exposed in the client-side api, is there a css setting that I could modify to do the same thing?  If I had to go the css route I could use jQuery to modify the css at runtime.

Thanks,
Scott
Scott
Top achievements
Rank 1
 answered on 30 Aug 2013
1 answer
129 views
    
Hi,
    I am using the user control on aspx page in sharepoint project .On  user control i have taken radgrid.Paging,filtering of Radgrid is working fine but 'Drag a column header and drop it here to group by that column' is giving the 'Server error '/' in application . I have also tried to resolve this using NeedDatasorce event .Please resolve this. 
    Thanks in advance..


   testControl.ascx

 
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="testControl.ascx.cs" Inherits="CSOM_RetrieveItemsInAList.ControlTemplates.testControl" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2013.2.717.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
 
 
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"
    AllowSorting="True"
CellSpacing="0" GridLines="None" AllowFilteringByColumn="True"
    ShowGroupPanel="True" Skin="Outlook" PageSize="50"
    AutoGenerateColumns="False" onneeddatasource="RadGrid1_NeedDataSource">
<GroupingSettings RetainGroupFootersVisibility="True"
ShowUnGroupButton="false" />
<GroupingSettings RetainGroupFootersVisibility="True"></GroupingSettings>
 
<ClientSettings Selecting-AllowRowSelect="true" AllowDragToGroup="True" EnablePostBackOnRowClick="true" >
<Selecting AllowRowSelect="True" UseClientSelectColumnOnly="True"></Selecting>
 
 
</ClientSettings>
 
 
 
 
<MasterTableView CommandItemDisplay="Top" >
<CommandItemSettings ShowExportToExcelButton="True" ShowExportToWordButton="True"
        ShowExportToPdfButton="True" ShowExportToCsvButton="True"
        showaddnewrecordbutton="False"></CommandItemSettings>
 
    <Columns>
    <telerik:GridTemplateColumn >
            <ItemTemplate>
         
              <asp:LinkButton ID="linkbtnViewDetail" runat="server" OnClick="linkbtnViewDetail_Click"  CausesValidation="false" AutoPostBack="True">View Details</asp:LinkButton>
 
        </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn FilterControlAltText="EmpName"
            UniqueName="EmpName" DataField="EmpName" HeaderText="EmpName">
            <ItemTemplate>
         
            <asp:Label ID="lblempName" runat="server" Text='<%#Eval("EmpName") %>'></asp:Label>
 
        </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="Flag"
            FilterControlAltText="Filter Flag column" HeaderText="Flag"
            UniqueName="Flag" Visible="False">
            <ItemTemplate>
           
            <asp:Label ID="lblflag" runat="server" Text='<%#Eval("Flag") %>'></asp:Label>
 
        </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="Employee_x0020_ID"
            FilterControlAltText="Employee_x0020_ID" HeaderText="Employee ID"
            UniqueName="EmployeeID">
            <ItemTemplate>
          
            <asp:Label ID="lblEmpID" runat="server" Text='<%#Eval("Employee_x0020_ID") %>'></asp:Label>
 
        </ItemTemplate>
        </telerik:GridTemplateColumn>
 
        <telerik:GridTemplateColumn DataField="ID"
            FilterControlAltText="ID" HeaderText="ID" UniqueName="ID" Visible="False">
            <ItemTemplate>
           
            <asp:Label ID="lblitemID" runat="server" Text='<%#Eval("ID") %>'></asp:Label>
 
        </ItemTemplate>
        </telerik:GridTemplateColumn>
 
        <telerik:GridTemplateColumn DataField="LeaveRequestID"
            FilterControlAltText="LeaveRequestID" HeaderText="LeaveRequestID"
            UniqueName="LeaveRequestID" Visible="False">
            <ItemTemplate>
            
            <asp:Label ID="LblLeaveReqId" runat="server" Text='<%#Eval("LeaveRequestID") %>'></asp:Label>
 
        </ItemTemplate>
        </telerik:GridTemplateColumn>
 
        <telerik:GridTemplateColumn DataField="WeekNumber"
            FilterControlAltText="Filter WeekNumber column" HeaderText="WeekNumber"
            UniqueName="WeekNumber" Visible="False">
            <ItemTemplate>
            <asp:Label ID="lblWeekNo" runat="server" Text='<%#Eval("WeekNumber") %>'></asp:Label>
        </ItemTemplate>
        </telerik:GridTemplateColumn>
 
        <telerik:GridTemplateColumn DataField="Status"
            FilterControlAltText="Filter Status column" HeaderText="Status"
            UniqueName="Status">
            <ItemTemplate>
            <asp:Label ID="ll12" runat="server" Text='<%#Eval("Status") %>'  ></asp:Label>
        </ItemTemplate>
        </telerik:GridTemplateColumn>
 
        <telerik:GridTemplateColumn DataField="Title"
            FilterControlAltText="Filter Subject column" HeaderText="Subject"
            UniqueName="Subject">
            <ItemTemplate>
            <asp:Label ID="ll8" runat="server" Text='<%#Eval("Title") %>'></asp:Label>
        </ItemTemplate>
        </telerik:GridTemplateColumn>
 
    </Columns>
 
</MasterTableView>
<PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
</telerik:RadGrid>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data;
using Microsoft.SharePoint;
 
namespace CSOM_RetrieveItemsInAList.ControlTemplates
{
    public partial class testControl : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
          bindGrid();
        }
                                                                       
 
      public void bindGrid()
        {
            SPSite site = new SPSite("http://pasha-pc:42916");
            SPWeb web;
            DataTable dttask = new DataTable();
            DataTable dtNewtask = new DataTable();
             
            web = site.OpenWeb();
            SPList list = web.Lists["Tasks1"];
           
 
 
            dttask = list.Items.GetDataTable();
 
           RadGrid1.DataSource = dttask;
           }
              protected void linkbtnViewDetail_Click(object sender, EventArgs e)
                            {

                             }
           }
 
 
              }
        
 
        
           
        
    

Maria Ilieva
Telerik team
 answered on 30 Aug 2013
8 answers
195 views
Dear Telerik,

is there a automatic spellcheck in editor?

Thank you
Sebastian
Telerik team
 answered on 30 Aug 2013
3 answers
116 views
I have a master page that has a notification control. I want to update the notification as needed during all callbacks. Is there a way to do this without having to add the control to every ajaxsetting. I use a proxy on the content pages and add ajaxsettings programmatically so I would also have to create a reference to the notification control from the master page to add it to the ajacsettings. I have over a hundred ajax calls throughout the site. I basically want to use the notification to show messages for all actions/activity on the site.

Thanks
Maria Ilieva
Telerik team
 answered on 30 Aug 2013
1 answer
89 views
I am having the issue in my attached screenshot.  I cannot figure out why exactly I'm seeing this problem.

My web.config file has maxJsonLength set to max - 2147483644.

How do I know what elements are getting sent into DescribeAppointment that are too large?
Plamen
Telerik team
 answered on 30 Aug 2013
1 answer
157 views
Hi, I want a  treelist looks like below

- node 1                   checkbox      text box
  - node 1.1              checkbox      text box
     - node 1.1.1        checkbox       text box
     - node 1.1.2        checkbox       text box
- node 2                   checkbox      text box
  - node 2.1              checkbox      text box
     - node 2.1.1        checkbox       text box
     - node 2.1.2        checkbox       text box


My treelist will load data for textbox, but I also want user to be able to input some data through text box. And on the page there is a save button. When user click on it, the content in text box will be saved. I want to load this treelist on client side so that each time I expand/ collapse, it won't postback and textbox value can be maintained there.  And When I save data, I will loop through treelist, all t records, no matter its parent node has been expanded or not will be saved.  Is it possible to do that?

 I am very new to .net and I  am looking for  the right way to achieve the tree like and also gridview like function. I am not sure which is the best control to use. I appreciate your advice. 

Thank you so much.
Antonio Stoilkov
Telerik team
 answered on 30 Aug 2013
11 answers
272 views
I'm trying to find out if it is possible to setup the AutoCompleteBox for ASP.Net Ajax to databind with a webservice (asmx) that returns a List<T> as a JSON string.   The List<T> is simply an Airport object with the properties of AiportID and AirportName.  This web service is hosted by a third party making it impossible for any code at the web service end to make use of the Telerik AutoCompleteBoxDataItem objects to package up a return result.

Please advise.
Genady Sergeev
Telerik team
 answered on 30 Aug 2013
1 answer
108 views
I'm using the ASP.NET AJAX Rad controls for asp.net 3.5 in Visual Studio 2010 for the first time. I have made it to the step of "ajaxifying" my RadGrid but when I open the Smart Tag (for any controls) the "Ajax Resources:" header appears but there are no options under it. I'm building a user control so I did not have a ScriptManager on the page so I tried adding one but it didn't change anything. Then I tried adding a RadAjaxManager to the page and that caused the "Ajax Resources:" header to disappear from the Smart Tag altogether. Why isn't this section appearing?
Eyup
Telerik team
 answered on 30 Aug 2013
1 answer
73 views

Hello,

 

Our goal is to add AJAX to a page that has a somewhat complicated architecture. The basic structure is:

Master Page

  1. RadAjaxManager
  2. RadScriptManager

Content Page

  1. RadAjaxManagerProxy
  2.  RadGrid
  3. RadWindow (Opened from button click on RadGrid)
  • 4 Buttons (Which execute server-side code that affects the contents of the RadWindow)
  • User Control (Collection of labels to display information only)
  • RadListView (Each item in the RadListView has controls to display or change data)
  • Item Delete Button (One per RadListView item)
  • RadComboBox (One per RadListView item) (Updates Label below)
  • Label (One per RadListView item)

There are other controls on the page but they are out of scope, so to speak, of what the main issue is. For simplicity's sake they are not listed.

So, the Master Page holds the main RadAjaxManager and RadAjaxScriptManager, and the Content Page has the RadAjaxManagerProxy. Using the Proxy, I've been able to successfully AJAX the controls inside the Content Page, including the RadGrid and it opening the RadWindow after clicking a button in the row in the RadGrid.

However, we've hit a roadblock with trying to AJAXify the controls inside the RadWindow. At best, we can get it so that the Item Delete Button and ComboBox updating the Label work, but they cause the entire RadWindow to blink in and out or disappear/reappear. The buttons, which have to do with saving the data in the RadWindow to the database, adding an item to the RadListView, or deleting everything, are specifically the biggest problem. No attempt has made them work using AJAX. They always cause a full postback.

The complexity of the items in our RadListView may be an issue, though I'm not sure. Each item holds numerous controls that display or change the data of the object represented. I haven't found many examples of people using it this way, and fewer that try to AJAX them.

Any suggestions on what to try, or examples to look at, would be appreciated. Ideally, we would like all operations inside the RadWindow to be AJAX, and to have a seamless user experience -- no RadWindow blinking, and certainly not full postbacks.

Thanks for any help anyone can give!

Antonio Stoilkov
Telerik team
 answered on 30 Aug 2013
1 answer
152 views

Hi,

I need to perform numerous validation for a  textbox depending upon combobox selection.
For Eg:

[combobox]
<telerik:RadComboBox ID="rcbSearch" runat="server" Skin="Office2007">
        <Items>
            <telerik:RadComboBoxItem runat="server" Text="SELECT" Value="SELECT" />
            <telerik:RadComboBoxItem runat="server" Text="Check Number" Value="1" />
            <telerik:RadComboBoxItem runat="server" Text="Customer Name" Value="2" />
            <telerik:RadComboBoxItem runat="server" Text="File ID" Value="3" />
            <telerik:RadComboBoxItem runat="server" Text="Address"
                Value="4" />
            <telerik:RadComboBoxItem runat="server" Text="City" Value="5" />
            <telerik:RadComboBoxItem runat="server" Text="State" Value="6" />
            <telerik:RadComboBoxItem runat="server" Text="Zip" Value="7" />
        </Items>
    </telerik:RadComboBox>

[textbox]
<telerik:RadTextBox ID="rtbSearch" runat="server" Skin="Office2007">
    </telerik:RadTextBox>

Need to perform
1. Numberic validation when File ID is selected from combobox.
2. String validation when name or address is selected from combobox.
3. Validate length of checknumber, city, zipcode separately.

How it can be achieved?

Thanks

Shinu
Top achievements
Rank 2
 answered on 30 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?