Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
155 views
Hi there,

Is it possible to cast the items of RadListBox to a Generic list?

Currently, when i populate the RadListBox, i do so:

listBox.DataSource  = ItemList;//ItemList is a Generic list like so: List<ItmList>
listBox.DataBind();


This works fine, but how to i cast the items thats already inside the listbox back to the Generic List(List<ItmList>)?
Hope i can get some help soon.


Regards,
Dexter
Dimitar Terziev
Telerik team
 answered on 03 Jan 2012
0 answers
184 views
Hai,

I want to filter the grid column by some unicode characters like "复 制 品'. When I search with these characters, the grid cannot find these characters and returns "No records found".

How can make the grid filter search unicode characters?
Thanks in advance
Kavitha
Top achievements
Rank 1
 asked on 03 Jan 2012
1 answer
126 views
Returning again to the fount of wisdom,

I would like to switch between pageviews on a multipage via client click of a button using a drop down box as in demo example:
http://demos.telerik.com/aspnet-ajax/tabstrip/examples/clientside/clientsideapi/defaultcs.aspx

Problem:
1. the multipage is on a user control loaded in as template for radgrid based on various page events
2. I only want the tiny multipage on one small part of the newly loaded user control to change via ajax
3. I have an "exact copy" of code from the example, placed in a RadCodeBlock at beginning of web user ascx page, and when the button is pressed, it cannot find the function... so somehow it is not loaded "in time" or whatever.

I tried putting the function in the underlying aspx page, but it needs to reference controls on the dynamically loaded user web form, so that seems to be a no go.

Just some code snippets:
From the top of the ascx control:
<telerik:RadCodeBlock ID="RepeatCode"  runat="server">
    <script type="text/javascript">
        function SelectRepeatViewEdit() {
            var RepMultiPage = $find("<%= rmpRepeats.ClientID %>");
            var Index = parseInt($get("<%=RCBRepeat.ClientID %>").value);
            if (Index == "once") RepMultiPage.get_pageViews().getPageView(0).set_selected(true);
            if (Index == "daily") RepMultiPage.get_pageViews().getPageView(4).set_selected(true);
            if (Index == "weekly") RepMultiPage.get_pageViews().getPageView(3).set_selected(true);
            if (Index == "monthly") RepMultiPage.get_pageViews().getPageView(2).set_selected(true);
            if (Index == "yearly") RepMultiPage.get_pageViews().getPageView(1).set_selected(true);
            return false;
        }
    </script>
</telerik:RadCodeBlock>
The button is trivial:
<asp:Button ID="btnSwitch" Text="Switch" OnClientClick="SelectRepeatViewEdit" runat="server" />
And when I click the button I get a "function not found" error.

It clearly is a problem with the function load somehow...

I'd appreciate any help... I'm sure it's probably obvious.
Chris
Kate
Telerik team
 answered on 03 Jan 2012
1 answer
156 views
HI i am using AdvancedInsertTemplate in scheduler. i have added two text box in template and i want to add client side required field validation for these text boxes. please let me know how can i achive this.

currently i am using below code , but i am not able to get textbox control ID.

var txtName = $find('TxtName');


waiting for your reply...
Ivana
Telerik team
 answered on 03 Jan 2012
1 answer
108 views
Hi all,

I would like to ask some clarification in RadEditor regarding server side  function call from client side(Java Script).
Actually my scenarios,when i click my custom tool in toolbar,i have to check the server side session exists or not and pass the session value to function (in class file) & get the content. and then insert the result content from the function to the current cursor position.

For this scenario,I handle the above server side function to Link button click event and call the click event when i click the tool in java script,after call the click event i can retrieve the content but while replace from the content in java script occur problem.

I have assign the content to hidden field and try to retrieve in java script to replace. That time error occur like "A Potential Error in hidden field "content sample"" like this.

Also I try to use wen method and Ajax method,it not work in Editor page..

Kindly suggest any other method ,to call the server side function to get the content and replace the same in editor.

Thank you,
Rumen
Telerik team
 answered on 03 Jan 2012
3 answers
135 views

 

Please see attached image which is self explanatory.  How do we fix this IE8 status bar showing

(1 item remaining)..etc as in attached image. Your help is greatly appreciated.


I ran the demo from http://demos.telerik.com/aspnet-ajax/formdecorator/examples/default/defaultcs.aspx

THanks
Ramana
Bozhidar
Telerik team
 answered on 03 Jan 2012
5 answers
144 views
Hello,

I have used the Listbox with Drag and Drop functionality. 

My problem is that listbox contains the lots of data and when I click on "All to Right"  button it gives an error like:
"A script on this page is causing your web browser to run slowly.  If it continues to run, your computer might become unresponsive."

Also we dont want to use the Load on Demand facility.

I have attached the screen shot of the Error.

Thanks
Bozhidar
Telerik team
 answered on 03 Jan 2012
10 answers
289 views
I am having trouble getting the focus to shift between my tabs.  My radtabstrip is linked with a radmultipage.  There are three pageviews and therefore three tabs.  I am wanting for the user to be able to click on the Next button at the bottom of the pageview and if it passes the validation, be taken to the next tab and pageview.  I have tried using some of the code I have found in the forums but it leaves me on the first tab.  If I add "RadMultiPage1.SelectedIndex = 1" to my btnStep2_Click it will take me to the right pageview but the tab focus/selection stays on the first tab instead of going to the second tab.  How do I shift the focus to the corresponding tab of the pageview?  I am using VS 2008 with the 2009.2.826.35 build of the Telerik controls.   Here is my code snippet:

    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
        SelectedIndex="0" BorderStyle="None" Font-Size="Medium" Skin="WebBlue" Height="19px"
        Width="441px" CausesValidation="False" >
        <Tabs>
            <telerik:RadTab runat="server" PageViewID="rpvExamRegistration"
                Text="Exam Registration">
            </telerik:RadTab>
            <telerik:RadTab runat="server" PageViewID="rpvContactInformation" Text="Contact Information"
                Selected="True">
            </telerik:RadTab>
            <telerik:RadTab runat="server" PageViewID="rpvConfirmation" Text="Confirmation">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
 
<asp:Button ID="btnStep2" runat="server" Text="Next" ValidationGroup="ExamRegistration"
                            OnClick="btnStep2_Click" />
 
 
 
VB
    Protected Sub btnStep2_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim myTab As RadTab = DirectCast(RadTabStrip1.FindTabByText("Contact Information"), RadTab)
        myTab.Selected = True
        myTab.SelectParents()
 
    End Sub
Dimitar Terziev
Telerik team
 answered on 03 Jan 2012
1 answer
92 views
HI,
I want to reduce the Child tabstrip height compared to parent tabstrip
Please help me out
Thank in advance
Princy
Top achievements
Rank 2
 answered on 03 Jan 2012
1 answer
88 views
Hi we are using telerik 2010
problem is when we upload to our server some of the components r not working

do we need to add any registeration file or extra dlls..please advise

P.S..only the telerik grid seems to be workin but radmenu & radajaxpanel is not functioning on our webserver
Bozhidar
Telerik team
 answered on 03 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?