Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
Hello -

I am using the RadDatepicker but I only want my users to select the Month and Year.  Can I format the calendar to look like the Month/Year picker in the FastNavigation window?
Shinu
Top achievements
Rank 2
 answered on 05 Feb 2009
10 answers
395 views
Hi,

I have a form containing a toolbar which traps a client-side event to call a window.open to open up a popup window. On the popup window i have the same set up; where i want to open yet another popup window using the toolbar and client-side event to call window.open.

what i am finding is that the second popup does not open up, although the code seems to get called.

Please help.

Jan
Yana
Telerik team
 answered on 05 Feb 2009
1 answer
97 views
Hi,

I am new to using Telerik controls.
I have added 3 asp text boxes inside a RadPanel bar. I am able to expand and collapse the panel item.
Can someone tell me how I can access the values in the 3 text boxes in code behind?

TIA
Princy
Top achievements
Rank 2
 answered on 05 Feb 2009
1 answer
193 views
I have an export to csv button that worked untill I Ajaxified all controls on this page with an ajaxpanel.


I get a javascript error as follows:
[Exception... "'Sys.WebForms.PageRequestManagerParserErrorException: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near '"Source","Source Cre'.'


My code resembles the one below:

Thanx for the help.

<asp:LinkButton ID="ExportLinkButton" runat="server" CssClass="export linkText menu left" Text="Export CSV"
OnClick="export_Clicked" ToolTip="Export to csv" ></asp:LinkButton>

protected void export_Clicked(object sender, EventArgs e)
        {
                   string fname= "path/FileName.csv";
                   string path = MapPath(fname);
                    string name = Path.GetFileName(path);
                    string ext = Path.GetExtension(path);
                    string type = "text/csv";
                    Response.ContentType = type;                  
                    Response.AppendHeader("content-disposition", "attachment; filename=" + name);
                    Response.WriteFile(path);
                    Response.End();
            }
Shinu
Top achievements
Rank 2
 answered on 05 Feb 2009
1 answer
86 views
Hi, I have a strange behavior when I'm using the Dropdownlist using RadAjaxManagerProxy. The whole page refreshes instead of just the desired  controls.Please see the following snippet of code and suggest what am I doing wrong.

 

 

 

<telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableTheming="True">

 

 

 

 

</telerik:RadScriptManager>

 

 

 

 

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">

 

 

 

 

<AjaxSettings>

 

 

 

 

<telerik:AjaxSetting AjaxControlID="list1">

 

 

 

 

<UpdatedControls>

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="Label1" />

 

 

 

 

</UpdatedControls>

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

</AjaxSettings>

 

 

 

 

</telerik:RadAjaxManagerProxy>

 

 

 

 

<asp:Panel ID="Panel1" runat="server">

 

 

 

 

<asp:DropDownList ID="list1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="list1_SelectedIndexChanged">

 

 

 

 

<asp:ListItem Text="ENG" Value="0"></asp:ListItem>

 

 

 

 

<asp:ListItem Text="AUS" Value="1"></asp:ListItem>

 

 

 

 

<asp:ListItem Text="SA" Value="2"></asp:ListItem>

 

 

 

 

</asp:DropDownList>

 

 

 

 

<asp:Label ID="Label1" runat="server" Text="CurrentDate"></asp:Label>

 

 

 

 

</asp:Panel>

 

 

 


On the Code behind:

 

 

public partial class _Default : System.Web.UI.Page

 

 

 

{

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

if (Page.IsPostBack)

 

{

GetLatestDate();

}

}

 

public void GetLatestDate()

 

{

Label1.Text =

DateTime.Now.ToString();

 

}

 

 

 

protected void list1_SelectedIndexChanged(object sender, EventArgs e)

 

{

GetLatestDate();

}
}

Shinu
Top achievements
Rank 2
 answered on 05 Feb 2009
1 answer
148 views
I have a grid with one master and one detail table. Ive included the toolbar at the top which allows me to include the program logic for adding new records to the master table, but how can I provide the same functionality for the detail table ?  (as well as update and delete)
Princy
Top achievements
Rank 2
 answered on 05 Feb 2009
2 answers
101 views
I found some information here http://www.telerik.com/community/forums/aspnet-ajax/grid/telerik-webcontrols-gridinsertionobject-error.aspx and here http://www.telerik.com/help/aspnet/grid/grderrormessages.html but they cannot help because my property is a class, not a primitive type.

My error message: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'Address'.

Is there anyway to bind a data class in insert mode?

                                <FormTemplate>     
                                    <table> 
                                        <tr> 
                                            <td> 
                                                Street: 
                                            </td> 
                                            <td> 
                                                <asp:TextBox ID="txtStreet" runat="server" Text='<%# Bind("Address.Street") %>' /> 
                                            </td> 
                                            <td> 
                                                City: 
                                            </td> 
                                            <td> 
                                                <asp:TextBox ID="txtCity" runat="server" Text='<%# Bind("Address.City") %>' /> 
                                            </td> 
                                            <td> 
                                                Zip: 
                                            </td> 
                                            <td> 
                                                <asp:TextBox ID="txtZip" runat="server" Text='<%# Bind("Address.Zip") %>' /> 
                                            </td> 
                                            <td align="right"
                                                <asp:LinkButton ID="btnUpdate" runat="server" CommandName="Update" Visible='<%# Eval("Id").ToString().Length != 0  %>'>Update</asp:LinkButton> 
                                                <asp:LinkButton ID="btnAdd" runat="server" CommandName="PerformInsert" Visible='<%# Eval("Id").ToString().Length == 0  %>'>Add</asp:LinkButton> 
                                                &nbsp;&nbsp;&nbsp; 
                                                <asp:LinkButton ID="btnCancel" runat="server" CommandName="Cancel">Cancel</asp:LinkButton> 
                                            </td> 
                                        </tr> 
                                    </table>                                 
                                </FormTemplate> 

t800t8
Top achievements
Rank 1
 answered on 05 Feb 2009
2 answers
166 views
RequiredFieldValidator not working in FormTemplate. I am using Ajax with grid. When grid goes to edit mode then no validation occurs when I click button of update.
Nabil
Top achievements
Rank 1
 answered on 05 Feb 2009
0 answers
108 views
 Hi 

In my application using radgrid i m uploading or editing documents with Fileupload 
control.

Mean while i have a combobox with items as "GENERAL,Accounts and sponsorlogo".
suppose if i select General or accounts ,am able to upload any time of contents. 
but if i select sposorlogo. i should be able to upload only images (like GIF,JPEG,PNG,BITMAP,..)
this should be acheived in opendialog box itself .and i don't want to acheive this by code like 
cases with extension in code behind.



(For quick understand if u try to convert RM to MP3 songs through RM to MP3 converter. 
While uploading if filters and lists only files with extension .RM not any other extension.)


Thanks for any help.
sudheer
Top achievements
Rank 2
 asked on 05 Feb 2009
0 answers
68 views

Hi,

   1) By assigning image to 'targetfolder' property in RadUpload, images are well stored in prescribed folder. Nowi need to change this current uploaded file name.

   2) And i have done above task inother way as :

      protected voidRadGrid1_UpdateCommand(object source, GridCommandEventArgs e)

    {  

       RadUploadcurrentUpload = ((RadUpload)e.Item.FindControl("RadUpload1"));

       RadUploadContext uploadContext = RadUploadContext.Current;

        UploadedFileFile = uploadContext.UploadedFiles[currentUpload.UniqueID];

        if (File !=null)

        {

           File.SaveAs(Server.MapPath("~/Icons" + File.GetName()));

        }}

---- here in uploadcontent value is null ..and getting an error as Object reference not set to an instance of anobject.

Thanks,

Nagarjun S.

nagarjun
Top achievements
Rank 1
 asked on 05 Feb 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?