Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
105 views
Hi Everybody, I have a problem with Grid.WebBlue.css,
In my project  I was using Telerik.Web.UI which version was 2009.3.1103.20 Today I updated the dll  with 2011.1.701.35 version. In this issue my grid's apperance extented same css but just the dll version is different grid's are run over the page.

Galin
Telerik team
 answered on 21 Jul 2011
2 answers
112 views
Hello,

any examples to change the color of each week numbers on the calendar and to change the mouse to hand on hover?

Thanks
Kumar
Top achievements
Rank 1
 answered on 21 Jul 2011
0 answers
54 views
Hi, I'm using the RadGrid export to excel, and my project usesRadAjaxLoadingPanel, however when I try to make the export screen appears to report the location to save or open the file, however the bottom is showing theloading screen. Have you any idea what can be done to cancel the loading screenis accessed when the export option?

I'm with the 2008 version of telerik


Silderado
Top achievements
Rank 1
 asked on 21 Jul 2011
6 answers
299 views
Hi,

i am Srinivas,

Here in my Project i have a RadGrid View and RadTree view  to display  data from Backend Table. Here i have a problem to display the Header Item for RadGrid. In RadTree View when i checked the RadTree Node Then automatically RadGrid View to Display the Data from Backend. Here i was used the filter concept in RadGrid.
the following is the code for filter concept..

b0.Text = "lot_id [Lot ID] Group By lot_id"
Dim expression1 As GridGroupByExpression = GridGroupByExpression.Parse(b0.Text)
        CustomizeExpression(expression1)
Me.RadGrid1.MasterTableView.GroupByExpressions.Add(expression1)

 Private Sub CustomizeExpression(ByVal expression As GridGroupByExpression)
        Dim existing As GridGroupByField = expression.SelectFields.FindByName("lot_id")
        If existing Is Nothing Then
        Else
            'field is present then set a format string
            existing.FormatString = "{0:C}"
        End If
    End Sub
the above code working fine as per my output  in 1st attachment (1.JPG) .
and next
Following code i used in Rad Grid Item Data Bound for Header Item display:
'Group(heading)
If TypeOf e.Item Is GridGroupHeaderItem Then
Dim item As GridGroupHeaderItem = DirectCast(e.Item, GridGroupHeaderItem)
Dim groupDataRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView)
Dim nodeCollection As IList(Of RadTreeNode)
item.DataCell.Text = ""
For Each column As DataColumn In groupDataRow.DataView.Table.Columns
If column.ColumnName = "lot_id" Then
nodeCollection = RadTreeView1.CheckedNodes
For Each node As RadTreeNode In nodeCollection
header.Text = ""
header.Text += node.FullPath + "<br/>"
item.DataCell.Text = header.Text
Next
End If
Next
End If

But, when i checked the second check box in tree node along with first node, here Backend data displaying fine but coming for RadHeaderItem for 001-Lot1 the header item is displaying like "AF-Angel Falls/P1-Phase1/002-Lot2
Instead of this in my output should be with "AF-Angel Falls/P1-Phase1/001-Lot1
Description for second attachment(2.JPG):

Lot1 and Lot 2 data displaying fine as per second attachment,
but the above  first Header Item Displaying "AF-Angel Falls/P1-Phase1/002-Lot2for Lot 1 details. it should be as bellow
"AF-Angel Falls/P1-Phase1/001-Lot1" for Lot 1 details. 

Please Help Me..

Thanks 
D.Srinivas
D.SRINIVASA
Top achievements
Rank 2
 answered on 21 Jul 2011
4 answers
157 views
Hi,

I am evaluating the Radscheduler, specifically the webpart version. I deployed it to my development sp2010 box OK but I hadve two questions that I have so far been unable to answer:

1) Can the default period in the timeline be extended? 3 days is OK if you're working with hours but I would liek to be able to see a month (I don't need to see hours)

2) Can I add resource headings in timeline view somehow to get the "group scheduler" look that I saw in your silverlight scheduler demo?

I am trying to create a group/team resource scheduler where I can drag jobs (appointments) between different peoples calendars a bit like the sp2010 Group Calendar view.

Many thanks


I
Kalina
Telerik team
 answered on 21 Jul 2011
2 answers
66 views

Hi experts,

I am using the RadAjaxManager the first time and is not working as expected (described: http://www.telerik.com/help/aspnet-ajax/ajax-ajaxmanager.html)

Environment:

  • Dot Net Nuke 6.0
  • The user controll is inhereiting from a base class that nothidg to do with Ajax (just some helping utilities)

Two asp:Panels:

  • panTable: Containing RadGrid where the customers are listed
  • panDetails: Containing different controls where customer details are (will be) displayed

Ajaxifying goals:

  1. panTable is ajaxifyed for sorting, filtering …
  2. panDetails ajaxifyed in order to add components in runtime…
  3. performance:
    1. when a line in panTable is clicked (selected) I write the customerID in a hidden field in  panTable “hdId” and trigger it with JavaScript ($(".updateTriger").trigger('click');)
    2. I am going to trigger panTable reload by btnSave (panDetails) in case the Customer name is changed.

Problem :

When the line in the grid is clicked, both panDetails AND panTable are triggered.

Can you find an error in my code? Do you have a better solution to achieve the goals above?

Thanks,

Kristijan

Code:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CustomersView.ascx.cs"
    Inherits="Vits.Modules.VipCrm.Controls.CustomersView" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="panTable">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="panTable" LoadingPanelID="ralPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="panDetails">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="panDetails" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%">
    <telerik:RadPane ID="rpTable" runat="server">
        <asp:Panel ID="panTable" runat="server">
            <asp:ImageButton ID="imgAdd" ImageUrl="~/images/add.gif" runat="server" />
            <asp:LinkButton ID="lnkAddCustomer" CssClass="CommandButton" runat="server" resourcekey="lnkAddCustomer"
                Text="lnkAddCustomer" />
            <telerik:RadGrid ID="rgvMain" runat="server" OnInit="LocalizeRagGridHeader" DataSourceID="gridData">
                <MasterTableView DataKeyNames="Id" AutoGenerateColumns="false" AllowFilteringByColumn="True"
                    AllowSorting="True" TableLayout="Auto" CssClass="VitsSelectable" OverrideDataSourceControlSorting="true">
                    <Columns>
                        <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" ItemStyle-CssClass="VitsId HiddenA"
                            HeaderStyle-CssClass="HiddenA" SortExpression="Id" />
                        <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"
                            DataType="System.String" UniqueName="Name" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true"
                            FilterControlWidth="100%" ShowFilterIcon="false" />
                    </Columns>
                    <SortExpressions>
                        <telerik:GridSortExpression FieldName="Name" SortOrder="Ascending" />
                    </SortExpressions>
                </MasterTableView>
                <FilterMenu EnableImageSprites="False" />
                <GroupingSettings CaseSensitive="false" />
            </telerik:RadGrid>
            <asp:ObjectDataSource ID="gridData" runat="server" TypeName="Vits.Modules.VipCrm.Dal.DaoCustomers"
                SelectMethod="GetAll" />
        </asp:Panel>
    </telerik:RadPane>
    <telerik:RadSplitBar ID="spliteBar" runat="server" CollapseMode="Forward" />
    <telerik:RadPane ID="rpDetails" runat="server">
        <telerik:RadAjaxPanel ID="raxDetails" runat="server">
            <asp:Panel ID="panDetails" runat="server" OnLoad="panDetails_Load">
                <div class="divDetails">
                    <a href="#" class="updateTriger" onclick="__doPostBack('<%= panDetails.ClientID %>', '');">
                    </a>
                    <asp:HiddenField ID="hdCmd" runat="server" />
                    <asp:HiddenField ID="hdId" runat="server" />
                    <table>
                        <tr>
                            <td>
                                <dnn:Label id="lblName" runat="server" controlname="lblName" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtName" CssClass="NormalTextBox" runat="server" />
                            </td>
                        </tr>
                    </table>
                    <asp:Repeater ID="rptCustomerAccess" runat="server">
                        <HeaderTemplate>
                            <table>
                                <tr>
                                    <th>
                                        <dnn:Label id="lblUserName" runat="server" controlname="lblUserName" />
                                    </th>
                                    <th>
                                        <dnn:Label id="lblHasAccess" runat="server" controlname="lblHasAccess" />
                                    </th>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                </td>
                                <td>
                                    <asp:HiddenField ID="hdUserId" runat="server" Value='<%#Eval("UserId")%>' />
                                    <asp:Label ID="lblLastName" runat="server" Text='<%#Eval("LastName")%>' />
                                    <asp:Label ID="lblFirstName" runat="server" Text='<%#Eval("FirstName")%>' />
                                    -
                                    <asp:Label ID="lblDisplayName" runat="server" Text='<%#Eval("DisplayName")%>' />
                                </td>
                                <td>
                                    <asp:CheckBox ID="cbxHasAccess" Checked='<%#Eval("HasAccess")%>' runat="server" />
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <table id="commands">
                        <tr>
                            <td>
                                <telerik:RadButton ID="btnSave" CssClass="CommandButton" runat="server" resourcekey="btnSave"
                                    OnClick="btnSave_Click" Text="btnSave" />
                            </td>
                            <td>
                                <telerik:RadButton ID="btnCancel" CssClass="CommandButton" runat="server" resourcekey="btnCancel"
                                    OnClick="btnCancel_Click" Text="btnCancel" />
                            </td>
                        </tr>
                    </table>
                </div>
            </asp:Panel>
        </telerik:RadAjaxPanel>
    </telerik:RadPane>
</telerik:RadSplitter>
using System;
using Vits.Modules.VipCrm.Dal;
using Vits.Modules.VipCrm.Ui;
 
namespace Vits.Modules.VipCrm.Controls
{
    public partial class CustomersView : VitsModuleBase
    {
        public override void LoadContent()
        {
 
        }
 
        protected void btnCancel_Click(Object sender, EventArgs e)
        {
          
        }
 
        protected void btnSave_Click(Object sender, EventArgs e)
        {
 
        }
 
        protected void panDetails_Load(object sender, EventArgs e)
        {
            if ("ViewCMD" != hdCmd.Value)
                return;
 
            int id;
            if (!int.TryParse(hdId.Value, out id))
                id = DaoCountries.ID_NONE;
 
            LoadDetails(id.ToString());
        }
 
        private void LoadDetails(string textId)
        {
            int id;
 
            if (!int.TryParse(textId, out id))
            {
                id = -2;//Something wrong!
            }
 
            hdId.Value = id.ToString();
            if (DaoCustomers.ID_NONE == id)
                txtName.Text = string.Empty;
            else
            {
                Customer customer = DaoCustomers.Instance.Get(id);
                txtName.Text = customer.Name;
            }
 
            rptCustomerAccess.DataSource = DaoCustomers.Instance.GetCustomerAccess(PortalId, id);
            rptCustomerAccess.DataBind();
        }
 
    }
}

Kristijan
Top achievements
Rank 1
 answered on 21 Jul 2011
1 answer
35 views
hello admin:

when I add a client node use the script
function addNode()
 var node = new Telerik.Web.UI.RadTreeNode();
 node.set_text(nodeText);

 we can add a node with text

how to add a node with image

 node.set_img(nodeText); ????? or other methods ???

thanks
 
Plamen
Telerik team
 answered on 21 Jul 2011
1 answer
385 views
Is there a global way that I can add some padding (5px or so) to the left and right side of all buttons that I put in the RibbonBarTabs? The buttons kind of merge together as they are.
Kate
Telerik team
 answered on 21 Jul 2011
1 answer
178 views
Hello Telerik Team,
Great control RadImageEditor!
I would like to use a ImageURL like "http:// ..." because my images are on another server. I don't want to edit the images, but just want to use the rotate and zoom functions, they are great!
As I understand it is now not possible to use such an ImageUrl?

gr Martin
Slav
Telerik team
 answered on 21 Jul 2011
1 answer
124 views
I've got a radgrid, with a filter setup like so

myGrid = new RadGrid();
myGrid.ID = "ClientBoundGrid";
myGrid.Culture = new System.Globalization.CultureInfo("en-GB");
//...initialise rest of grid
myGridRadFilter = new RadFilter
{
    ID = "myGridFilter",
    FilterContainerID = "ClientBoundGrid",
    Culture = new System.Globalization.CultureInfo("en-GB")
};
 
myGridRadFilter.ApplyExpressions += new EventHandler<RadFilterApplyExpressionsEventArgs>(myGrid_Filter_Apply);

When I add a filter to the on a date column type, I'd expect the date to be in the format appropriate for the culture I use. (DD/MM/YYYY in this case). However when a date is either typed, or selected from the calender popup, it formats itself to the default en-US format (MM/DD/YYYY). Have I missed a step?

On a slightly related question, is it possible to modify the radfilter object to remove the calender and/or time popups from appearing?
Daniel
Telerik team
 answered on 21 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?