Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
338 views
How can I do a subtitle with different font and size? Is possible?
Evgenia
Telerik team
 answered on 18 Dec 2012
1 answer
94 views
I have a grid that binds using the clientside method - I want to have the LoadingPanel display but can't seem to get it working - any help is appreciated:

<telerik:RadAjaxManager id="RadAjaxManager1" runat="server" >
       <AjaxSettings>
           <telerik:AjaxSetting AjaxControlID="RadGrid1">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="RadGrid1"  />
               </UpdatedControls>
           </telerik:AjaxSetting>
       </AjaxSettings>
       <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
   </telerik:RadAjaxManager>
        
   <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
   </telerik:RadAjaxLoadingPanel>
        
       <asp:Panel ID="Panel1" runat="server">
       <div id="dashtabs-comments" class="box-content no-padding">
            <telerik:Radgrid id="RadGrid1" runat="server" allowmultirowselection="False" allowpaging="True"
               allowsorting="True" gridlines="None" pagesize="25" showstatusbar="True" autogeneratecolumns="False"
               CellSpacing="0">
               <ClientSettings>
                   <DataBinding Location="manageUsers.aspx" SelectMethod="GetDataAndCount"  />
                   <ClientEvents OnGridCreated="AddAllFilterExpressions" OnDataBinding="RadGrid1_DataBinding" OnRowDataBound="OnGridRowDataBound" />
               </ClientSettings>
               <HeaderContextMenu EnableTheming="True">
                   <CollapseAnimation Duration="200" Type="OutQuint" />
               </HeaderContextMenu>
               <MasterTableView ClientDataKeyNames="UserId" TableLayout="Fixed">
                   <Columns>
                                <
telerik:GridBoundColumn DataField="FirstName" UniqueName="FirstName" HeaderText="First Name" HeaderStyle-Width="15%"/>
                       <telerik:GridBoundColumn DataField="LastName" UniqueName="LastName" HeaderText="Last Name" HeaderStyle-Width="15%"/>
                       <telerik:GridBoundColumn DataField="Email" UniqueName="Email" HeaderText="Email" HeaderStyle-Width="15%"/>
                       <telerik:GridBoundColumn DataField="PhoneNumber" UniqueName="PhoneNumber" HeaderText="Phone" HeaderStyle-Width="10%"/>                       
                   </Columns>
 
                   <RowIndicatorColumn>
                       <HeaderStyle Width="20px" />
                   </RowIndicatorColumn>
                   <ExpandCollapseColumn>
                       <HeaderStyle Width="20px" />
                   </ExpandCollapseColumn>
 
                   <EditFormSettings>
                   <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                   </EditFormSettings>
               </MasterTableView>
               <ClientSettings>
                   <Selecting AllowRowSelect="True" />
               </ClientSettings>
               <FilterMenu EnableTheming="True">
                   <CollapseAnimation Duration="200" Type="OutQuint" />
               </FilterMenu>
               <PagerStyle Mode="NextPrevNumericAndAdvanced" />
       </telerik:Radgrid>
       </div>
       </asp:Panel>

and JavaScript:
<script type="text/javascript">
    function RadGrid1_DataBinding(sender, args) {
        // get data source location, method name and arguments
        var dataSourceLocation = args.get_location();
        var selectMethodName = args.get_methodName();
        var methodArguments = args.get_methodArguments();
 
        // set data source location and method name
        args.set_location(dataSourceLocation);
        args.set_methodName(selectMethodName);
 
        var startRowIndexParameterName = sender.ClientSettings.DataBinding.StartRowIndexParameterName;
        var maximumRowsParameterName = sender.ClientSettings.DataBinding.MaximumRowsParameterName;
        var sortParameterName = sender.ClientSettings.DataBinding.SortParameterName;
        var filterParameterName = sender.ClientSettings.DataBinding.FilterParameterName;
    }
 
    function AddFilter(name, value) {
        var grid = $find("<%= RadGrid1.ClientID %>");
        var filterExpression = new Telerik.Web.UI.GridFilterExpression();
        var column = grid.get_masterTableView().getColumnByUniqueName("linkColumn");
        var filterFunction = Telerik.Web.UI.GridFilterFunction.Contains;
        column.set_filterFunction(filterFunction);
        filterExpression.set_fieldName(name);
        filterExpression.set_fieldValue(value);
        filterExpression.set_filterFunction(filterFunction);
        filterExpression.set_columnUniqueName("name");
        grid.get_masterTableView()._updateFilterControlValue(value, "name", filterFunction);
        grid.get_masterTableView()._filterExpressions.add(filterExpression);
    }
 
    function AddAllFilterExpressions(sender, args) {
        AddFilter("aname", document.getElementById('<%= tAccountName.ClientID %>').value);
        AddFilter("fname", document.getElementById('<%= tFirstName.ClientID %>').value);
        AddFilter("lname", document.getElementById('<%= tLastName.ClientID %>').value);
        AddFilter("email", document.getElementById('<%= tEmail.ClientID %>').value);
        AddFilter("uname", document.getElementById('<%= tUserName.ClientID %>').value);
    }
 
  
 
 
    var currentLoadingPanel = null;
    var currentUpdatedControl = "<%= Panel1.ClientID %>";
 
    function RequestStart(sender, args) {
        currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");
 
        //show the loading panel over the updated control
        currentLoadingPanel.show(currentUpdatedControl);
    }
 
    function ResponseEnd() {
        //hide the loading panel and clean up the global variables
        if (currentLoadingPanel != null)
            currentLoadingPanel.hide(currentUpdatedControl);
        currentUpdatedControl = null;
        currentLoadingPanel = null;
    }
</script>
Maria Ilieva
Telerik team
 answered on 18 Dec 2012
1 answer
209 views
Hi,
In my page, i use a rad grid, which creates programatically by adding gridboundcolumns, and to filter the columns i use a rad filter.
I use the grid to bind different data source to display the contents. when i set the data source to this grid , it displays the header text in filter expression. and when i change the datasource to another, the filter expression changes to the new header texts.
The datafield of one column in first datasource is same as the datafield of second. so when displaying the grid with first datasource, the filter expression is same as the header text but when binding the second datasource, because of using the same datafield mentioned in first datasource, the header text which is used in first datasource is showing in the filter expression.
how can i display the header text of second datasource in the filter expression.

thanks in advance
Jiju
Eyup
Telerik team
 answered on 18 Dec 2012
1 answer
113 views
Hi guys,
we have a problem using the resize feature for the cropping box. The error also appears on your telerik demo pages. I have made a video which describes the error:

http://screencast.com/t/PDns6kPb

The problem only appears when using the resize corners on the left and upper side.

Kind regards,
Frank Rademacher
Vessy
Telerik team
 answered on 18 Dec 2012
1 answer
142 views
The problem I am having is that I want to customize the insert form of a radscheduler.  I have a resource that I want to use and I have a radeditor for the description box.  The problem I am having is that I I can add the resource and the combobox populates the correct resource everything looks great but when I submit the resource value is 0 or rather the resource selectedvalue is null.  So it appears that when I click on the combobox and select an item it never changes the selected item.

I figured out the problem.  Make sure that the ID of the resource user control in the advanced form does Not match the resourceType as this causes it to not validate the values properly.  Because the two way binding needs use the same name as the resource type.   In other words:

(works)
<ul class="rsResourceControls">
    <li>
        <!-- Resource controls should follow the convention Res[Resource Name] for ID -->
        <scheduler:ResourceControl runat="server" ID="ResourceTypeID" Type="ResourceType" Label="Resource type:"
            Skin='<%# Owner.Skin %>' />
    </li>
    <!-- Optionally add more ResourceControl instances here -->
</ul>

[Bindable(BindableSupport.Yes, BindingDirection.TwoWay)]
public object ResourceType
{
    get
    {
        return ResourceTypeID.Value;
    }
 
    set
    {
        ResourceTypeID.Value = value;
    }
}

(doesn't work)
<ul class="rsResourceControls">
    <li>
        <!-- Resource controls should follow the convention Res[Resource Name] for ID -->
        <scheduler:ResourceControl runat="server" ID="ResourceType" Type="ResourceType" Label="Resource type:"
            Skin='<%# Owner.Skin %>' />
    </li>
    <!-- Optionally add more ResourceControl instances here -->
</ul>
[Bindable(BindableSupport.Yes, BindingDirection.TwoWay)]
public object ResourceTypeID
{
    get
    {
        return ResourceType.Value;
    }
  
    set
    {
        ResourceType.Value = value;
    }
}
Boyan Dimitrov
Telerik team
 answered on 18 Dec 2012
3 answers
259 views
Hi there,

I am experiencing a problem when using drag and drop with Radlistboxes. 

Here is the scenario:

I drag an item from one Radlistbox and drop into the middle position of a second Radlistbox, When I iterate the items in the second Radlistbox using a foreach loop, it seems that the item I just dropped was iterated at the end of the loop. Isnt it suppose to be looped  in the middle? Any help or suggestions would be greatly appreciated.

Thanks,
Meng
Bozhidar
Telerik team
 answered on 18 Dec 2012
1 answer
61 views
Hello,

I have a rad grid on a form that has to be filled out with details on a particular document. In the SQL DB, the form has its own unique ID, and the radgrids in it, have their own table, with the form ID as a foreign key in those tables. When I first create a form, I want to be able to add records to the radgrids, but it will give be a null exception, because it does not have a form ID yet. Can I get some help with this? Would I have to use a session variable? if so, I have never used a session variable and I am new to this. I am using vb.net.
Radoslav
Telerik team
 answered on 18 Dec 2012
3 answers
139 views
I have a fairly conventional RadGrid set up with a FormTemplate popup.  I put a pair of RadComboBoxes within a RadAjaxPanel (although that appears to have no effect on the basic problem.) This is a fairly conventional scenario. The SelectedIndexChanged of the first box updates the second one.

This works perfectly when the grid is in Edit mode but the SelectedIndexChanged fails when the template is in Insert Mode.

I see there are all too many entries in this forum about this problem but I haven't found anything that looks like a solution yet.

Is this something that will be fixed in the next release?
Antonio Stoilkov
Telerik team
 answered on 18 Dec 2012
1 answer
131 views
Hello,

I have a problem in Grouping and show  total of coulmn. Here is the RadGrid control:
 
   <telerik:RadGrid ID="gvDetails" runat="server" Width="100%" Height="570px" Skin="Hay"
                                AllowPaging="false" AllowSorting="true" PageSize="10" GridLines="None" AllowMultiRowSelection="false"
                                OnItemDataBound="gvDetails_ItemDataBound" OnPreRender="gvDetails_PreRender" OnColumnCreated="gvDetails_ColumnCreated"
                                OnItemCommand="gvDetails_ItemCommand" OnGroupsChanging="gvDetails_OnGroupsChanging"
                                ShowFooter="True" ShowGroupPanel="true">
                                <PagerStyle Mode="NextPrevAndNumeric" />
                                <FooterStyle Font-Bold="true" />
                                <HeaderStyle Font-Bold="true" />
                                <ClientSettings AllowColumnsReorder="true" AllowDragToGroup="true">
                                    <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" />
                                    <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                                    <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"
                                        AllowColumnResize="True"></Resizing>
                                </ClientSettings>
                                <GroupingSettings CaseSensitive="false" RetainGroupFootersVisibility="true" ShowUnGroupButton="true" />
                                <ExportSettings>
                                    <Pdf PageTitle="My Page" PaperSize="A4" />
                                </ExportSettings>
                                <MasterTableView Width="100%" TableLayout="Auto" CellSpacing="-1" GroupLoadMode="Client" AllowFilteringByColumn="true"
                                    CommandItemDisplay="TopAndBottom" ShowGroupFooter="true" AllowMultiColumnSorting="true"
                                    CommandItemSettings-ShowAddNewRecordButton="false">
                                    <CommandItemSettings ShowExportToCsvButton="true" ShowExportToPdfButton="true" />
                                    <NoRecordsTemplate>
                                        <div style="font-weight: bold; color: Red;">
                                            No Record Found.</div>
                                    </NoRecordsTemplate>
                                </MasterTableView>
                            </telerik:RadGrid>


And in behind Code, I bind from the Procedure in Dataset:


            gvDetails.DataSource = ds.Tables[0];
            gvDetails.DataBind();


How i can do to display the total sum to every column which display in the radgrid control.

i also check the following link:

http://www.telerik.com/help/aspnet-ajax/grid-perform-calculations-in-group-header.html
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-group-totals-for-dynamic-columns.aspx
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-grouping-with-calculated-subtotals.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/groupfooter/defaultcs.aspx
But I don't find any solution.


Please help me as soon as possible.

Thanks

Best Regards

Jiten Mutum
Antonio Stoilkov
Telerik team
 answered on 18 Dec 2012
3 answers
622 views
Hi all,

I am trying to filter a rad textbox in client side. I need to restrict special characters (eg. $, ^, # [,]) in it. How can I implement this?

Please provide me a solution for this.

Thanks and Regards
Shajan
Shinu
Top achievements
Rank 2
 answered on 18 Dec 2012
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?