Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
116 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
87 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
209 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
108 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
106 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
181 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
107 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
3 answers
139 views
Hi, 

Is it possible to export een radgrid with detailtabels to a pdf.
The detailtables are shown (decollapsed) so the pdf that wil be generated is shown with the detailtabels.

greetings
Princy
Top achievements
Rank 2
 answered on 20 Oct 2011
6 answers
383 views
Dear friends,

I tried to use 2 column radcombobox with "product name" and "product code". data filed is ID column. For 50 or 100 records its fine. but 1000 entries and 2 column are killing people on local computer and also on server. I tried to implement  "google like" search, as you type web service would list available products, I succeeded but its also slow and some client computers says:

Windows Internet Explorer
---------------------------
Stop running this script?

A script on this page is causing Internet Explorer to run slowly.
If it continues to run, your computer might become
unresponsive.


I dont know why this message appears but, at the moment I dont care. All I need to solve is 2 column searchable fast combobox. I also tried to use regular radcombo with 1 column only (productname) its also slow, even while dropping down.

Can someone confirms this situation is normal ? What kind of searchable THING should I use. Is the radcombobox wrong component for this ?

best regards.

heres the code:

                <telerik:RadComboBox ID="cboProducts" runat="server"
                    DataSourceID="SqlDataSourceProducts" DataTextField="productname"
                    DataValueField="guidid" Filter="StartsWith">
                </telerik:RadComboBox>
    <asp:SqlDataSource ID="SqlDataSourceProducts" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringNET %>"
        ProviderName="<%$ ConnectionStrings:ConnectionStringNET.ProviderName %>" DataSourceMode="Dataset"
        EnableCaching="true"
        SelectCommand="SELECT guidid, [productname], productcode FROM productsORDER BY [productname]">
        <SelectParameters>
        </SelectParameters>
    </asp:SqlDataSource>

Dimitar Terziev
Telerik team
 answered on 20 Oct 2011
1 answer
102 views
Basically, I want the type of animation featured in "Buttons" or "ButtonsOver", and I want to be able to scroll one index at a time.  I have 4 items displayed out of 6 possible, with wrap frames on.  Due to the nature of the web page that I'm displaying, that's exactly what I want.

When I have 'buttons' turned on, and I click one of my image buttons, the control scrolls 6 indexes in that direction.  The result is something that looks very awkward and strange.  


<telerik:RadRotator ID="RadRotator1" CssClass="bottom-Rotator" runat="server" Width="600px"
    ItemWidth="150" WrapFrames="true" ScrollDuration="500" PauseOnMouseOver="true" RotatorType="Buttons"
    ControlButtons-LeftButtonID="img_left" ControlButtons-RightButtonID="img_right">
</telerik:RadRotator>

In conclusion, that's the animation style I want, and I do want to be able to click the control buttons to have to move the items in the control.  But I want to scroll 1 index at a time, and not 6.

Moving onto ButtonsOver....

This lets me scroll one index at a time.  Cool, exactly what I want.  However, this happens when I mouse-over the buttons, and not when I click.  This makes it awkward if I want to visit this site using a smartphone, because, in order to scroll, I have to touch the arrow buttons, then touch off the buttons in order to stop the scrolling.

Basically what I would like is the ability to scroll one index at a time as if using buttonsOver, but only when I click the arrow keys, as in using buttons.  But there seems to be no way to do that, unless I am wrong, and I hope I am.  It seems weird to me that there is no way to control how many indexes I bypass when I click an arrow image.

I could select "FromCode", and use javascript/vb.net functions to manually change the index, but wouldn't I lose my animation then?

In conclusion, I'm looking for a solution that scrolls the items one at a time, when I click one of the set images, and still gives me the scrolling animation that's like "ButtonsOver".  Is that possible with this control?
Slav
Telerik team
 answered on 20 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?