Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
149 views
I am trying to do a bulk insert items from one radlistbox to another radlistbox.  In my javascript code, I am getting all the checkeditems from the first listbox (which returns an array) and trying to insert them into the destination (provision) listbox.


 function SetProvisions(RadListBoxArray) {

         var RadListBoxCount = RadListBoxArray.length;
         var i = 0;
         var ProvisionListBox = $find("<%= uxProvisions.ClientID %>");

         for (i = 0; i < RadListBoxCount; i++) {
             var RadListBox = RadListBoxArray[i];
             var RadListBoxCheckedItems = RadListBox.get_checkedItems();
             ProvisionListBox.insertItems(RadListBoxCheckedItems);       <<<<Getting error here
         }

         ProvisionListBox.commitChanges();
     }

Getting error stating that "Array of RadListBox items or Telerik.Web.UI.RadListBoxItem collection should be passed."

Princy
Top achievements
Rank 2
 answered on 21 Mar 2011
3 answers
91 views

hi,

I am loading a custom ToolsFile.xml into Radeditor with

 

 

"LoadToolsFile(dom)"

 

 

.
after a postback some tools like colorselection do no longer work, because
of a javascript error in the Editor script.
now i found out that reloading the tools-xml file on every request fixes the issue, but in my
understanding, the editor should be recreated from viewstate after postback?

 


regards,
peter

 

Marin Bratanov
Telerik team
 answered on 21 Mar 2011
3 answers
123 views
For some reason now in .net framework 4.0 all disabled buttons seem to lose their theme and become the default grey color. Enabling them again brings its theme back

We just switched to a new iis server 7.5 using asp.net framework 4.0

The buttons through out the website have a nice style/theme. These are not set inside each button and there are no classes set specifically for buttons I dont think but I believe inherit the theme from somewhere, I believe the web.config in either:

 <appSettings>
    <add key="Telerik.Skin" value="WebBlue" />
...

OR it is set in our custom theme
<system.web>
    <pages styleSheetTheme="Seniors">

All the buttons did display a nice light blue gradient, and when disabled they go a few shades lighter blue

Any ideas why the disabled button would look different now? Or how to change it

Thanks
Georgi Tunev
Telerik team
 answered on 21 Mar 2011
1 answer
82 views
<telerik:RadUpload  ID="uplFrontMatterDoc" runat="server" Skin="Web20"
                            MaxFileInputsCount="5" AllowedFileExtensions=".doc"                           
                            OverwriteExistingFiles="false"
                            OnClientAdding="function(){alert('adding');}" 
                            OnClientAdded="myOnClientFileSelected" />



Have the above upload control and I see that the 2 client events (Adding and Added) get called when the page containing the control is first loaded, however they do not get called again when I click the Add button and a new file upload gets added

What am I doing wrong?
Shinu
Top achievements
Rank 2
 answered on 21 Mar 2011
1 answer
222 views
I'm having trouble with my ListView. I've got a linkButton in the ItemTemplate and I want to set the onClientClick to run a javascript function, but it needs a parameter value from the Item Data.

I was thinking that I need to use the ItemDataBound event to add the attribute since the OnClientClick doesn't properly convert my Eval command.

I'm just not quite sure how to do this.

Here is my code so far:
LinkButton btn = (LinkButton)e.Item.FindControl("PhotoLinkButton");
string id = DataBinder.Eval(e.Item, "PhotoID").ToString();
btn.Attributes.Add("onclick", string.Format("viewImage({0}); return false;", id));

I know the code in line 2 isn't right. I'm new to ASP.NET and AJAX, so I'm trying to pick it up as I go.

What I'm trying to accomplish is the pretty much the same as the demo for the ListView Gallery (with the images that when clicked open a new window with the full size image. My images are stored in the database, so there is no height and width info. My database only has the original filename, the contents (image datatype), plus some other metadata. There is no restriction on the image's size or dimensions, so it could be a very large image. I was hoping to set a default size on the window and have the image auto-resize to fit (similar to what Internet Explorer does when you open an image larger than the browser's window size).

Any guidance as to how I can do this would be appreciated. If there is a better way, I'm all for it. Oh yeah, my datasource is a SQLDataSource in DataSet Mode, not an ObjectDataSource. That's where I got stuck when trying to use the demo as a starting point.
Mira
Telerik team
 answered on 21 Mar 2011
4 answers
123 views
Hi,

I am using a RadToolBar inside a RadDock. I would like to know if is possible to fit perfectly the toolbar inside the raddock. The image in attachment shows the problem I want to solve.

Thanks in advance,

Michael Pinheiro
USI
Top achievements
Rank 1
 answered on 21 Mar 2011
2 answers
225 views
Hai Telerik Team,

How I have to restrict user to click button repeatedly....
If the user click on the  button  first, it should enabled= false and showing button text like "Submitting"
after submitted, the button changed to enabled=true...So how to do this in "RADAJAXMANAGER"
or write some other solution to solve this pls...

Ex Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default4.aspx.vb" Inherits="Default4" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="rad" %>
 
<head runat="server">
    <title></title>
  
 
</head>
<body>
    <form id="form1" runat="server">
    <div>
     
    <asp:ToolkitScriptManager ID="tool123"  runat ="server" ScriptMode ="Release" >
   </asp:ToolkitScriptManager>
         
        <rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
         <rad:AjaxSetting AjaxControlID="btn_sb">
                <UpdatedControls>
               <rad:AjaxUpdatedControl ControlID="lab_nm" LoadingPanelID ="RadAjaxLoadingPanel1" />
            </UpdatedControls>
            </rad:AjaxSetting>
             
            </AjaxSettings>
        
 
    </rad:RadAjaxManager>
     
    <rad:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="" Transparency="30">
                  <asp:Image ID="Image1" runat="server" ImageUrl="~/IMAGES/AjaxLoadingImg/LoadingProgressBar.gif"
            AlternateText="loading" />
    </rad:RadAjaxLoadingPanel>
     
         
        <asp:Button ID="btn_sb" runat="server" Text="Telerik" /><br />
        <asp:Label ID="lab_nm" runat="server"
           ></asp:Label>
        
    </div>
    </form>
</body>
</html>
---------------------------------------------------------------------------------------------------------------
 
 Protected Sub btn_sb_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_sb.Click
        lab_nm.Text = "You Clicked Telerik Button"
    End Sub

I need---On click btn_sb it should enable false and showing some text like "submitting" after page submitted it returns to enabled true..




salvio
Top achievements
Rank 1
 answered on 21 Mar 2011
9 answers
138 views
Hi,

I am editing data on a form that is loaded into a RadWindow.
When I minimize the window and then later restore it, the form reloads itself and I lose all data that I have been editing.
How do I prevent this from happening?

Thanks,
Jaap
Georgi Tunev
Telerik team
 answered on 21 Mar 2011
3 answers
126 views
I have a page banner that is fixed on the top of the web site regardless the scroll position of the window:

<div id="DivHeader" runat="server" style="position: fixed; top: 0; left: 0; right: 0;">
        <asp:Table ...>
          content
        </asp:Table>
</div>

Then I have a long  table with the RadDockZones and RadDocs controls underneath the header. Then when I scroll down, the table along with the table content hides behind the banner as it suppose to do. As you can see half of the word "sdfsdf" hides behind the banner along with the table borders. However the telerik ajax controls don't. And it's even not only the RadDock that does not hide behind the banner. It's also the telerik menu control as you can see in the upper left corner of the screen shot.
Any idea how i can get around this problem?
This only has to work in IE7.

Thank you very much.
Pero
Telerik team
 answered on 21 Mar 2011
3 answers
90 views
Hello,

I have raddocs with different height and size. Is it possible to resize the raddoczone according to the size of raddoc ?

Also is it possible to store them database to maintain its state till next login ?

Prayag

Pero
Telerik team
 answered on 21 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?