Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
140 views
Can I set_datakeyvalue() for a given radgrid item in javascript?
Princy
Top achievements
Rank 2
 answered on 29 Jan 2009
5 answers
295 views

I am using scheduler control.

I have a dat list as follow to bind with control.

Count    Type        Date
2            Auto        27/01/2009
5            Manual    27/01/2009
4            Auto       28/01/2009
10         Manual    28/01/2009

1. I want to show count and Type with different bgcolor base on type.
2. I want to call dialog window when i click the day cell.

 

Please let me know how to change the color (or image) base on type and which event i need to use to call dialog?

One more thing i want to disable default insert, update and delete event since i just want to use this scheduler control for showing data.

Thanks,
Alex

Alex
Top achievements
Rank 1
 answered on 29 Jan 2009
3 answers
101 views
Hi there guys.
I was wondering If there is any chance that I could disable the create new folder and the refresh button?
Thanks

Julian
Top achievements
Rank 1
 answered on 28 Jan 2009
2 answers
140 views
I have a rad grid that uses an ascx for the edit form in a popup.  In that ascx I have images that I'm swapping image URL's on mouse over with java script.  I'm running into a problem because when using getelementbyid, the images are out of scope in the default .aspx and return null.  The solution works fine in the default.aspx but not in the corresponding edit window ascx.  Do I first need to reference the grid as the parent of the image?

<span
                      onmouseover="toggleEdit('PhoneEdit', 'over', $get('Toggled5'))"
                      onmouseout ="toggleEdit('PhoneEdit', 'up', $get('Toggled5'))"
                      onmousedown="toggleEdit('PhoneEdit', 'selected', $get('Toggled5'))"
                      onclick="toggleClick('PhoneEdit', 'click', $get('Toggled5'));return false">
                    <img src="Images/filter_phone_up.gif" id="PhoneEdit" style="border:0; outline:0;" alt="" />
                    <asp:HiddenField ID="Toggled5" runat="server" Value="up" />
                  </span> 

Thanks
Blain
Blain Levitt
Top achievements
Rank 1
 answered on 28 Jan 2009
3 answers
146 views
Hi
I am not having any success in modifying the font size and color on
the top level buttons of a Horizontal Rad Menu in the standard 'black' skin.

I have tried inserting in the website's CSS (in the website root), but to no effect.

 

.rootGroup .item  
{  
    font-family:Georgia;  
    color:#A49261;  

 The control is within a table. Does that have any impact?

 

I am sure it is a piece of cake (when you know how)
Thanks for advice from anyone who has made this work!

Clive

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Serrin
Top achievements
Rank 1
 answered on 28 Jan 2009
2 answers
94 views
I am using a Tab strip in conjunction with a MultiPage to create/edit a complex business entity. One problem I am facing is that, when the page is initially loaded, while the first tab does appear selected, the contents of the tab (ie in the corresponding PageView in the MultiPage) are not displayed. In order to display them, I need to click on another tab and then click on the said tab.
I am sure this is due to some simple omission, but would really appreciate any help in fixing this.
Thanks,
Sreejath
drinell
Top achievements
Rank 1
 answered on 28 Jan 2009
3 answers
232 views
Here are the steps to repro
* Place two RadDatePickers (start date & end date) on a page
* Add javascript validation logic for OnPopupClosing for both controls
* If end date is before start date show validation message, similarly if start date is after end date display message
* Most of the scenarios it works as expected. However it breaks in this scenario

- When you get validation message on end date being before start date, move calendar to previous month & then back to current month. Now try to enter validate date for end date field, it still display validation message.

Let me know if you are able to repro this bug.
Mohammed Ahmed
Top achievements
Rank 1
 answered on 28 Jan 2009
5 answers
181 views
I'd like to build my pages so that users can view but only authorized users can edit, delete and Update the RadGrid.  I realize I could use forms authentication and build two different pages (one for admin and the other for users), but that seems like more work.  Is it possible to use the page load event to disable the visibility of delete and edit columns in the RadGrid?

As an example, I've got a "contacts" page with names and phone extensions.  Only Admin users should be allowed to edit or delete but everyone logged in should be able to view and filter.

Thanks,
David
David
Top achievements
Rank 1
 answered on 28 Jan 2009
1 answer
219 views
I've got 2 pages, each has a radgrid in a splitter set to grow to 100% height.

The grid in the first file grows in height to fill the splitter.  The 2nd one doesn't at all...i can't find the difference to save my life...can someone help me...
This one works fine
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ MasterType VirtualPath="~/Master/BlenderMaster.master" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"
 
    <script type="text/javascript">  
                function ClientResized(sender, eventArgs) 
                {  
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest('ChangePageSize'); 
                } 
    </script> 
 
    <div id="PageTitleHeader"
        <h1> 
            Function Groups 
        </h1> 
    </div> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="rgFunctionGroups"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rgFunctionSpecs" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadSplitter ID="RadSplitter1" Width="100%" Height="95%" runat="server" Orientation="Horizontal"
        <telerik:RadPane ID="gridPane" runat="server" Height="100%" OnClientResized="ClientResized" 
            Scrolling="None"
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
                Width="75px" Transparency="25"
                <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
                    style="border: 0;" /> 
            </telerik:RadAjaxLoadingPanel> 
            <telerik:RadGrid ID="rgFunctionGroups" Skin="WebBlue" GridLines="None" runat="server" 
                AllowAutomaticDeletes="False" AllowAutomaticInserts="False" Height="100%" Width="100%" 
                AllowAutomaticUpdates="False" AllowPaging="False" AutoGenerateColumns="False" 
                AllowFilteringByColumn="true" AllowSorting="true"  
                OnNeedDataSource="rgFunctionGroups_NeedDataSource" 
                OnUpdateCommand="rgFunctionGroups_UpdateCommand"  
                OnInsertCommand="rgFunctionGroups_InsertCommand"
                <HeaderContextMenu Skin="WebBlue"
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </HeaderContextMenu> 
                <PagerStyle Mode="Slider" /> 
                <MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataKeyNames="FunctionGroupID" 
                    HorizontalAlign="NotSet" AutoGenerateColumns="False" EditMode="InPlace"
                    <Columns> 
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" 
                            HeaderStyle-Width="25" /> 
                        <telerik:GridTemplateColumn DataField="groupname" HeaderText="Group Name" SortExpression="groupname" 
                            UniqueName="groupname" HeaderStyle-Width="20%"
                            <ItemTemplate> 
                                <asp:Label ID="lblGroupName" runat="server" Text='<%# Eval( "groupname") %>' /> 
                            </ItemTemplate> 
                            <EditItemTemplate> 
                                <asp:TextBox ID="txtGroupName" runat="server" Text='<%# Eval( "groupname") %>' Width="95%" /> 
                            </EditItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridTemplateColumn DataField="description" HeaderText="Description" SortExpression="description" 
                            UniqueName="description" HeaderStyle-Width="70%"
                            <ItemTemplate> 
                                <asp:Label ID="lblDescription" runat="server" Text='<%# Eval( "description") %>' /> 
                            </ItemTemplate> 
                            <EditItemTemplate> 
                                <asp:TextBox ID="txtDescription" runat="server" Text='<%# Eval( "description") %>' 
                                    Width="95%" /> 
                            </EditItemTemplate> 
                        </telerik:GridTemplateColumn> 
                    </Columns> 
                </MasterTableView> 
                <ClientSettings> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                </ClientSettings> 
                <FilterMenu Skin="WebBlue"
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </FilterMenu> 
            </telerik:RadGrid> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
</asp:Content> 
 
This one doesn't grow
<%@ Page Language="C#" MasterPageFile="~/Master/BlenderMaster.master" AutoEventWireup="true" 
    CodeFile="FunctionSpecs.aspx.cs" Inherits="DevTools_FunctionSpecs" Title="Function Specifications" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ MasterType VirtualPath="~/Master/BlenderMaster.master" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"
 
    <script type="text/javascript">  
                function ClientResized(sender, eventArgs) 
                {  
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest('ChangePageSize'); 
                } 
    </script> 
 
    <div id="PageTitleHeader"
        <h1> 
            Function Specifications 
        </h1> 
    </div> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="rgFunctionSpecs"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rgFunctionSpecs" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadSplitter ID="RadSplitter1" Width="100%" Height="95%" runat="server" Orientation="Horizontal"
        <telerik:RadPane ID="gridPane" runat="server" Height="100%" OnClientResized="ClientResized" 
            Scrolling="None"
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
                Width="75px" Transparency="25"
                <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
                    style="border: 0;" /> 
            </telerik:RadAjaxLoadingPanel> 
            <telerik:RadGrid ID="rgFunctionSpecs" Skin="WebBlue" GridLines="None" runat="server" 
                AllowAutomaticDeletes="False" AllowAutomaticInserts="False" Height="100%" Width="100%"  
                AllowAutomaticUpdates="False" AllowPaging="False" AutoGenerateColumns="False"  
                AllowFilteringByColumn="true" AllowSorting="true" 
                OnNeedDataSource="rgFunctionSpecs_NeedDataSource" 
                OnUpdateCommand="rgFunctionSpecs_UpdateCommand"  
                OnItemDataBound="rgFunctionSpecs_ItemDataBound" 
                > 
                <HeaderContextMenu Skin="WebBlue"
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </HeaderContextMenu> 
                <PagerStyle Mode="Slider" /> 
                <MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataKeyNames="FunctionSpecID" 
                    HorizontalAlign="NotSet" AutoGenerateColumns="False" EditMode="InPlace"
                    <Columns> 
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" 
                            HeaderStyle-Width="25" /> 
                        <telerik:GridDropDownColumn DataField="FunctionGroupId" HeaderText="Function Group" 
                            SortExpression="FunctionGroupId" UniqueName="FunctionGroupId" HeaderStyle-Width="15%" 
                            ListTextField="GroupName" ListValueField="FunctionGroupId" /> 
                        <telerik:GridBoundColumn DataField="displayname" HeaderText="Display Name" SortExpression="displayname" 
                            UniqueName="displayname" HeaderStyle-Width="15%" /> 
                        <telerik:GridBoundColumn DataField="description" HeaderText="Description" SortExpression="description" 
                            UniqueName="description" HeaderStyle-Width="65%" /> 
                        <telerik:GridBoundColumn DataField="exceptions" HeaderText="Exceptions" Display="false" 
                            SortExpression="exceptions" UniqueName="exceptions" /> 
                        <telerik:GridBoundColumn DataField="functionkey" HeaderText="functionkey" Display="false" 
                            SortExpression="functionkey" UniqueName="functionkey" /> 
                        <telerik:GridBoundColumn DataField="requestparams" HeaderText="requestparams" Display="false" 
                            SortExpression="requestparams" UniqueName="requestparams" /> 
                        <telerik:GridBoundColumn DataField="result" HeaderText="result" Display="false" SortExpression="result" 
                            UniqueName="result" /> 
                        <telerik:GridBoundColumn DataField="resultdata" HeaderText="resultdata" Display="false" 
                            SortExpression="resultdata" UniqueName="resultdata" /> 
                        <telerik:GridBoundColumn DataField="url" HeaderText="url" Display="false" SortExpression="url" 
                            UniqueName="url" /> 
                        <telerik:GridCheckBoxColumn DataField="iscompleted" HeaderText="Completed" Display="false" 
                            SortExpression="iscompleted" UniqueName="iscompleted" EditFormColumnIndex="1" /> 
                    </Columns> 
                     
                </MasterTableView> 
                <ClientSettings> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                </ClientSettings> 
                <FilterMenu Skin="WebBlue"
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </FilterMenu> 
            </telerik:RadGrid> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
</asp:Content> 
 


Dimo
Telerik team
 answered on 28 Jan 2009
5 answers
177 views
Hi

I have a Grid on my page, which is implementing the in-built functions of Sorting and Paging.

The Sorting and Paging works great when they are not used together, but when I Sort using a column and then try to go to the next page I get this javascript error that stops the Grid from working...

Sys.WebForms.PageRequestManagerServerErrorException: The index 100 is more or less than the number of rows.

I'm sure that the "100" refers to the page size of the grid, and the number of datarows in the datatable that is assigned to the datasource is considerably more than 100, so there shouldn't be a problem. I have no idea what could be causing this error.

Please help us with this critical problem to our system.

Thanks
AndyL
Sebastian
Telerik team
 answered on 28 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?