Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
178 views
Hello,
when I click on button "Nuovo"  and then on checkbox "Attiva", nothing happens.
 
URL
http://www.swistel.ch/gestione/liste_distribuzione.aspx
 
DLL VERSION
14.1.2010
 
I would like to use my dll version without making an upgrade.
 
Thank you
 
Alberto
AB
Top achievements
Rank 1
 answered on 20 Oct 2011
0 answers
143 views
Hi,

I have a problem with the tabindex property.
Attached a screen-shot of a sample form which is based on the demo http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx (But with addional field that are not related to the RadGrid control and colored in Green).
I need set the tabindex attribute for all fields in the user control (Colored in Red), so clicking on the tab key in the keyboard won't move the cursor out of the user control.

By the way all fields out of the RadGrid control has thier own tabindex property, so I want to create a two tabindex groups:
1) Fields out of the RadGrid control.
2) Fields inside the user control edit form.

It is possible?
Please, I need your help in order to solve the a bove problem.

Regards,
Bader
Bader
Top achievements
Rank 1
 asked on 20 Oct 2011
3 answers
105 views
I have 2 RadDateTimePicker controls on the page and after user changes time on the first control I want to set another control to display time shown in 1st control (and plus 30 minutes). I've tried using <ClientEvents OnDateSelected="changeEndDate" /> and this javascript but it does not seem to work. Both controls are located inside of an AdvancedInsertTemplate of RadScheduler. 

function changeEndDate(sender, eventArgs) {
      var endDate = $telerik.$("[id$='EndInput']");
      var newDate = eventArgs.get_newValue();
      endDate.set_selectedDate(newDate);
}

What am I doing wrong? Thanks
Maria Ilieva
Telerik team
 answered on 20 Oct 2011
3 answers
106 views
Howdy,

I seem to be stuck on something that is prolly simple. I am using the RadRotator and want to show a series of images in a specific order. For example: an image that says Step 1, followed by an image that says Step 2, followed by an image that says Step 3. If I am on Step 1's image and I hit the previous button, Step 3's image should appear. I currently override the control buttons and use my own Left and Right button. If I use XML and load all the images from XML everything works fine.

However, I now need to be able to add dozens of steps and I don't want the user to wait for all the images to download. So I want to switch to the Load on Demand pattern. I have a web service method that creates the RadRotatorItemData on the fly and is working but not in the way I want. I am using the itemIndex parameter to determine what the next image that needs to be built is. However, since I don't know which direction the user is going (Left or Right) I build the wrong image if the user goes Left.

What I don't see in the documentation is how to specify how many items get created on demand and what the scope of those new items should be (ie. Steps 1 - 5 or Steps 15 - 20), The demo is loading 5 items at a time, but I don't see how that is configured. Also, if I have loaded the first 5, and I need the 2nd 5 items, how do I tell the web service method what batch of 5 I need, since I can only pass in the itemIndex parameter. And if my current index is 0, and the user clicks on the Left button, I need to load the last five steps (which may be Steps 18 - 23).

In summation, I want this slideshow demo merged with the Load on Demand functionality.

Hope this makes sense...

Thanks,
Seth
Slav
Telerik team
 answered on 20 Oct 2011
1 answer
78 views
In the online demos, there is a nice demonstration of how to use client-side binding with page methods.  However, I would like to take this a step further and use a WCF service to provide the data and call the service methods via jQuery.  Is there an article or a post that shows me how to accomplish this or how to move from the aforementioned sample code to code that I am trying to put together?
Iana Tsolova
Telerik team
 answered on 20 Oct 2011
1 answer
197 views
Hi,

I'm very new to Telerik controls. Today I tried to get RadAjaxPanel to postback part of the page but cound't get it to do so. Can anyone please indicate what I am doing wrong. For the sake of simplicity I've added some text to the top of the page so as to make the page refresh more visible.

Below is the code using controls that come with .NET

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <script runat="server">
        protected void ReadOnly_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ReadOnly.SelectedItem.Value == "Yes")
                Details.ReadOnly = false;
            else
            {
                Details.Text = "";
                Details.ReadOnly = true;
            }
        }
    </script>
    <title></title>
</head>
<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
    <form id="Form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        Read Only:
        <asp:DropDownList ID="ReadOnly" runat="server" OnSelectedIndexChanged="ReadOnly_SelectedIndexChanged"
            AutoPostBack="True">
            <asp:ListItem Selected="True">No</asp:ListItem>
            <asp:ListItem>Yes</asp:ListItem>
        </asp:DropDownList>
        <br />
        <br />
        Details:
        <asp:TextBox ID="Details" runat="server" Columns="60" Rows="5" TextMode="MultiLine"
            ReadOnly="True"></asp:TextBox>
</ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>

What follows is the Telerik equivalent that isn't working.

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                RadAjaxPanel2.EnableAJAX = false;
            }
        }
 
        protected void ReadOnly_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ReadOnly.SelectedItem.Value == "Yes")
                Details.ReadOnly = false;
            else
            {
                Details.Text = "";
                Details.ReadOnly = true;
            }
        }
    </script>
    <title></title>
</head>
<body>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
    <form id="Form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
        Read Only:
        <asp:DropDownList ID="ReadOnly" runat="server" OnSelectedIndexChanged="ReadOnly_SelectedIndexChanged"
            AutoPostBack="True">
            <asp:ListItem Selected="True">No</asp:ListItem>
            <asp:ListItem>Yes</asp:ListItem>
        </asp:DropDownList>
        <br />
        <br />
        Details:
        <asp:TextBox ID="Details" runat="server" Columns="60" Rows="5" TextMode="MultiLine"
            ReadOnly="True"></asp:TextBox>
    </telerik:RadAjaxPanel>
    </form>
</body>
</html>
Iana Tsolova
Telerik team
 answered on 20 Oct 2011
1 answer
99 views
i wanted to make the captcha in hebrew so at least spammers that dont read hebrew cannot write in.
so i've added 

RadCaptcha1.CaptchaImage.CharSet = "1234567890אבגדהוזחטיכלמנסעפצקרשת";
RadCaptcha1.CaptchaImage.TextChars = Telerik.Web.UI.CaptchaPossibleChars.CustomCharSet;

and i've got nice hebrew captcha
but when i tried to enter what i've seem in the image it told me that i written the wrong code.
it showed "אבגדה"
so i've entered "א" "ב" "ג" ד" ה"
and then i figured that i needed to enter the letters from the left to right 
"ה" ד" "ג" "ב" "א"
and it passed just fine.
can you add an option to parse the text in reverse that way you get full RTL support.

i can do reverse in javascript on post back but i rather not using a patch and have a good product.
Slav
Telerik team
 answered on 20 Oct 2011
1 answer
97 views
Let's say i want a table with two header rows like in the attached image. It looks to me like the header association will not take into account the second header row. Is this the case? If so, is there a workaround other than manual insertion of ids into the cells for the second header row.

Thank you,
Matt
Rumen
Telerik team
 answered on 20 Oct 2011
3 answers
168 views
protected void Page_Load(object sender, EventArgs e)
 {
      aRadGrid.HeaderContextMenu.ItemCreated += new RadMenuEventHandler(HeaderContextMenu_ItemCreated);
}
protected void Page_Init()
{
       ...
       aRadGrid.MasterTableView.EnableHeaderContextMenu = true;
       ...
}
protected void HeaderContextMenu_ItemCreated(object sender, Telerik.Web.UI.RadMenuEventArgs e)
        {
            RadMenuItem anItem = e.Item;
            switch (anItem.Value)
            {
                case "SortAsc":
                case "SortDesc":
                case "SortNone":
                case "GroupBy":
                case "UnGroupBy":
        case "FilterMenuParent":
        case "FilterMenuContainer":
                    anItem.Visible = false;
                    break;
                case "ColumnsContainer":
                    anItem.Text = "Afficher/Cacher la colonne";
                    break;
                default:
                    if (anItem.Level == 2 && ((RadMenuItem)anItem.Parent).Value == "ColumnsContainer")
                    {
                        //string ww = anItem.Attributes["ColumnName"];
                        if (anItem.Value.EndsWith(XarcT.UN_S)
                            || anItem.Value.EndsWith(XarcT.UN_IUA)
                            || anItem.Value.EndsWith(XarcT.UN_M)
                            || anItem.Value.EndsWith(XarcT.UN_L)
                            || anItem.Value.EndsWith(XarcT.UN_Limg))
                        {
                            anItem.Visible = false;
                        };
                    };
                    break;
            }
        }
Hello,
I am using the show/hide columns option of HeaderContextMenu (RadGrid).
It works very well.
But at each time the rebind() is executed, the radgrid doesn't remember the columns which are hided or shown.
Is there a way after each postback, to remember the hided/shown columns.

I've tried to handle the event:

aRadGrid.HeaderContextMenu.ItemCreated +=

new RadMenuEventHandler(HeaderContextMenu_ItemCreated);
but it doesn't fire.

 

I manage the radgrid programmatically...
aRadGrid.MasterTableView.EnableHeaderContextMenu =

true;

Regards

 

Bernard
Top achievements
Rank 1
 answered on 20 Oct 2011
1 answer
103 views
Hi there ; I have a page (C#.Net 2010 web application) which contains a RadRibbonBar  and some other Telerik Rad Controls. I encountered that the page get refresh at first load (for second time) and also on each post back loads two times per each postback, so all my session variables refresh and miss their previous values. Then I removed the RadRibbonBar, and the second postBack (loop) removed successfully. Now I'm looking for a way to have a RibbonBar, but prevent it from refresh the page for the second trip. Any suggestions would be appreciated.
Kate
Telerik team
 answered on 20 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?