Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
127 views
I have 2 buttons on my radtoolbar.
For the onclick event for button1 the autopostback must be set to true and for the onclicke event of button2 the autopostback should be false.
Can you tell me how this can be done.

Thanks.
bits
Top achievements
Rank 1
 answered on 24 Jun 2008
3 answers
88 views
hi, all:
       After we use the dock function in the Q1 version, we found one problem, the detail is when we add one Usercontrol in the dock dynamically, the position of contentmenu in the uc is changed, that result in my using the UC normally, while in the old version (Q3), it's ok. In the uc, we used chartFx component, so can you help me to solver it.

       my adding dock way is:
        RadDock dockableObject = new RadDock();
        dockableObject.UniqueName = System.Guid.NewGuid().ToString();
        dockableObject.ID =ItemNo;
        dockableObject.Text = ItemName;
        dockableObject.Title =ItemName;
        dockableObject.DockMode = DockMode.Docked;
        dockableObject.ContentTemplate = Page.LoadTemplate(Url);

         this.leftDockingZone.Controls.Add(dockableObject);
       

Best Regards.
MawFang
Petio Petkov
Telerik team
 answered on 24 Jun 2008
4 answers
339 views
Hello All,

I've been banging my head against the wall with this for days and I'm totally at a loss.

The site I'm working on has master/content pages, splitters w/ panes, tabs, etc. and I simply cannot get vertical scrollbars to work properly regardless of whether I use the browsers scrollbars or the rad control scrolling options.  It APPEARS that the scrollbars are being created relative to the screen resolution rather than the content of the page.  The smaller the resolution you have, the less data you can see.  You simply cannot scroll to the bottom of the content.

I've tried the overflow tags in every html/body/form/div tag and all splitters are set to heights of 100%.  Nothing I change has any effect.

This behavior is in both IE and FireFox.

Can anyone shead any light on this?

Thanks in advance,
Rick
Svetlina Anati
Telerik team
 answered on 24 Jun 2008
2 answers
139 views

I have a number of inputs that are added programmatically to a form, specifically on an Ajax panel.

When adding validators they worked 'til the page made an AjaxRequest, then they'd stop workiing.

So, I figured that the validators were getting screwed by the Ajax call. Reasonable, no?

So, I added a regular ASP Panel to the page - outside of the AjaxPanel -  and added the validators to that.

The thing is they don't seem to be working correctly. The problem is that the client-side code doesn't include the value of ControlToValidate ...
var input_002Erng1_002Efirst_rangevalidator = document.all ? document.all["input_002Erng1_002Efirst_rangevalidator"] : document.getElementById("input_002Erng1_002Efirst_rangevalidator"); 
input_002Erng1_002Efirst_rangevalidator.controltovalidate = ""; 
input_002Erng1_002Efirst_rangevalidator.errormessage = "The value for field \'A date range From\' is required and must be between 1 Jan 0001 and 31 Dec 9999"; 
input_002Erng1_002Efirst_rangevalidator.display = "None"; 
input_002Erng1_002Efirst_rangevalidator.evaluationfunction = "DateInputRangeValidatorEvaluateIsValid"; 
 

Now, everything I do in the code-behind suggests that ControlToValidate is set. In fact, if I add a new attribute to the validator and set it to ControlToValidate, the value is there.

I know that this isn't a RadInput problem directly, but I was wondering if anyone else had encountered a similar problem using RadInput, validators and AjaxPanels.

--
Stuart

Dan
Top achievements
Rank 1
 answered on 24 Jun 2008
1 answer
148 views
Hi,

I have a main page with a RadAjaxPanel. This panel has a button which opens a radwindow with a form. In the form I have the following:

<form id="personalform" runat="server"> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
    </telerik:RadScriptManager> 
 
    <div> 
        PERSONAL INFORMATION<br /> 
         
         
        <script type="text/javascript"> 
             
                 function OnClientCancel(editor) 
                 { 
                    Cancel_Clicked(); 
                    return false; 
                 } 
                 
                function GetRadWindow() 
                { 
                    return window.radWindow || window.frameElement.radWindow; 
                }    
                     
                function OnClientCancel() 
                { 
                    var oWindow = GetRadWindow();            
                    oWindow.close(); 
                     
                    return false; 
                }    
                 
                function OnClientSubmit() 
                { 
                    var oWindow = GetRadWindow();            
                    oWindow.close(); 
                }        
            </script> 
     <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
            <asp:Label ID="Label1" runat="server" Text="Firstname:"/> 
        <telerik:RadTextBox ID="UserFirstName" runat="server" Skin="Web20"> 
        </telerik:RadTextBox><br /> 
        <asp:Label ID="Label2" runat="server" Text="Middlename:"/><telerik:RadTextBox ID="UserMiddleName" runat="server"> 
        </telerik:RadTextBox><br />  
       <asp:Label ID="Label3" runat="server" Text="Lastname:"/> <telerik:RadTextBox   ID="UserLastName" runat="server"> 
        </telerik:RadTextBox><br />  
       <asp:Label ID="Label4" runat="server" Text="Date of birth:"/> 
        <telerik:RadDatePicker 
           ID="UserDob" runat="server" MinDate="1900-01-01"> 
            <DateInput InvalidStyleDuration="100" runat="server"></DateInput> 
       </telerik:RadDatePicker> 
        <br /> 
        <asp:Label ID="Label5" runat="server" Text="Photo:"/><asp:Image ID="UserImage" runat="server" /> 
        <br /> 
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> 
  
        <br />   
 </telerik:RadAjaxPanel>
<asp:Literal ID="InjectScript" runat="server"></asp:Literal> 
         <asp:Button ID="SaveBtn" runat="server" Text="Save" onclick="SaveBtn_Click" /> 
        <asp:Button ID="CancelBtn" runat="server" Text="Cancel" OnClientClick="OnClientCancel()"/> 
             
         
    </div> 
    </form>

In the codebehind I have a handler for the SaveBtnClick. My problem is the following. ALL Rad controls are not retrieved only the standard TextBox's value. This is not good since I have a datecontrol and textboxes based on Rad. Why aren't the values updated when I click Save? So if I get the value of UserFirstName.Text it returns the same as upon the window open, however if I get the value of TextBox1.Text which is a standard asp textbox then the value is returned correctly. I also tried without the radajaxpanel but to no avail

What am I doing wrong?

Please help,
Miklos
Georgi Tunev
Telerik team
 answered on 24 Jun 2008
2 answers
122 views
RadEditor "Find and Replace" is not working in MOSS, but same its working in asp.net......

We added

<

add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.1.515.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>"

in web.config file..


Error : 

Web.config registration missing!
The Telerik dialogs require a HttpHandler registration in the web.config file. please, use the control's Smart Tag to add the handler automatically, or see the help for more information: Controls > Editor > Dialogs

Raju
Top achievements
Rank 1
 answered on 24 Jun 2008
1 answer
118 views
Hi,

I have a page that contains multiple sections. During the page load each section will need to call a web service to get the HTML and display it in each section. The number of sections are dynamic. When each section is waiting for the web service call to finish I want to show the loading image. All the sections will be loading independantly and show the laoding image seperately until each section is loaded.

I followed the link http://www.telerik.com/help/aspnet-ajax/ajxshowloadingpaneloninitialpageload.html which works fine and tried to extend it by adding the panels dynamically to the UpdatedControls and make a service call on AJAXRequest. But it shows the loading image for all sections but showing the loading image for all the sections until all the sections are loaded. How do I make it load the sections parellaly with RadAjax? Can you point me to the right direction?

Thanks
sub 
Missing User
 answered on 24 Jun 2008
2 answers
134 views
I am using RadUpload for uploading zip files . Are there any major changes in code if i wsh to use Radupload Prometheus instead of RadUpload. I'll be thankful if you have any sample code.
Thanx in advance
rajni
Top achievements
Rank 1
 answered on 24 Jun 2008
1 answer
232 views
Hello,
I have 3 standard toolbar buttons Insert/Edit/Delete and I would like to enable them  accordingly, I am using this code but after I insert or edit something, the values of the conditions are good, yet the buttons are still wrongly enabled... What am I doing wrong?

thanks

<asp:LinkButton ID="btnEditSelected" Style="vertical-align: bottom" runat="server"
CommandName="EditSelected" CausesValidation="false"
Enabled='<%# (theGrid.MasterTableView.IsItemInserted && theGrid.EditIndexes.Count == 0 && theGrid.SelectedIndexes.Count > 0 %>'>

<img style="border:0px;vertical-align:middle;" alt="edit..." src="../../Include/Images/grid/Edit.gif" originalAttribute="src" originalPath="../../Include/Images/grid/Edit.gif" /></asp:LinkButton>

<asp:LinkButton ID="btnInitInsert" runat="server"

CommandName="InitInsert" CausesValidation="false"

Enabled='<%# !theGrid.MasterTableView.IsItemInserted && theGrid.EditIndexes.Count == 0 %>'>

<img style="border:0px;vertical-align:middle;" alt="ins..." src="../../Include/Images/grid/Insert.gif" originalAttribute="src" originalPath="../../Include/Images/grid/Insert.gif" /></asp:LinkButton>

<asp:LinkButton ID="btnCancel" runat="server"

CommandName="Delete" CausesValidation="false"

Enabled='<%# !theGrid.MasterTableView.IsItemInserted && theGrid.EditIndexes.Count == 0 && theGrid.SelectedIndexes.Count > 0 %>'>

<img style="border:0px;vertical-align:middle;" alt="del..." src="../../Include/Images/grid/Delete.gif" originalAttribute="src" originalPath="../../Include/Images/grid/Delete.gif" /></asp:LinkButton>


Princy
Top achievements
Rank 2
 answered on 24 Jun 2008
1 answer
126 views
Hi All,
am just start building a website and I will use radmenu ,so I will try to get it  but I get error on Menugroup name space.

could any one help me ?????????


my code:

protected void Page_Load(object sender, EventArgs e)

{

GenerateMenu();

}

private void GenerateMenu()

{

string _ConnectionString = "PROVIDER=MSDAORA;USER ID=HSAJAD;PASSWORD=SAJJAD;DATA SOURCE=HCARE.WORLD";

OleDbConnection OldDbCon = new OleDbConnection(_ConnectionString);

OldDbCon.Open();

OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT id,parentId,e_text,E_URL FROM INTERNET_MENU ", OldDbCon);

DataSet ds = new DataSet();

adapter.Fill(ds);

ds.Relations.Add(

"NodeRelation", ds.Tables[0].Columns["id"], ds.Tables[0].Columns["parentId"], false);

MenuGroup MainGroup =

new MenuGroup();

MainGroup.Flow = PresentationDirection.Horizontal;

RadMenu1.RootGroup = MainGroup;

foreach (DataRow dbRow in ds.Tables[0].Rows)

{

if (dbRow.IsNull("parentId"))

{

Telerik.WebControls.

RadMenuItem item = new Telerik.WebControls.RadMenuItem();

item.Text = dbRow[

"Text"].ToString();

MainGroup.AddItem(item);

RecursivelyPopulate(dbRow, item);

}

}

OldDbCon.Close();

}

 

 

private void RecursivelyPopulate(DataRow dbRow,Telerik.WebControls.RadMenuItem item)

{

MenuGroup CurrentGroup =

new MenuGroup();

foreach (DataRow childRow in dbRow.GetChildRows("NodeRelation"))

{

Telerik.WebControls.

RadMenuItem childItem = new Telerik.WebControls.RadMenuItem();

childItem.Text = childRow[

"Text"].ToString();

CurrentGroup.AddItem(childItem);

RecursivelyPopulate(childRow, childItem);

}

if (CurrentGroup.Items.Count > 0)

{

item.ChildGroup = CurrentGroup;

}

}






please help me as soon as possible
thanks in advance
ghadeer
Paul
Telerik team
 answered on 24 Jun 2008
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?