Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views
Hi,

I want to perform following actions on RadCalendar through client side using web methods.

1. Change inner Html and css of current Calendar cells on selection of any cell.
2. Disable, make a cell not selectable and change its style on rendering a new view.
3. Change current view of calendar on button click outside the calendar.

please guide me how can I implement all these through client side.

Issues facing:
1. Not able to add special days to calender from client side.
2. Css not persisting after hover on the Cell after performing event OnDayRender called by NavigateToDate Method.
3. Not able to make any cell disabled or not selectable.
4. Not able to find proper documentation on RadCalendar Client Side Programming other than this:
http://www.telerik.com/help/aspnet-ajax/calendar-client-side-basics.html


Thanks,
Ramanpreet Singh


Vasil
Telerik team
 answered on 12 May 2011
1 answer
144 views
We migrated our application to another server and maybe it is a coincidence but after that wierd things started to happen with Rad controls.

Clearly on some computers the content from WebResource.axd is not served as it should , images are missing for example there are no arrows and command item icons in RadGrid, RadComboBoxes are just white spaces without borders but other controls are visable , like menu. Thats not all, on different machines and different pages different controls are lacking images.

It looks better when Telerik CDN is on for styles but it slows down the page, server is fast enough to serve the content on it own, but that still doesn't solve ale the issues.

Furthermore in logs we keep getting one error :

2011-05-07 10:21:45.6580|Error ## In Application_Error This is an invalid webresource request. ##
                 
Xxx.WebApp.Global.Application_Error()
PipelineStepManager.ResumeSteps() > HttpApplication.RaiseOnError() > Global.Application_Error()
                 
This is an invalid webresource request. System.Web.HttpException HttpException System.Web.HttpException (0x80004005): This is an invalid webresource request.
   at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Void System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext)    at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
                

Have anyone experienced that kind of problem ?

The version that we use is : 2010.3.1109.40 
Maria Ilieva
Telerik team
 answered on 12 May 2011
2 answers
98 views
I am trying to use the RadGrid and the Self-referencing hierarchy concept and had success when pulling all my data from 1 table.  When i put a where clause on the SQLDataSource (where managerid = @managerid (parameter that is passed thru querystring) ) that is attached to the RadGrid I get no results on the grid.  Is the problem that the managerid i put in  has a parentid?  At the root level of my table the record does not have a parentid but i guess my question is can i show all children for a manger that does have a parentid?  Are there any references for using the Self-referencing Hierarchy with SqlDataSource that uses a querystring parameter on the .aspx page?


Thanks.
Mira
Telerik team
 answered on 12 May 2011
1 answer
144 views

Hi,

It seems no matter what element width I set on my RadGrid parent element, the RadGrid forces the parent elements width to be 100%
I have overridden the rgGridData class and it has no effect, the top-level parent element always expands.

Sample code below:

<table border="1" width="500px;">
    <tr>
        <td>
                <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                </telerik:RadScriptManager>
                <telerik:RadGrid ID="rGridSearchResults" Width="500px" runat="server" Height="500px">
                    <ClientSettings Scrolling-AllowScroll="true" Scrolling-ScrollHeight="500px">
                    </ClientSettings>
                    <MasterTableView Width="500px" Height="500px">
                        <NoRecordsTemplate>
                            No Results</NoRecordsTemplate>
                    </MasterTableView>
                </telerik:RadGrid>
        </td>
    </tr>
</table>

Any ideas?
Marin
Telerik team
 answered on 12 May 2011
3 answers
87 views
I am simulating the click of a treview node in Javascript using

get_linkElement().click()

This works perfect in IE8, but Firefox 4.0 and Chrome cannot find the click() function and raises an error.

Any ideas on how I can work around this?

Thanks

Ivan Zhekov
Telerik team
 answered on 12 May 2011
3 answers
214 views
Hi everybody,

i am customizing the AlertTemplate of my RadWindowManager.
I have some trouble with the button inside the template.
While using an asp:button without any problems i always get an error when i change the asp:button with a radbutton-control.
The errormessage says:

"Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request. "

In detail:

"[InvalidOperationException: Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request.]
   Telerik.Web.UI.ScriptRegistrar.GetScriptManager(Control control) +157
   Telerik.Web.UI.RadWebControl.get_ScriptManager() +16
   Telerik.Web.UI.RadWebControl.RegisterScriptDescriptors() +26
   Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) +84
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   Telerik.Web.UI.RadWindowManager.GetTemplateContent(String templateName) +152
   Telerik.Web.UI.RadWindowManager.ControlPreRender() +318
   Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e) +22
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
"

Is this behavior by design? Can i use radbutton in the templates of RadWindowManager?

greetings, Philipp
Georgi Tunev
Telerik team
 answered on 12 May 2011
1 answer
113 views
Hello,

i'm using a treeview with hierachical data binding,
when i'm expanding a node with hundred children in IE, i must wait five seconds but with the same page in the same condition in firefox is instant.

I use Firefox 4 and IE 8 with Windows XP
Eddy
Top achievements
Rank 1
 answered on 12 May 2011
1 answer
228 views
I have the following code in place on a RadGrid. I need to be able to access the ddColumns dropdown HTML element from Javascript.and get the selected value from the dropdown list. Can anyone give me an example of how to do this?

<telerik:RadGrid ID="rgSchedules" Width="100%" CssClass="centergrid" runat="server" ShowFooter="true"
                        OnItemDataBound="rgNettingProductSchedules_ItemDataBound" OnDetailTableDataBind="rgNettingProductSchedules_DetailTableDataBind"
                        OnSortCommand="rgNettingProductSchedules_SortCommand" OnItemCommand="rgNettingProductSchedules_ItemCommand" AllowSorting="false"
                        SortingSettings-SortedBackColor="ControlDark" AllowFilteringByColumn="false" AllowPaging="false" AllowMultiRowSelection="true">
                        <%-- OnDataBound="rgSchedules_DataBound" --%>
                        <GroupingSettings CaseSensitive="false" />
                        <ClientSettings>
                            <ClientEvents OnHierarchyExpanded="RowExpanded" />                            
                            <Selecting AllowRowSelect="true" />
                            <Selecting EnableDragToSelectRows="false" />
                        </ClientSettings>
                        <MasterTableView Name="Scheduling" DataKeyNames="Id" AllowMultiColumnSorting="false" AllowNaturalSort="true" AllowPaging="false"
                            HierarchyLoadMode="Client" AllowFilteringByColumn="false" AutoGenerateColumns="false" CommandItemDisplay="Top" CommandItemStyle-Height="30px">
                            <CommandItemTemplate>
                                <table width="100%" >
                                    <tr>
                                        <td align="left" >
                                            <%--<a href="javascript:void(0);" onclick="javascript:BeginIndexCollection();">--%>
                                            <a href="javascript:void(0);" onclick="javascript:InitGroupEdit();">
                                            <asp:Image ID="Image3" runat="server" style="padding: 0px 5px 0px 5px; border: none;" ImageUrl="~/_assets/images/Edit.gif" />
                                                Group Schedule Edit
                                            </a>
                                            &nbsp;&nbsp;&nbsp;
                                           <a href="javascript:void(0);" onclick="javascript:BeginShiftIndexCollection();">
                                            <asp:Image ID="Image4" runat="server" style="padding: 0px 5px 0px 5px; border: none;" ImageUrl="~/_assets/images/Edit.gif" />
                                                Group Shift Edit
                                            </a>
                                        </td>
                                        <td align="left">
                                            <asp:Label ID="lblColumn" runat="server" style="color:White" Text="Show/Hide Columns"></asp:Label>
                                             <asp:DropDownList ID="ddColumns" onchange="ShowHideColumn()" runat="server">
                                                <asp:ListItem Selected="True" Value="SelectOne" Text="Select One" />
                                                <asp:ListItem Value="Alloy" Text="Alloy" />
                                                <asp:ListItem Value="PlannedCasts" Text="Planned Casts" />
                                                <asp:ListItem Value="PlannedCastsLbs" Text="Planned Casts Lbs" />
                                                <asp:ListItem Value="PlannedGoodLbs" Text="Planned Good Lbs" />
                                                <asp:ListItem Value="ActualCast" Text="Actual Cast"/>
                                                <asp:ListItem Value="ActualCastLbs" Text="Actual Cast Lbs" />
                                                <asp:ListItem Value="ActualGoodLbs" Text="Actual Good Lbs" />
                                                <asp:ListItem Value="Scenario" Text="Scenario" />
                                            </asp:DropDownList>
                                        </td>
                                    </tr>                            
                                </table>                        
                            </CommandItemTemplate>


function ShowHideColumn() {
                var radGrid = GetProductGrid();
                var dd = document.getElementById("ddColumns");
                alert(dd);

                var table = radGrid.get_masterTableView();
                var column = table.getColumnByUniqueName("Alloy");
                
                if (column.style.display = "none")
                    column.style.display = "";
                else
                    column.style.display = "none";
            }        
Princy
Top achievements
Rank 2
 answered on 12 May 2011
1 answer
77 views
Hi,

I am evaluating Telerik Grid for a commercial application, and have a need to do some custom formatting on some cells. The scenario is that one of the columns would have data such as "John Smith - 1234" and I would like to display only "John Smith". The caveat is that if the user chooses to group by the column, I need the grouping to be done according to "John Smith - 1234".

In situations where there is a "John Smith - 1234" and a "John Smith - 5678", they would both display as "John Smith" in the grid, but if I group by the column they would be separate groups.

Is that supported by Telerik Grid? I could not find relevant documentation or examples.

Thank you,
Nicolas
Martin
Telerik team
 answered on 12 May 2011
1 answer
132 views
Folks,

Environment: RadControls for ajax 2011 v1 with VStudio 2010. I am using below link as a prototype.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultcs.aspx

I know there is a Telerik tutorial to hide the (expand/collapse) if no child rows. But my intention is to hide the expand/collapse if no child rows or Customer name starts with 'AN' or 'BL' in GridDataitem.

Thanks

gc_0620
Jayesh Goyani
Top achievements
Rank 2
 answered on 12 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?