Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
138 views
The ConfirmText property for the AutoGenerateDeleteColumn?  Cannot find it anywhere.  I'm trying to set up a delete confirmation for the grid.

derek
Top achievements
Rank 2
 answered on 25 Mar 2009
3 answers
277 views
Hello,

I am using RadInputManager to do client-side form validation. I used a similiar setup as described in this blog post:

http://blogs.telerik.com/toddanglin/posts/08-12-12/Showing_RadToolTip_on_RadInput_input_error.aspx

I can't seem to find a way to make both validating on RegExpTextBoxSetting and field required work. What happens is that the OnError event is fired, but the textbox doesn't receive a proper "RadInput_error_default" class. On fields which only have a "TextBoxSetting Validation-IsRequired="true"" validator set, this class is set to indicate a invalid input. This only seems to happen on submit, not on blur of the textfield.

This is the (simplified) code I am using:
<telerik:RadInputManager ID="inpManager" runat="server"
        <telerik:TextBoxSetting Validation-IsRequired="true" > 
            <TargetControls> 
                <telerik:TargetInput ControlID="txtName" /> 
            </TargetControls> 
        </telerik:TextBoxSetting> 
        <telerik:RegExpTextBoxSetting ErrorMessage="email" ValidationExpression="^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
            <ClientEvents OnError="onClientRegTxtError" OnKeyPress="onClientTextChanged" /> 
            <Validation IsRequired="true" ValidateOnEvent="All" /> 
            <TargetControls> 
                <telerik:TargetInput ControlID="txtEmail" /> 
                <telerik:TargetInput ControlID="txtReceiptEmail" /> 
            </TargetControls> 
        </telerik:RegExpTextBoxSetting> 
    </telerik:RadInputManager> 
So, to recap, what's happening is that the validater does seem to work, but doesn't show visual feedback by providing the proper CSS class. So when I press the Submit button, only the Input's which aren't using RegExp are highlighted as errorous.

Also, another question, when using the tooltips as suggested by the blog post, the error message is shown double. Both in the inputbox itself, and in the tooltip. I've currently "solved" this by saving the ErrorMessage property and setting it to "", It there a more elegant way to do this?

Thanks in advance for any suggestions.






Rosen
Telerik team
 answered on 25 Mar 2009
2 answers
138 views
Hi there,

I'm using the RadAjaxManager to handle AJAX in my site. When using standard .NET controls (linkbutton, literal etc.) the AJAX works and client events fire as expected. However, when I use my own controls (from a class library) the AJAX works, but the client events do not fire. Do you have any ideas why that might be?

Thanks,
Jon.

the code in my initiating control is:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Xach.WebControls;
using Telerik.Web.UI;

namespace Xach.CMS.WebControls
{
    public class LightboxLink : Control, INamingContainer
    {
        public string Control { get; set; }
        public string LightboxControllerID { get; set; }
        public string Text { get; set; }
        public string CssClass { get; set; }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            // wire up ajax
            List<Control> list = Page.Master.FindControlsByType(typeof(RadAjaxManager));
            RadAjaxManager manager = list[0] as RadAjaxManager;
            manager.AjaxSettings.AddAjaxSetting(this, Page.Master.FindControlRecursive(LightboxControllerID));
            
            /*manager.AjaxSettings[manager.AjaxSettings.Count - 1].EventName = "lightbox";*/
        }

        protected override void CreateChildControls()
        {
            LinkButton button = new LinkButton() { Text = Text, CssClass = CssClass };
            button.ID = "LbButton";
            button.Click += new EventHandler(button_Click);
            button.OnClientClick = "lightBox.start()";
            Controls.Add(button);
        }

        protected void button_Click(object sender, EventArgs e)
        {
            LightboxController controller = (LightboxController)Page.Master.FindControlRecursive(LightboxControllerID);
            controller.CreateLightboxControl(Control);
        }
    }
}

and in the updated control:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Xach.CMS.WebControls
{
    public class LightboxController : Control
    {
        protected override void CreateChildControls()
        {

            base.CreateChildControls();
        }

        public void CreateLightboxControl(string control)
        {
            //HttpContext.Current.Response.Write("loaded");
            Control ctrl = Page.LoadControl(control);
            Controls.Add(ctrl);
        }
    }
}





Jonathan
Top achievements
Rank 1
 answered on 25 Mar 2009
1 answer
70 views

Hi i am using the version  2008.3.1125.35

I need a good sample of busy icon while loading:
i have a grid and a pager tamplate in it.
whenever user tries to use the pagin related controls i want to show the busy icon till it loads.

the demo samples did not help me since i could not find the specified properties

Please give me some simple sample

thanks
-Krishna
Daniel
Telerik team
 answered on 25 Mar 2009
1 answer
119 views
Hi,

I have a scenario where I need to add different controls to datagrid rows at runtime and the datagrid has to be dynamic as well. Basically the page has only got placeholder and I need to create datagrid and then add rows according to the number in the database and add different controls like textbox, dropdownlists etc for each column in the row and add that row to the grid.
I have tried few different things but nothing seem to work. Can anyone please help me with this?

Thanks
Atiq
Daniel
Telerik team
 answered on 25 Mar 2009
2 answers
128 views
There seems to be a problem with the document ready state being ready before RadFormDecorator decorates the controls on the page. jQuery nor document.getElementById is not finding the controls in the document ready function. All attempts return null in IE but work fine in FireFox.

I disabled RadFormDecorator and the problem went away.

Any ideas?
chris_cf
Top achievements
Rank 2
 answered on 25 Mar 2009
4 answers
189 views
I'm looking for advice on the best way to implement a scheduler in a web app that will have multiple users creating/editing appointments.  I need to make sure that every user's schedule is updated periodically.

Performance is always an issue so I'd like to try the new web service feature of RadScheduler.  If I do, I don't know how to initiate a refresh from the client (If I were using normal postbacks I'd just do a RadAjaxTimer).  Any advice?

As for collisions (two users editing the same appointment) I think I can just deal with that in my Scheduler's data provider.
Tree
Top achievements
Rank 1
 answered on 25 Mar 2009
3 answers
195 views
Good morning!  I'm working on a project using the RadScheduler and I keep getting this problem... when I try to delete an appointment, it asks if I want to delete the series or just one occurence.  Whenever I post a new appointment, regardless if I set it to recurring or not, it sets itself as a recurring appointment.  Therefore, I cannot delete appointments by one event, I get an error saying:

Cannot parse parentAppointment recurrence rule during delete operation. Appointment ID is 28, parentAppointment ID is 28.

I'm trying to figure out what I'm doing wrong and why it's still setting appointments as recurring.  I used the examples in the live demos to help me with this, but it's still happening.  Also, the delete icon is on the lefthand side instead of the right, any ideas on why this happened as well?

The last thing that's happened is I cannot get my Ajax working, I've tried and it doesn't show the loading panel.  Any suggestions on that as well?

I've attached my project, but cannot send the database as it is too large.  Any help is appreciated, thanks!

Amanda
Amanda
Top achievements
Rank 1
 answered on 25 Mar 2009
1 answer
143 views

Hi telerik,
I'm testing File Explorer. (great tool!)
It does everything except "create new folder".
It gives me the follwing error : "Request for the permission of type 'System.Security.Permissions.FileIOPermission ...."

I'm running on a shared hosting medium trust (with extra more open assemblies)
IIS 7.0, ASP.NET 3.5 windows 2008 server.

What's wrong ?

I can send my web.config plus  medium trust config in  a support ticket  if needed!
Tervel
Telerik team
 answered on 25 Mar 2009
17 answers
290 views
Can someone explain to me how to get this structure:

toplevel
-sublevel 1 site 1
-sublevel 1 site 2
--sublevel 2 site 1

to display like this using the radtabstrip:

toplevel | sublevel 1 site 1 | sublevel 1 site 2
                                              sublevel 2 site 1

I followed the instructions for getting all this to work binding to the SiteMapDataSource.   It displays but it always shows up this way:

toplevel 
sublevel 1 site 1 | sublevel 1 site 2
                                              sublevel 2 site 1

Consequently I always have one and only one tab (toplevel)...not very useful.  I could care less about the toplevel showing up at all.  I want the subsites to be my top tabs.  I tried setting the ShowStartingNode="false" and even played with the offset on the datasource but it doesn't seem to change a thing.

Paul
Top achievements
Rank 1
 answered on 25 Mar 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?