Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
I have been using the RadAJAXManager available in Telerik RadControls Q2 2010 and while running my application in IE 9, I have been receiving the following error message while my RadAJAXLoadingPanel is displaying the image:

Line: 15
Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12030

I am not quite sure why I am receiving this error message.  Below is the code that I am using for my postback on the checkboxchanged event within the RadGrid:

<asp:wizardstep id="wizStepClassReg" title="Class Registration" runat="server" steptype="Step">
            <asp:validationsummary id="vldSummaryCourseSelection" validationgroup="selectedCourses"
                displaymode="SingleParagraph" showmessagebox="true" runat="server" forecolor="Red" />
            <asp:customvalidator id="vldCustomCourseSelection" runat="server" onservervalidate="vldCustomCourseSelection_ServerValidate"
                validationgroup="selectedCourses" errormessage="Please select at least one course for registration"
                display="None" />
            <telerik:radajaxmanager id="radAJAXMgr" enableajax="true" runat="server" defaultloadingpanelid="radAJAXLoadingPanel">
                <ajaxsettings>
                    <telerik:ajaxsetting ajaxcontrolid="gv">
                        <updatedcontrols>
                            <telerik:ajaxupdatedcontrol controlid="gv" loadingpanelid="radAJAXLoadingPanel" />
                        </updatedcontrols>
                    </telerik:ajaxsetting>
                </ajaxsettings>
            </telerik:radajaxmanager>
            <telerik:radajaxloadingpanel id="radAJAXLoadingPanel" runat="server" skin="Black" />
            <telerik:radgrid id="gv" autogeneratecolumns="false" showfooter="false" runat="server"
                cellspacing="0" gridlines="None" allowpaging="true" allowsorting="true" skin="Outlook"
                onpageindexchanged="RadGrid1_PageIndexChanged" showgrouppanel="false" onsortcommand="RadGrid1_SortCommand"
                onpagesizechanged="RadGrid1_PageSizeChanged" onitemdatabound="gv_ItemDataBound">
                <mastertableview datakeynames="CourseID" pagesize="25">
                    <commanditemsettings exporttopdftext="Export to PDF"></commanditemsettings>
                    <rowindicatorcolumn filtercontrolalttext="Filter RowIndicator column">
                    </rowindicatorcolumn>
                    <expandcollapsecolumn filtercontrolalttext="Filter ExpandColumn column">
                    </expandcollapsecolumn>
                    <groupbyexpressions>
                        <telerik:gridgroupbyexpression>
                            <selectfields>
                                <telerik:gridgroupbyfield fieldalias="AgeGroup" fieldname="CategoryDesc" />
                                <telerik:gridgroupbyfield fieldalias="Subject" fieldname="SubjectDesc" />
                            </selectfields>
                            <groupbyfields>
                                <telerik:gridgroupbyfield fieldname="CategoryDesc" sortorder="None" />
                                <telerik:gridgroupbyfield fieldname="SubjectDesc" sortorder="None" />
                            </groupbyfields>
                        </telerik:gridgroupbyexpression>
                    </groupbyexpressions>
                    <columns>
                        <telerik:gridboundcolumn uniquename="CourseID" readonly="true" display="false" datafield="CourseID" />
                        <telerik:gridtemplatecolumn>
                            <itemtemplate>
                                <asp:checkbox runat="server" id="chk" oncheckedchanged="CheckChanged" autopostback="true" />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>
                        <telerik:gridboundcolumn headertext="Age Group" datafield="CategoryDesc" />
                        <telerik:gridboundcolumn headertext="Subject" datafield="SubjectDesc" />
                        <telerik:gridboundcolumn uniquename="CourseDescription" datafield="CourseDescription" headertext="Ages" />
                        <telerik:gridboundcolumn headertext="Term" datafield="term.TermDesc" />
                        <telerik:gridboundcolumn headertext="Course Cost" datafield="Cost" dataformatstring="{0:C}" />
                        <telerik:gridboundcolumn headertext="Length (Weeks)" datafield="CourseLength" />
                        <telerik:gridboundcolumn headertext="Days" datafield="Days" />
                        <telerik:gridboundcolumn headertext="Start Time" datafield="StartTime" />
                        <telerik:gridboundcolumn headertext="End Time" datafield="EndTime" />
                        <telerik:gridboundcolumn headertext="Location" datafield="location.LocationDesc" />
                    </columns>
                    <editformsettings>
                        <editcolumn filtercontrolalttext="Filter EditCommandColumn column">
                        </editcolumn>
                    </editformsettings>
                </mastertableview>
                <headercontextmenu cssclass="GridContextMenu GridContextMenu_Default">
                </headercontextmenu>
            </telerik:radgrid>
        </asp:wizardstep>

Please advise.
Sebastian
Telerik team
 answered on 19 May 2011
1 answer
39 views
Hello .

ScriptManager.RegisterStartupScript(this, this.GetType(), "Key", "radconfirm('This Asset Make Use Ticket, Are Sure Delete This Asset?',confirmCallBackFn, 330, 100, null,'Send Message?');", true);

i call that script

 function confirmCallBackFn(sender, arg) {
                debugger;
                var sample
                if (arg == true) {
                    var lbltxt = "0";
                    var hdnval = document.getElementById("MainContent_hdnval");
                    hdnval.innerText = lbltxt;
                }
                else {
                    var hdnval = document.getElementById("MainContent_hdnval");
                    hdnval.innerText = "1";            
                }
            }

after execute this script
i want go to server side after that only i check
hdnval = 0 i check some process

please reply soon



Thanks,
Mohamed.
Tsvetoslav
Telerik team
 answered on 19 May 2011
10 answers
273 views
I found the code to hide or remove Hourly recurrence and it was very helpful.
Now, I tried to hide or remove Saturday and Sunday checkboxes of Weekly recurrence in RadSchedulerRecurrenceEditor.
How do I do this?  Please help!  Thanks in advance!
Veronica
Telerik team
 answered on 19 May 2011
1 answer
37 views
Hi:
I need to get the text tiped on filter box of my gridview.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 19 May 2011
2 answers
77 views
Hello, I am developing a web application with asp.net and Telerik RadAjax control. I found a problem.That is RadGrid UI is not load correctly. The grid is show the image bellow. How can i solve this type of error.


#NB: This Grid Code is Copy from other Page.


Thanks
Nahid
Nahid
Top achievements
Rank 1
 answered on 19 May 2011
2 answers
204 views
Hello,

Here I need to find DataFieldId from RadTreeView through javascript. My scenario as under:

RadTreeView Fillup as:

RadTreeView1.DataTextField = "ModuleName";
RadTreeView1.DataFieldID = "ModuleID";
RadTreeView1.DataValueField = "URL";
RadTreeView1.DataFieldParentID = "ParentModuleID";
RadTreeView1.DataSource = lstmenu;
RadTreeView1.DataBind();

As above I need DataTextField to display text of my modules, DataValueFields which i am using in JS to pass local url in it. In DatafieldId I am storing "ModuleId". But in javascript I can not find DataFieldId which I need to user on click of RadTreeNode.

JS as like:

function onNodeClicking(sender, args) {
    if (args.get_node().get_value() != null) {
        //window.open(args.get_node().get_value(), args.get_node().get_text(), 'resizable=yes')
    }
}

in above js I need to find DataFieldId also. Please assit me how to do this.

Thanks & Regards,

Kaushal Jani
Kaushal
Top achievements
Rank 1
 answered on 19 May 2011
4 answers
188 views
Hello!
I've got a chart with two pie series. I need to know if it's possible to show a label for each series over each pie.

Thanks a lot.
Ilaria
Scott
Top achievements
Rank 1
 answered on 18 May 2011
1 answer
224 views
Hi all,
           i am facing issue in exporting griddata to excel .  i have a grid which has column of datetimetype where datetime is in 12 hr format ... when i export this grid data in excel and open excel it shows grid this column's value in 24 hr format . I also attached excel file for reference ... in grid i have datetime as 5/4/2011  1:18:03 PM but in exported excel file it is in 5/4/2011  13:18:03  when i click on this cell it shows me in 12 hr format but my requirement is it will be in 5/4/2011  1:18:03 PM only .... i can customize my column excel but thats not feasable beacuse every time i export i need to customize it ... Kindly look into the issue ASAP .
Daniel
Telerik team
 answered on 18 May 2011
1 answer
61 views
:)
Magnus
Top achievements
Rank 2
 answered on 18 May 2011
6 answers
486 views
I receive a "Invalid group by expression: Group By clause missing" when grouping a GridTemplateColumn. However, if I set that same column as a GridBoundColumn, grouping works correctly. Also, if I set the GridTemplateColumn to be grouped by default the GroupByExpressions collection, it is grouped properly, but then if I remove the grouping and drag the column to be grouped again, it fails with the same error.

If I remove the GroupByExpression from the GridTemplateColumn definition and try to group by dragging, I get a "Telerik.Web.UI.GridGroupByException: Expression cannot be null or empty" error.

GridBoundColumn definition that works:

<

 

 

telerik:GridBoundColumn

 

 

 

UniqueName="School1"

 

 

 

SortExpression="School"

 

 

 

DataField="School"

 

 

 

HeaderText="School"

 

 

 

AllowFiltering="true"

 

 

 

Groupable="true"

 

 

 

HeaderStyle-Width="75"

 

 

 

ItemStyle-Width="75"

 

 

 

FooterStyle-Width="75"/>

 


GridTemplateColumn defination that fails (with GroupByExpression="School" I get "Invalid group by expression: Group By clause missing" and without it I get "Telerik.Web.UI.GridGroupByException: Expression cannot be null or empty":

<

 

 

telerik:GridTemplateColumn

 

 

 

UniqueName="School2"

 

 

 

SortExpression="School"

 

 

 

DataField="School"

 

 

 

HeaderText="School"

 

 

 

AllowFiltering="true"

 

 

 

Groupable="true"

 

 

 

HeaderStyle-Width="75"

 

 

 

ItemStyle-Width="75"

 

 

 

FooterStyle-Width="75">

 

 

 

<ItemTemplate>

 

<%

 

# Eval("School") %>

 

 

 

</ItemTemplate>
</telerik:GridTemplateColumn>

 


Dave
Top achievements
Rank 1
 answered on 18 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?