Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
On the day view, is there a sample showing multiple users with each user getting their own column?  So if there are four people with appointments on that day, each person would be in their own column.

I thought I remember seeing that, but can't find it now.
Thanks,
Adam


edit:
Ok, I found it on the Resource Grouping.

I'm using the DbSchedulerProviderBase to deliver the Appointment objects to the scheduler.  Can I group by fields in the Appointment class? or do I have to add a resource, then group by that?

Basically I just want to group by Appointment.Owner.  Can I do that, or do I have to add a "owner" resource then group by that?
Thanks,
Adam
Kate
Telerik team
 answered on 19 Aug 2013
8 answers
210 views
Hi,
I have one rad grid with 20 more columns, While i frozen the first two columns the last column will be in out of the grid..
and i used to show full columns in grid with "UseStaticHeaders=True", Bcoz am getting different count of columns from DB when i show a grid.

Can you anyone help me..?

Thanks
-Rk.Moorthy
 answered on 19 Aug 2013
0 answers
51 views

Dear Support Team:

  • We are using software application developed by our consultant on ASP.Net, MySQL, Telerik tools.
  • We are facing issues while opening some of the reports (more than 200 pages) on Ctrl-S LIVE Server.
  • The LIVE Server is with CtrlS datacenters at Hyderabad.
  • The same reports are opening on Developers Test Server and our In-house Test Server, where the configurations of these Test Servers are LOW compared to Ctrl-S LIVE Server.

We had discussed the issue with our Developer team and the CtrlS Datacenters team. The issue is still not yet resolved from past 8 months.

Please find the Server Configurations below:

Test Server Configuration:  (located with our Developer)

Processor                       --    AMD X2 Processor Dual core

Memory (RAM)             --    2.00 GB

Operating System          --    Windows Server 2008 Standard R2 64 Bit

LIVE Server Configuration:  (at  Ctrl-S Datacenter)

Processor                       --    Intel(R) Xeon(R) CPU @ 2.80 or Higher

Memory (RAM)             --    6.00 GB

Operating System          --    Windows Server 2008 Standard 32 Bit SP2

Please share your comments which help us in fixing the problem.  

Thanks,

L. Nagaraj

Nagaraj
Top achievements
Rank 1
 asked on 19 Aug 2013
2 answers
120 views
I am considering purchasing the ASP.NET AJAX suite of controls, but first wanted to be sure I could duplicate the following (link listed below) panel behavior. I am currently using jQuery, jQueryUI and plugins and the maintenance has become burdensome. Can I put space between Telerik PanelBar panels like I'm doing on my web site now?

http://moffat.infoenvoy.com/

 
John
Top achievements
Rank 1
 answered on 19 Aug 2013
1 answer
129 views
I have a page from which a radwindow is opened. From this radwindow(win1), on click of a button another radwindow(win2) is opened which will have a radgrid which is populated from the database. Now, in this grid, I want to click a select link which will pass one of the column values to the radwindow that opened it(win1) and then close the second window(win2).  How do I go about with it?

This is how I open the first window:

 

   <div class="filterDiv">

                <telerik:RadButton ID="uxShowAdvancedSearch" runat="server" Text="Advanced Search" Skin="Sunset">

                   <Icon PrimaryIconCssClass="rbSearch" PrimaryIconLeft="4" PrimaryIconTop="4"></Icon>

                </telerik:RadButton>

                 <telerik:RadWindow runat="server" Animation="Resize" Behaviors="Close,Move" ClientIDMode="Inherit" ID="uxSearchPopup" RestrictionZoneID="ContentTemplateZone"

                    Modal="true" CenterIfModal="true" Title="Advanced Search" Width="600px" Left="100" Top="100">

                    <ContentTemplate>

                        <sc:AdvancedSearch runat="server" id="uxAdvancedSearch" />

                        <div>

                            <telerik:RadButton ID="uxSearch" Text="Search"  Skin="Sunset" runat="server" OnClick="uxSearch_Click"></telerik:RadButton>

                        </div>

                    </ContentTemplate>

                </telerik:RadWindow>

            <%---Javascript related to the RadWindow above---%>

               <div id="ContentTemplateZone">

                     <telerik:RadScriptBlock runat="server" ID="RadScriptBlockAdvancedSearchPopup">

                        <script type="text/javascript">

                            function openWinContentTemplate()

                            {

                                $find("<%=uxSearchPopup.ClientID %>").show();

                            }

                        </script>

                    </telerik:RadScriptBlock>

                </div>

            </div>

 

The user control AdvancedSearch has a panel to which other usercontrols of type SearchCriteria will be added dynamically. One of the SearchCriteria items will open up another radwindow on click of a button with this markup:

 

                        <asp:Panel ID="uxSponsorsPanel" runat="server" Visible="false">

                            <table>

                                <tr>

                                    <td><asp:TextBox ID = "uxSponsor" runat="server" Text="" /></td>

                                    <td>

                                        <telerik:RadButton ID="uxShowSponsorSearch" runat="server" Text="" Skin="Sunset">

                                           <Icon PrimaryIconCssClass="rbSearch"></Icon>

                                        </telerik:RadButton>

                                    </td>

                                </tr>

                            </table>

                        </asp:Panel>

                        <telerik:RadWindow runat="server" Animation="Resize" Behaviors="Close,Move" ClientIDMode="Inherit" ID="uxSponsorSearchPopup" RestrictionZoneID="ContentTemplateZone"

                        Modal="true" CenterIfModal="true" Title="Sponsor Search" Width="600px" Left="100" Top="100">

                            <ContentTemplate>

                                <sc:SponsorSearch runat="server" id="uxSponsorSearch" />

                                <div>

                                    <telerik:RadButton ID="uxSearch" Text="Search"  Skin="Sunset" runat="server"></telerik:RadButton>

                                </div>

                            </ContentTemplate>

                        </telerik:RadWindow>

                        <%---Javascript related to the RadWindow above---%>

                        <div id="ContentTemplateZone">

                                <telerik:RadScriptBlock runat="server" ID="RadScriptBlockAdvancedSearchPopup">

                                <script type="text/javascript">

                                    function openWinContentTemplate() {

                                        $find("<%=uxSponsorSearchPopup.ClientID %>").show();

                                    }

                                </script>

                            </telerik:RadScriptBlock>

                        </div>

The SponsorSearch control has this radgrid:

   <telerik:RadGrid runat="server" ID="uxSponsorList" OnNeedDataSource="uxSponsorList_NeedDataSource" AutoGenerateColumns="false" AllowPaging="true" AllowCustomPaging="true" PageSize="10"

                AllowSorting="true" AllowFilteringByColumn="true" OnItemCommand="uxSponsorList_ItemCommand" Skin="Sunset" >

                <MasterTableView IsFilterItemExpanded="false" EnableHeaderContextMenu="false" EnableHeaderContextAggregatesMenu="false" EnableHeaderContextFilterMenu="false" EnableLinqGrouping="false"

                CommandItemDisplay="Top" CommandItemStyle-BorderWidth="0px" CommandItemStyle-BorderStyle="None" DataKeyNames="ID">

                    <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>

                     <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" />

               

                    <Columns>

                        <telerik:GridBoundColumn DataField="ID" HeaderText="ID" Visible="false" AllowSorting="false"></telerik:GridBoundColumn>

                        <telerik:GridBoundColumn DataField="SponsorName" HeaderText="Name" AllowSorting="true"></telerik:GridBoundColumn>

                        <telerik:GridBoundColumn DataField="SponsorType" Visible="true" HeaderText="Type" AllowSorting="true"></telerik:GridBoundColumn>

                        <telerik:GridBoundColumn DataField="SponsorAgencyClass" HeaderText="Agency Class" AllowSorting="true"></telerik:GridBoundColumn>

                    </Columns>

                </MasterTableView>

                <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>

        

            </telerik:RadGrid>

I want to have a select column in this grid which on clicking will pass the sponsor name of the selected row to the SearchCriteria control that called it and then close the window.

                       



 

Eyup
Telerik team
 answered on 19 Aug 2013
1 answer
97 views
I'm dynamically building a grid's columns on page load based on a metadata structure I have in the database. The grid is building properly including a variety of column types. For the DropDown column, I'm dynamically adding an additional datasource to the form and setting it's select command as well.

protected void Page_Load(object sender, EventArgs e)
{
    var tableName = Request.QueryString["table"];
    if (tableName != null)
    {
        if (!Page.IsPostBack)
        {
            {
                LayoutGrid(tableName);
            }
        }
        BindData(tableName);
    }
}

private static GridColumn AppendDropDownColumn(MetaColumn columnInfo, RadGrid target)
{
    var relatedColumn = columnInfo.LeftRelatedColumn.FirstOrDefault();
    if (relatedColumn == null)
        // Can't find relationship. Just bind as a text column.
        return AppendTextColumn(columnInfo, target);
 
    var col = new GridDropDownColumn();
    target.Columns.Add(col);
    col.ListTextField = relatedColumn.RightDisplayColumn.DatabaseColumnName;
    col.ListValueField = relatedColumn.RightValueColumn.DatabaseColumnName;
    col.DataField = columnInfo.DatabaseColumnName;
    col.HeaderText = columnInfo.Alias;
 
    // Dynamically add datasource for the item list. RAD Controls don't allow setting the datasource directly
    var itemsSource = new SqlDataSource();
    itemsSource.ConnectionString = ConfigurationManager.ConnectionStrings["DynamicWebDb"].ConnectionString;
    itemsSource.SelectCommand = String.Format("Select {0}, {1} FROM {2} ORDER BY {0}",
        col.ListTextField, col.ListValueField, relatedColumn.RightDisplayColumn.MetaEntity.EntityName);
    itemsSource.ID = "Lookup" + columnInfo.ColumnId;
    target.Parent.Controls.Add(itemsSource);
    col.DataSourceID = itemsSource.ID;
 
    return col;
}

This appears to be binding properly as the display value is being displayed rather than the code in view mode,
 but if I shift to edit mode, the dropdown column looses it's data source values. What do I need to do differently
to re-display the dropdown list values correctly when editing. I would prefer not to have to reconfigure the
datasources on each postback.
Eyup
Telerik team
 answered on 19 Aug 2013
5 answers
354 views
Hi,
I have a grid having multiple records so i used paging now what i wanted is when i check first page records and go in any page and return on first the checked records userid must be maintained and on single button(outside grid) click those records data goes in database.
Thanks.
Eyup
Telerik team
 answered on 19 Aug 2013
1 answer
102 views

I am attempting to implement a custom skin with the RadCalendar control but I cannot seem to get it to display correctly.  I would like to customize the ‘Silk” skin for the calendar but I have run into a few hurdles before I can continue any further.  Once the custom skin is implemented (EnableEmbeddedSkins="False" Skin="Silk") the Calendar has some corrupted display issues.  The navigation buttons do not display correctly and the Days of Week align to the right as opposed to being centered.  Interestingly the calendar works fine with embedded default skin.  It does this in both Firefox and IE10.  Has anyone else run into this issue and if so were you able to rectify the situation?  I have modified several controls – Menu, TabStrip, ToolBar, and Grid without any problems.

Additional:

System: Windows 8.0 64

Visual Studios 2012

IIS 8.0

Web App is built in HTML5 .Net 4.0 (Default Classic in VS 2012)

RadControls for ASP.NET AJAX Q2 2013 2.7

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WhoCalendar.aspx.cs" Inherits="En4cer.eSysAdmin.Users.WhoCalendar" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html>
 
<head id="Head1" runat="server">
    <title>Calendar</title>
    <link href="../../Skins/Calendar/Blue/Calendar.Silk.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>  
        <div>
            <telerik:RadCalendar ID="RadCalendar1" runat="server" EnableEmbeddedSkins="false" Skin="Silk" MultiViewColumns="2"></telerik:RadCalendar>
        </div>
    </form>
</body>
</html>

The CSS file is the Calendar.Silk.css from RadControls for ASP.NET AJAX Q2 2013 unmodified.  Attached is a jpg image of the control.
Venelin
Telerik team
 answered on 19 Aug 2013
1 answer
76 views
Hi,

I just added RadScriptManager control and <a href="#maincontent"> Skip to Navigation</a> attribute to the master.site that will apply to all pages and then I just added <a name="maincontent id="maincontent"> </a> in the content page. 

Once I tested them in I.E 9 browser only, I was getting a common error from the radscriptmanager regarding WebResource.axd, etc.  I removed <a name="maincontent id="maincontent"> </a> off from the content page. It worked now.  I also tested them in other browsers (IE 7, 8, 10, Chrome, and Firefox). They are working 

I cannot figure out why I.E 9 is different from other browsers.

Please resolve this issue.

Thanks,
Chi Ming 


Venelin
Telerik team
 answered on 19 Aug 2013
3 answers
160 views
Hi All,

Have a RadGrid with AutoGenerateColumns="true" and EditMode ="InPlace".

Not able to view the last column fully. have attached the screen shot.

The Last column is "Shopping Mall" but it displays as Shop only.

<telerik:RadGrid ID="RadGridSingleClick" runat="server" Skin="Vista" AutoGenerateColumns="true"
                            OnNeedDataSource="RadGridSingleClick_NeedDataSource" OnPreRender="RadGridSingleClick_PreRender"
                            OnUpdateCommand="RadGridSingleClick_UpdateCommand" OnColumnCreated="RadGridSingleClick_ColumnCreated"
                            Height="250px" Width="1100px">
                            <%--OnItemDataBound="RadGridText_ItemDataBound" --%>
                            <MasterTableView HeaderStyle-CssClass="disable-highlight" Width="95%" HeaderStyle-HorizontalAlign="Center"
                                HeaderStyle-Wrap="true" DataKeyNames="MKTID" HeaderStyle-Width="100px" ItemStyle-Width="100px"
                                EditMode="InPlace">
                                <Columns>
                                    <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="60px" HeaderStyle-Width="60px">
                                    </telerik:GridEditCommandColumn>
                                </Columns>
                            </MasterTableView>
                            <ClientSettings Scrolling-AllowScroll="true" Resizing-AllowColumnResize="true" Scrolling-SaveScrollPosition="true"
                                Scrolling-FrozenColumnsCount="2" Scrolling-UseStaticHeaders="true">
                                <Selecting AllowRowSelect="true" />
                                <ClientEvents OnRowClick="RadGridSingleRowClick" />
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                            </ClientSettings>
                        </telerik:RadGrid>

Have even given the MasterTableView Width="95%".

Is there any option to rectify this.

-Anto
Venelin
Telerik team
 answered on 19 Aug 2013
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?