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

I have a radgrid on my form and several text and combo boxes.
My intent is to update related boxes as soon as radgrid selection changes.
For that I use RadAjaxManager and set relations like
<telerik:AjaxSetting AjaxControlID="rgMain">
           <UpdatedControls>
               <telerik:AjaxUpdatedControl ControlID="rtbEmployeeName" />
               <telerik:AjaxUpdatedControl ControlID="cbEmployeeActive" />
               <telerik:AjaxUpdatedControl ControlID="rtbHomePhone" />
               <telerik:AjaxUpdatedControl ControlID="rtbMobilePhone" />
               <telerik:AjaxUpdatedControl ControlID="rcbPosition" />
           </UpdatedControls>
       </telerik:AjaxSetting>

After that I process SelectedIndexChanged event in code-behind and get updated controls on client side - everything is OK.

However, when I use paging or sorting built-in into Radgrid it again triggers the update of the controls. I only would like them to update on selection change, not on page change or sort.
Is there a way to filter which events of a master control should trigger ajax updates of related controls ?

Thanks for your attention.
Maria Ilieva
Telerik team
 answered on 12 Dec 2011
0 answers
45 views
Hi all,
 I have a requirement, where when there are multiple rows of tabs the default layout is like this.

Row1
Row2
Row3

But the for the layout should be

Row3
Row2
Row1

is this possible. Just reversing the datasource doesn't work as the row1 should be filled first then the row2 and then the row3.

Is this possible.

Thanks
thomos
Top achievements
Rank 1
 asked on 12 Dec 2011
3 answers
123 views
Dear Sir/Madam,

Here I am adding Ribbonbar, RibbonbarTab, RibbonbarGroup and RibbonbarButtons from codebehind. Now in output window I am getting somehow mess up situation for buttons in groups. Please assist me how to resize Ribbonbar Groups? Also please find attached image for better understanding.

Here Is my Code to add Ribbonbar.

RibbonBarTab objRibbonBarTab = new RibbonBarTab();
RibbonBarGroup objRibbonBarGroup = new RibbonBarGroup();
RibbonBarButton objRibbonBarButton = new RibbonBarButton();
foreach (AM am in objList)
{
    //Prepare tabs and add it to ribbon bar
    objRibbonBarTab = new RibbonBarTab();
    objRibbonBarTab.Text = am.DisplayName;
    objRibbonBarTab.ID = am.Action_Menu_ID.ToString();
    objRibbonBarTab.ToolTip = am.Description;
    objRadRibbonBar.Tabs.Add(objRibbonBarTab); //Adding Tab to RibbonBar
 
    //Add Groups to above tab
    if (ChildList.Count > 0)
    {
        foreach (Child objSingle in ChildList)
        {
            objRibbonBarGroup = new RibbonBarGroup();
            objRibbonBarGroup.EnableLauncher = true;
            objRibbonBarGroup.Text = objSingle.DisplayName;
            objRibbonBarGroup.ID = objSingle.ActionMenuChildID.ToString();
            objRibbonBarGroup.ToolTip = objSingle.Description;
            objRibbonBarTab.Groups.Add(objRibbonBarGroup); //Adding Groups to Tabs
 
            //Add RaButtons to above Groups
            if (objRadGroupsList.Count > 0)
            {
                foreach(Child objMap in objRadGroupsList)
                {
                    objRibbonBarButton = new RibbonBarButton();
                    objRibbonBarButton.Text = objMap.DisplayName;
                    objRibbonBarButton.ID = objMap.ActionMenuChildID.ToString();
                    objRibbonBarButton.ToolTip = objMap.Description;
                    objRibbonBarButton.Value = objMap.Name;
                     
                    switch(objMap.Size)
                    {
                        case "Large":
                            objRibbonBarButton.Size = RibbonBarItemSize.Large;
                            break;
                        case "Medium":
                            objRibbonBarButton.Size = RibbonBarItemSize.Medium;
                            break;
                        case "Small":
                            objRibbonBarButton.Size = RibbonBarItemSize.Small;
                            break;
                    }
 
                    RibbonBarItem objRibbonBarItem = objRibbonBarButton;
                    objRibbonBarGroup.Items.Add(objRibbonBarItem);
                }
            }
        }
    }
}
Kate
Telerik team
 answered on 12 Dec 2011
3 answers
66 views
Hi Telerik,
Can we have multi selection of rows and deselection of single selected row without using CTRL Key press.
Please provide the solution ASAP as it is urgent.
Sebastian
Telerik team
 answered on 12 Dec 2011
5 answers
448 views
I have a tabstrip/multipage which functions through client-side code. In other words, the pageviews are loaded up front and clicking on tabs switches the multipage instantaneously. However, I have one particular pageview that holds data which can take a while to load. I would like to have it so when  a user clicks on the associated tab, a loading panel appears and the tab click essentially does an ajax update. If I set Autopostback to true and "Aajxify" the entire tabstrip, then I lose the quick switching between the other tabs. I only want this one tab to perform a postback, while the others function normally. Is there a way to do this? I thought I could set autopostback to true, handle the tabselecting event and, if the tab is not the one in question, set_cancel(true). THis works to allow only one tab to postback, but then obviously the normal functioning of the other tabs doesn't work. All of the client-side functions for selecting a tab seem to raise the TabSelecting even, so I get an endless loop. Basically, if the clicked tab is not the special "postback" tab, I just want to select the right pageview and focus the tab. I can select the pageview client-side, but there doesn't seem to be a way of focusing the tab in this example. Tab.select, Tab.se_selected and Tabstrip.set_selectedindex all seem to raise the selecting event.
Dimitar Terziev
Telerik team
 answered on 12 Dec 2011
2 answers
89 views
Hi All,

I've seen that you can centre a formtemplate in a RadGrid (http://www.telerik.com/help/aspnet-ajax/grid-center-popup-edit-form.html
) but how do you do it with a RadTreeList?  

There doesn't appear to be the OnPopUpShowing event....

Any pointers?

Best Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 12 Dec 2011
3 answers
84 views
I have been asked to style a number of charts by marking up the ASP.Net HTML.
I have been unable to find a complete reference to the chart control and I'm having to guess what the syntax is. This is both irritating and time consuming. Is there a comprehensive reference for the declarative approach?

Thanks
James Campbell
Top achievements
Rank 1
 answered on 12 Dec 2011
3 answers
66 views
Hi,
I am using rad multipage
<telerik:RadMultiPage ID="RadMultiPage" runat="server" 
                           RenderSelectedPageOnly="true" SelectedIndex="4">
                           <telerik:RadPageView ID="viewer1" runat="server">
                                  <uc1:abcID="abc" runat="server" />
                           </telerik:RadPageView>
                           <telerik:RadPageView ID="viewer2" runat="server">
                               <uc2:xyz ID="xyz" runat="server" />
                           </telerik:RadPageView>
                           <telerik:RadPageView ID="viewer3" runat="server">
                               <uc3:uvwID="uvw" runat="server" />
                           </telerik:RadPageView>
                            <telerik:RadPageView ID="viewer4" runat="server"
                           <uc4:defID="def" runat="server" />
                           </telerik:RadPageView>
                       </telerik:RadMultiPage>

as shown in the code above. I have a MOSS 2007 peopleeditor control in the usercontrol uc1 and usercontrol uc4. the people editor is working fine for the radpageview "viewer1" but it is throwing javascript error with "viewer4" saying "Object Expected". what i think about this is the problem is that somehow only one people editor can exist in this fashion. pls help me out with this.

Thanks in advance.
Keep Coding
Dimitar Terziev
Telerik team
 answered on 12 Dec 2011
1 answer
75 views
I have a problem with Rad Chart. My chart shows properly if i dont use following line of code
RadChart1.PlotArea.XAxis.DataLabelsColumn = "BranchName";

Consider if have used following data table
private DataTable GeneratedData()
        {
            DataTable dt = new DataTable();
            dt.Columns.Add("Asset");
            dt.Columns.Add("Liability");
            dt.Columns.Add("Income");
            dt.Columns.Add("BranchId");
            dt.Columns.Add("BranchName");
 
            DataRow dr = dt.NewRow();
            dr[0] = "052";
            dr[1] = "-25";
            dr[2] = "45";
            dr[3] = "1001";
            dr[4] = "Corporate";
            dt.Rows.Add(dr);
            dr = dt.NewRow();
 
            dr[0] = "161";
            dr[1] = "29";
            dr[2] = "35";
            dr[3] = "1002";
            dr[4] = "IDB";
            dt.Rows.Add(dr);
 
            return dt;
        }

And i used following code to generate rad chart
RadChart1.DataSource = GeneratedData();
            RadChart1.DataManager.ValuesYColumns = new string[3] { "Asset", "Liability", "Income" };
            RadChart1.DataManager.ValuesXColumn = "BranchId";
            RadChart1.PlotArea.XAxis.DataLabelsColumn = "BranchName";
            RadChart1.PlotArea.XAxis.AddRange(1001,1002,1);
            RadChart1.PlotArea.XAxis.AutoScale = false;
 
            RadChart1.DataBind();

If I dont define DatalabelsColumn then chart shows correctly. but I want to show Lable from BranchName column. How i can do this. Need your help.


Evgenia
Telerik team
 answered on 12 Dec 2011
7 answers
109 views
Hi,

In my application, I am building the radgrid with custom filtering dynamically. I am using GridDateTimeColumn for data datatype. The grid puts in RadDateInput control as the filter for date. In RadGrid_ItemCreated event I am trying to set Maxlength and taborder to this control and it does not work. I am able to set for GridNumericColumn(RadNumericTextBox control) and GridBoundColumn(TextBox control).Help needed.

Thanks,
Raji
Maria Ilieva
Telerik team
 answered on 12 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?