Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
67 views
Hello,

We are using the ASP.NET AJAX Q2 2009 SP1 version of the Telerik controls. We have a horizontal RadMenu on our pages which shows the Level2 group dynamically, after detecting the screen boundary. We are currently migrating the skins, by rewriting the CSS classes.

The problem is that we had, for each item in the Level1 group, arrow images which were loaded dynamically, as the class changed dynamically from expandRight to expandLeft when the Level2 group was shown to the left side of the Level1 group.

Now, the rmExpandLeft class is never assigned to the Level1 elements, even if the Level2 group is shown on the left side. The class still remains rmExpandRight.

Is the expected behaviour and we should look up for a different approach?

Thank you.
Kamen Bundev
Telerik team
 answered on 08 Oct 2009
3 answers
85 views
HI , 
    I am using Rad Telrik 2008 Controls . I am using the Rad grid with Filter option i am binding teh Grdi data with my own Business layer functions. It is working fine for all filter options. but when i am filtering the column data with  "  '  "(Single Course), it is throing some type of error. it is working fine in Mozella But not in IE. Please sugeste me  i also check all related forums thread but not able to find the actual issue,

Thanks With Regard
Victor
Shinu
Top achievements
Rank 2
 answered on 08 Oct 2009
5 answers
141 views

hi ,,
I am using rad grid at webpart ,  using NestedItem at Grid but after Add Events Fixup Ajax working fine at all grid but i faced 2 issues please help me to find a soultion on them ...

1- the collapse buttom didn't work ( the grid post back and then the nested item didn't collapsed).
2- I can't expand more than 1 nested item at , if i trying to open nested item and it was one else opened the previous one collapsed and the new one expanded ,

here is rad grid code

      <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" Skin="WebBlue" 
                AllowFilteringByColumn="true" dir="rtl" GridLines="None" AllowPaging="True" AllowSorting="True" 
                PageSize="15">  
                <PagerStyle Mode="NumericPages" HorizontalAlign="Center" Font-Bold="true" VerticalAlign="Middle">  
                </PagerStyle> 
                <GroupingSettings CaseSensitive="false" /> 
                <ItemStyle HorizontalAlign="Right" /> 
                <FilterItemStyle HorizontalAlign="Right" /> 
                <CommandItemStyle HorizontalAlign="Left" /> 
                <AlternatingItemStyle HorizontalAlign="Right" /> 
                <HeaderStyle HorizontalAlign="Right" /> 
                <MasterTableView DataKeyNames="STUDENTNO" GridLines="None" DataSourceID="ObjectDataSource1" 
                    CommandItemDisplay="Top">  
                    <NoRecordsTemplate> 
                        
                    </NoRecordsTemplate> 
                    <ExpandCollapseColumn Visible="True">  
                    </ExpandCollapseColumn> 
                    <CommandItemTemplate> 
                        <asp:LinkButton ID="clearFilter" runat="server" Text="مسح ÙƒÙ„ Ø§Ù„بحث" ToolTip="الغاء Ø§Ù„بحث" 
                            OnClick="ClearFilter_Click" Font-Bold="true" Font-Size="14px"></asp:LinkButton> 
                    </CommandItemTemplate> 
                    <Columns> 
                    ... SOME COLUMNS ...  
                    </Columns> 
                    <NestedViewTemplate> 
                        <table> 
                        ... NESTED TEMPATE GOES HERE ...            
                        </table> 
                    </NestedViewTemplate> 
                </MasterTableView> 
                <ClientSettings> 
                    <Selecting AllowRowSelect="true" /> 
                </ClientSettings> 
            </telerik:RadGrid> 

there no important code behind to grid to be diaplay just some binding code ..

i used Event Fixup like the demp here is it
        #region Events & Fixers  
 
        protected override void OnInit(EventArgs e)  
        {  
            base.OnInit(e);  
            ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);  
            if (scriptManager == null)  
            {  
                scriptManager = new ScriptManager();  
                scriptManager.ID = "ScriptManager1";  
                this.Page.Form.Controls.AddAt(0, scriptManager);  
            }  
 
            RadAjaxManager ram = RadAjaxManager.GetCurrent(this.Page);  
            if (ram == null)  
            {  
                ram = new RadAjaxManager();  
                ram.ID = "RadAjaxManager1";  
                Page.Form.Controls.Add(ram);  
                Page.Items.Add(ram.GetType(), ram);  
            }  
 
            EnsureChildControls();  
        }  
 
        protected override void OnPreRender(EventArgs e)  
        {  
            base.OnPreRender(e);  
            RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);  
            if (manager != null)  
            {  
                manager.DefaultLoadingPanelID = this.EmployeesListUserControl.AjaxLoadingPanel.ID;  
 
                manager.AjaxSettings.AddAjaxSetting(this.EmployeesListUserControl.GridRootDep, this.EmployeesListUserControl.GridRootDep);  
            }  
        }  
 
        private void EnsureUpdatePanelFixups()  
        {  
            if (this.Page.Form != null)  
            {  
                string formOnSubmitAtt = this.Page.Form.Attributes["onsubmit"];  
                if (formOnSubmitAtt == "return _spFormOnSubmitWrapper();")  
                {  
                    this.Page.Form.Attributes["onsubmit"] = "_spFormOnSubmitWrapper();";  
                }  
            }  
 
            ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "UpdatePanelFixup", "_spOriginalFormAction = document.forms[0].action; _spSuppressFormOnSubmitWrapper=true;", true);  
        }  
 
        protected override void Render(HtmlTextWriter writer)  
        {  
            EnsureUpdatePanelFixups();  
            base.Render(writer);  
        }
        #endregion 


please help me ..
Yavor
Telerik team
 answered on 08 Oct 2009
1 answer
88 views
I'm using AJAX 2008 Q3. How can I add RadMenu to  RadWindow? I add RadMenu as below:

<telerik:RadWindowManager ID="RadWindowManager" runat="server" >
        <Windows>
            <telerik:RadWindow ID="RadWindow" runat="server" Title="test">
               <telerik:RadMenu ID="RadMenu" runat="server" Width="100%" dir="rtl">
                    <CollapseAnimation Duration="200" Type="OutQuint" />
                    <Items>
                        <telerik:RadMenuItem runat="server" Text="File" Font-Names="Tahoma">                           
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Setting">                          
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenu>                 
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

But RadMenu is not appaired. Why?
I want to add for all RadWindows, and whne I drag them, RadMenu be dragged with them.

Regards
Hadi Bahrbegi
Georgi Tunev
Telerik team
 answered on 08 Oct 2009
2 answers
118 views
I'm using AJAX 2008 Q3. How can I add RadMenu to  RadWindow? I add RadMenu as below:

<telerik:RadWindowManager ID="RadWindowManager" runat="server" >
        <Windows>
            <telerik:RadWindow ID="RadWindow" runat="server" Title="test">
               <telerik:RadMenu ID="RadMenu" runat="server" Width="100%" dir="rtl">
                    <CollapseAnimation Duration="200" Type="OutQuint" />
                    <Items>
                        <telerik:RadMenuItem runat="server" Text="File" Font-Names="Tahoma">                           
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Setting">                          
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenu>                 
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

But RadMenu is not appaired. Why?
I want to add for all RadWindows, and whne I drag them, RadMenu be dragged with them.

Regards
Hadi Bahrbegi
Georgi Tunev
Telerik team
 answered on 08 Oct 2009
1 answer
222 views
Hi,

I have attached RAD confirmation dialog box with my ASP.net button OnClientClick.  It woks fine but it doesn't fire server side click event of button whether I select Ok or Cancel.

I am using following code

<

 

asp:Button ID="btnDelete" runat ="server" Text ="Delete" cssclass="RadUploadSubmit" OnClientClick="return  OpenConfirm();"

 

 

Visible="False" />

function
OpenConfirm() {

  radconfirm(

'<h3 style=\'color: #333399;\'>Are you sure?</h3>', confirmCallBackFn, 330, 100, null, 'RadConfirm custom title');

 

 

 

return false;

 function confirmCallBackFn(arg) {

 

 

  radalert(

"<strnog>radconfirm</strong> returned the following result: <h3 style='color: #ff0000;'>" + arg + "</h3>", null, null, "Result");

 

 

 }

Please tell me where do I modify javascript so it fires server side click after User selects Ok on confirmation dialog.

Thank you.

 

 

 

 

 

 

 

 
Georgi Tunev
Telerik team
 answered on 08 Oct 2009
7 answers
199 views
Hi, I'm using Form Template in my radgrid. I have several combobox that when I change, I wanted to change other combobox datasource. For instance 1st combo is course, 2nd is Level and 3rd is teacher. If i'm going to change my course combo it will change data for my level and teacher combo.

Any inputs would be a great help.. Thanks in advance..

Heres some sample code:

<EditFormSettings EditFormType="Template">  
                    <FormTemplate> 
                         
                        <table id="tblAddEdit" cellspacing="1" cellpadding="1" width="100%" border="0" runat="server" > 
                            <tr> 
                                <td > 
                                </td> 
                                <td> 
                                </td> 
                            </tr> 
                             <tr> 
                                <td> 
                                    Course:</td> 
                                <td> 
                                    <asp:DropDownList ID="cboCourse" runat="server" Width="200px" 
                                        TabIndex="1" AppendDataBoundItems="true">  
                                    </asp:DropDownList> 
                                    <asp:RequiredFieldValidator ID="Requiredfieldvalidator00" Runat="server" Display="Dynamic" ControlToValidate="cboCourse" ErrorMessage="Select Course" /> 
                                    <asp:label ID="lblCourseID" runat="server" Visible="false" Text='<%# eval("CourseID") %>'></asp:label> 
                                    </td> 
                            </tr> 
                            <tr> 
                                <td colspan="2" style="height:6px" > 
                                </td> 
                            </tr> 
                            <tr> 
                                <td> 
                                    Level:</td> 
                                <td> 
                                    <asp:DropDownList ID="cboLevel" runat="server" Width="200px" 
                                        TabIndex="1" AppendDataBoundItems="true">  
                                    </asp:DropDownList> 
                                    <asp:RequiredFieldValidator ID="Requiredfieldvalidator0" Runat="server" Display="Dynamic" ControlToValidate="cboLevel" ErrorMessage="Select Level" /> 
                                    <asp:label ID="lblLevelId" runat="server" Visible="false" Text='<%# eval("SubjectCode") %>'></asp:label> 
                                    </td> 
                            </tr> 
                            <tr> 
                                <td colspan="2" style="height:6px" > 
                                </td> 
                            </tr> 
                             <tr> 
                                <td> 
                                    Teacher:</td> 
                                <td> 
                                    <asp:DropDownList ID="cboTeacher" runat="server" Width="200px" 
                                        TabIndex="2" AppendDataBoundItems="true">  
                                    </asp:DropDownList> 
                                    <asp:RequiredFieldValidator ID="Requiredfieldvalidator1" Runat="server" Display="Dynamic" ControlToValidate="cboTeacher" ErrorMessage="Select Teacher" /> 
                                    <asp:label ID="lblTeacherID" runat="server" Visible="false" Text='<%# eval("TeacherID") %>'></asp:label> 
                                    </td> 
                            </tr> 
                            <tr> 
                                <td colspan="2" style="height:6px" > 
                                </td> 
                            </tr> 
                         ....  
                         ....   
                         ....   
  </FormTemplate> 

RJ
RJ
Top achievements
Rank 1
 answered on 08 Oct 2009
0 answers
100 views
Hi,

I am creating RadTreeView in NewItemTemplate class of RadPanel. I have this code in an usercontrol.

I am using Radwindow to create new nodes for the Tree ( I am calling radwindow using a button inside usercontrol). On Closing for RadWindow I want to highlight/select the node which is recently added to the tree.

How do I achieve this?

For example, 
 
public void InstantiateIn(System.Web.UI.Control container) 
{ 
  RadTreeView RadTreeView1 = new RadTreeView(); 
  RadTreeView1.ID = "myTree" & myNumber 
  RadTreeView1.DataTextField = "Text"; 
  RadTreeView1.DataNavigateUrlField = "Url"; 
  RadTreeView1.DataFieldID = "ID"; 
  RadTreeView1.DataFieldParentID = "ParentID"; 
  RadTreeView1.DataSource = siteData; 
  RadTreeView1.DataBind(); 
} 


Thanks

Venkat Ganesh
Top achievements
Rank 1
 asked on 08 Oct 2009
0 answers
203 views
I am having an issue with a conversion.  I have a Telerik RadMenu loading via a Linq to Sql class.  I am then trying to invoke a onclick event on a menu item.  I am trying to pass the menu item field id as a parameter. See code below.

The problem is, the idProjects is an int and @linkId is a string.  I get an error that says @linkId cannot be implicitly converted from a string to an int. How can i make this work?



            string linkId = RadMenu1.DataFieldID.ToString();

            SundownDataContext dc = new SundownDataContext();
            var q = (from projects in dc.GetTable<ProjectImage>()
                     where projects.idProjects = @linkId
                     select new
                     {

                         Title = projects.projTitle,
                         ImageURL = projects.projImage
                     }).FirstOrDefault();
            Label1.Text = (q != null) ? q.Title : "Not Found";
            Image1.ImageUrl = q.ImageURL;
Chris
Top achievements
Rank 1
 asked on 08 Oct 2009
4 answers
141 views

After successfully installing RadControls_for_ASP.NET_AJAX_2009_2_826_trial.msi in Windows Vista Ultimate SP2 I took the exact same msi and tried to install it on Windows Server 2003 R2 SP2, but this time, after seeming to start fine, it puts up the following error pop-up:

The cabinet file 'media1.cab' required for this
installation is corrupt and cannot be used. This
could indicate a network error, an error reading
from the CD-ROM, or a problem with this
package.

Retry   Cancel

No amount of Retry attempts helps.

Please don't tell me to download a fresh copy.  This is the exact same MSI file that had zero problems installing on Vista SP2, so I am 100% confident that the msi is not corrupt.

Fred
Top achievements
Rank 1
 answered on 08 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?