Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
41 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
288 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
43 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
86 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
214 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
201 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
230 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
67 views
:)
Magnus
Top achievements
Rank 2
 answered on 18 May 2011
6 answers
504 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
2 answers
133 views
I have a RadGrid with serveral columns.  The columns that are not GridBoundColumns group fine.  However, my GridTemplateColumns are throwing errors when a user tries to group by them.

I am using Telerick Web.UI version 2008.3.1105.35

Sample code which is breaking
<telerik:GridTemplateColumn DataField="STATUS" HeaderText="Status" 
                        ItemStyle-HorizontalAlign="center" SortExpression="STATUS">  
    <ItemTemplate> 
        <asp:Label ID="LabelStatus" runat="server" /> 
    </ItemTemplate> 
</telerik:GridTemplateColumn> 

I have two rows to test and neither column has empty data but it still throws this alert.

JS Error:
Sys.WebForms.PageRequestManagerServerErrorException: Expression cannot be null or empty

.NET Error:
cannot be null or empty at Telerik.Web.UI.GridGroupByExpression.SetExpression(String expression) at Telerik.Web.UI.GridGroupByExpression..ctor(GridColumn column) at Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.status_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Dave
Top achievements
Rank 1
 answered on 18 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?