Telerik Forums
UI for ASP.NET AJAX Forum
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
200 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
503 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
0 answers
117 views
We  are trying to upload a file from a RadEditPopup which is opened from a Radgrid control. However, we could not get the file name from the RadUpload control. The RadUpload control returns a null value for the file name (it works properly when the control sits on a stand-alone page as in your web-demo for this control).  For your reference, I have  pasted code below which demonstrates the problem we are experiencing. Your prompt attention to this issue would be greatly appreciated. Thank you for your time, and we look forward to hearing from Telerik Support very soon.

ASPX Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<head>
 
    <script language="javascript">  
    </script>
 
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadGrid ID="RadFormsLibrary" runat="server" AutoGenerateColumns="false"
            Skin="Vista" EnableLinqExpressions="false" Width="100%"
            OnNeedDataSource="RadFormsLibrary_NeedDataSource"
            onupdatecommand="RadFormsLibrary_UpdateCommand">
            <MasterTableView TableLayout="Fixed" Name="Forms" GroupLoadMode="Client" EditMode="PopUp"
                AllowSorting="true" AllowMultiColumnSorting="True">
                <HeaderStyle CssClass="HeaderStyle" />
                <ItemStyle CssClass="ItemStyle" />
                <AlternatingItemStyle CssClass="AlternatingItemStyle" />
                <NoRecordsTemplate>
                    <div style="background-color: Silver; height: 20px; color: Red; text-align: center;
                        font-size: 10pt; font-family: Verdana; font-weight: bold;">
                        <i>No forms defined for this application.</i>
                    </div>
                </NoRecordsTemplate>
                <Columns>
                    <telerik:GridTemplateColumn HeaderText="Options" AllowFiltering="false" Reorderable="false"
                        Groupable="false" UniqueName="Options" HeaderStyle-Width="6%">
                        <ItemTemplate>
                            <asp:LinkButton ID="lnkEdit" CommandName="Edit" Text="Edit" runat="server"></asp:LinkButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="EID" DataField="EID" UniqueName="EID" HeaderStyle-Width="7%">
                        <ItemTemplate>
                            <asp:Label ID="lblJuris" ToolTip='<%# Eval("EID") %>' runat="server"></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <EditFormSettings EditFormType="Template">
                    <PopUpSettings ScrollBars="Auto" Modal="true" />
                    <FormTemplate>
                        <telerik:RadUpload ID="RUPhoto" runat="server" ControlObjectsVisibility="None" AllowedFileExtensions=".jpg,.jpeg"
                            Skin="Office2007">
                        </telerik:RadUpload>
                         <asp:Button ID="btnUpdate" runat="server" Text="Submit" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' />
                    </FormTemplate>
                </EditFormSettings>
            </MasterTableView>
        </telerik:RadGrid>      
    </div>
    </form>
</body>
</html>


Code Behind Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Telerik.Web.UI;
 
public partial class Default4 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
 
    }
 
    protected void Button1_Click(object sender, EventArgs e)
    {
        string fileName = RUPhoto.UploadedFiles[0].FileName;
        Response.Write(fileName);
    }
 
 
    public DataTable GetData()
    {
        DataTable dt = new DataTable();
        dt.Columns.Add("EID");
 
        for(int i=0;i<=5;i++)
        {
            DataRow dr = dt.NewRow();
            dr[0]=i;
            dt.Rows.Add(dr);
        }
        return dt;
    }
    protected void RadFormsLibrary_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        DataTable dt=GetData();
        RadFormsLibrary.DataSource = dt;
    }
    protected void RadFormsLibrary_UpdateCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        RadUpload rdFileName = e.Item.FindControl("dlFileName") as RadUpload;
        string fileName = rdFileName.UploadedFiles[0].FileName;
    }
}
    

John John
Top achievements
Rank 1
 asked 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?