Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
80 views
Hello,
          I want to store a value which is common to the entire row? How do i do it?  Or do I need to keep a hidden column to do it? Please let me know. I didnt see much information on this in the documentation.

Thanks,
Bharani
Shinu
Top achievements
Rank 2
 answered on 27 Oct 2010
3 answers
123 views
hi,
http://demos.telerik.com/aspnet-ajax/listview/examples/selecting/defaultcs.aspx

i want to set one of the item selected (with selected SelectedItemTemplate) in Page_Load in above example.





Jayesh Goyani
Top achievements
Rank 2
 answered on 27 Oct 2010
4 answers
236 views
I have read through a number of posts and articles today and am still a bit unclear on how to solve a particular rebind issue we are seeing. Any help would be greatly appreciated.

ASPX Page (Default.aspx)
    -> RadTabString
    -> RadMultiPageView
        -> UserControl
            -> RadPanelBar
                -> RadGrid

The hierarchy above outlnes where my grid is in the page. Basically we are mimicing the same functionality found in this demo: 
Using RadWindow to Edit a Grid Row

The main difference is that our grid is not on the same page like the demo but embedded in a usercontrol and also within a RadPanel that allows us to collapse the multiple grids that are on that control.

As with some other posters, we are seeing the issue of the RadGrid not refreshing when you call Rebind within the RadAjaxManager1_AjaxRequest call.

We do see the _NeedDataSource call being made and the DataSource being set to the update data object, the control itself just won't redraw.

Is there an efficient way to make the grid refresh in this scenario?

Thanks





Gajanan
Top achievements
Rank 2
 answered on 27 Oct 2010
0 answers
87 views
Is posible attach files directly to mail message without stored en file system?

tks
Ludwing
Top achievements
Rank 1
 asked on 26 Oct 2010
4 answers
124 views
I have a page with a link that opens a RadWindow on the page with an edit form.  When the user saves on the RadWindow the entire page reloads and updates info.  This was based on a Telerik example and worked fine.

I added a fileExplorer to the page now with a custom content provider.  Everything seemed to be working well.

However, my users have encountered an issue when they upload files.  I see that Upload is the only event on the FileExplorer that does a postback and not just an ajax load.  If the user uploads a file, and then uses the RadWindow edit form and saves their changes they will be prompted 100% of the time with the generic "Do you want to reload the page" browser dialog box and if they click cancel they will get Session has expired, if they click retry they will get the message from the FileExplorer stating that the file already exists.

It seems that the upload process from the FileExplorer is lingering in the page and when I tell my form to save it tries to save the file again since its locked up in the page refresh.

This seems to be because the edit form does a postback of its own information, and then using javascript closes itsself and reloads the underlying page, which still has the upload postback to fire. Its a simple window.location.reload()

Any suggestions as to a work around for this?
Jay Leffue
Top achievements
Rank 1
 answered on 26 Oct 2010
3 answers
63 views
Hi All

I have successfully integrated radgrid with my SP lists, but with a rendering problem.

If my underlying view contains a date/time column and the grid is set to allow grouping, then the grid header renders very strangely. Even if I turn grouping off, it still renders the refresh button on the left rather than the right.

The problem is not there if I remove the date time field (s) from the underlying view.

Is this a known issue?

Many thanks

Chris
Tsvetoslav
Telerik team
 answered on 26 Oct 2010
9 answers
235 views
(Search forums: Done)
(Look through tutorials: Done)
(Browse online examples: Done)
(Look at giant tutorial PDF: Done)

Hi all.
I'm looking for a complete, stand alone, start to finish, example of how to implement the Scheduler, with multi-value resources. I've found lots of bits and pieces here and there in the examples and so forth that seem to always assume knowledge of yet other things, but nothing *complete* and *stand alone*.

Thanks a bunch for your patience!

Paul
Peter
Telerik team
 answered on 26 Oct 2010
1 answer
420 views

Hi All,

Assembly Version: 2010.2.826.35

i want to cancel file deletion if user clicks on "Cancel" button on confirmation alert.which i am showing on remove(delete).
But that is not happening .It deletes the file and only keeps the file name row

<telerik:RadAsyncUpload ID="radUpload" runat="server" AllowedFileExtensions=".pdf" MaxFileInputsCount="5"  Localization-Select="Browse" Localization-Remove = "Delete Document"                    OnClientValidationFailed="validationFailed" TemporaryFileExpiration="5"            OnClientFileSelected="fileSelected" OnClientDeleting="fileDelete" OnClientFileUploaded ="fileUploaded">
</telerik:RadAsyncUpload>
  
function fileDelete(sender, args) {
        
        if (confirm("Are you sure to Delete the record?"))  {
            args._cancel = false;        
        }
        else {
            args.set_cancel(true);         
            //args._cancel = true;
            //sender._cancelEvent();
        }
    }

Can anyone help me on this.

Thanks,
Deepak Dhirhe
Genady Sergeev
Telerik team
 answered on 26 Oct 2010
3 answers
91 views
Hi

I am playing with the MVC RadScheduler demo and was wondering how to allow only the user that created the appointment to be able to edit/delete that apointment?

Thanks
Peter
Telerik team
 answered on 26 Oct 2010
5 answers
170 views
Hi,

I've a user control , composed of two asp:buttons. I would like only one of the buttons perform partial page update via radajax.
How can I do this (since  EventName attribute isn't working)?

Default.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="UserControlAndRadAjax._Default" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register  Src="~/MyUserButton.ascx" TagPrefix="UC" TagName="MyUserButton" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="MyUserControl" EventName="ClickMeClick" >
                <UpdatedControls >
                    <telerik:AjaxUpdatedControl  ControlID="CounterLiteralTd"/>
                 </UpdatedControls>
            </telerik:AjaxSetting>
             <telerik:AjaxSetting AjaxControlID="AjaxifiedClickMeButton" >
                <UpdatedControls >
                    <telerik:AjaxUpdatedControl  ControlID="CounterLiteralTd" LoadingPanelID="RadAjaxLoadingPanel1"/>
                 </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
    </telerik:RadAjaxLoadingPanel>
    <div>
    <table border="1">
        <tr>
            <td>
                <asp:Button runat="server" ID="AjaxifiedClickMeButton" Text="AjaxifiedClickMe" />
            </td>
            <td>
    
                <UC:MyUserButton runat="server" ID="MyUserControl" ></UC:MyUserButton>            
            </td>
        </tr>
        <tr>
            <td colspan="2" >             
                <asp:Panel style="width:100px;height:100px;" runat="server" ID="CounterLiteralTd">
                 <asp:Label  runat="server" ID="CounterLiteral"></asp:Label>
                </asp:Panel>
            </td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>


Default.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Threading;
  
namespace UserControlAndRadAjax
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.MyUserControl.ClickMeClick += new EventHandler(MyUserControl_Click);
            this.MyUserControl.ClickAsWellClick += new EventHandler(MyUserControl_Click);
            this.AjaxifiedClickMeButton.Click += new EventHandler(MyUserControl_Click);
        }
  
  
        public void MyUserControl_Click(object sender, EventArgs e)
        {
            Thread.Sleep(500);
  
            if (!string.IsNullOrEmpty(this.CounterLiteral.Text))
            {   
                int currentValue = int.Parse(this.CounterLiteral.Text);
                currentValue++;
                this.CounterLiteral.Text = currentValue.ToString();
            }
            else
            {
                this.CounterLiteral.Text = "0";
            }
        }
    }
}

MyUserButton.ascx

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyUserButton.ascx.cs" Inherits="UserControlAndRadAjax.MyUserButton" %>
<asp:Button runat="server" ID="AjaxifiedClickMe" Text="AjaxifiedClickMe" />
<asp:Button runat="server" ID="ClickAsWellButton1" Text="ClickAsWell" />

MyUserButton.ascx.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
  
namespace UserControlAndRadAjax
{
    public partial class MyUserButton : System.Web.UI.UserControl
    {
        public event EventHandler ClickMeClick;
        public event EventHandler ClickAsWellClick;
  
        protected void Page_Load(object sender, EventArgs e)
        {
            this.AjaxifiedClickMe.Click += new EventHandler(ineerButton_Click);
            this.ClickAsWellButton1.Click += new EventHandler(ClickAsWellButton1_Click);
        }
  
        void ClickAsWellButton1_Click(object sender, EventArgs e)
        {
            if (this.ClickAsWellClick != null)
            {
                this.ClickAsWellClick(this, EventArgs.Empty);
            }
        }
  
        void ineerButton_Click(object sender, EventArgs e)
        {
            if (this.ClickMeClick != null)
            {
                this.ClickMeClick(this, EventArgs.Empty);
            }
        }
        protected override void Render(HtmlTextWriter writer)
        {
            writer.Write("<div ");
            writer.WriteAttribute("id", this.ClientID);
            writer.WriteLine(">");
            base.Render(writer);
            writer.WriteEndTag("div");
        }
  
  
    }
}


Pavlina
Telerik team
 answered on 26 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?