Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
180 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
91 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
501 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
127 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
104 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
77 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
88 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
124 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
1 answer
69 views
How to insert,edit and update Appointments in RadScheduler.
Iam using visual studio 2008.
sqlserver 2005.
Plamen
Telerik team
 answered on 12 Dec 2011
1 answer
106 views
Hello,
I used RadTelerik to show an grid in grid, here is my code in aspx file:

<telerik:RadGrid runat="server" ID="gridModulesList" BorderStyle="None" BackColor="Transparent"
            BorderColor="Transparent" AutoGenerateColumns="false" ShowHeader="false" Width="100%"
            AutoPostBack="true"  OnItemCommand="gridModulesList_ItemCommand">    
       
            <MasterTableView DataKeyNames="ID">
                <NestedViewTemplate>
                    <asp:Panel runat="server" ID="PnModuleDetail">
                    <telerik:RadGrid ID="gridModuleDetail" runat="server" AutoGenerateColumns="false" ShowHeader="false"  BorderWidth="0" Width="100%"
                            BackColor="White" OnItemDataBound="gridModuleDetail_ItemDataBound" OnItemCommand="gridModuleDetail_ItemCommand"
                            OnSelectedIndexChanged="gridModuleDetail_SelectedIndexChanged" OnNeedDataSource="gridModuleDetail_NeedDataSource"> 

                          <ClientSettings EnablePostBackOnRowClick="True" EnableRowHoverStyle="true" EnableAlternatingItems="true">
                            <Selecting AllowRowSelect="True" />
                        </ClientSettings>
                        <MasterTableView >
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                            </RowIndicatorColumn>
                            <Columns>
                            <telerik:GridBoundColumn DataField="ID" UniqueName="ID" Visible="false">
                                </telerik:GridBoundColumn>                                
                            <telerik:GridTemplateColumn UniqueName="Name">
                                <ItemTemplate>                                    
                                    <asp:Label runat="server" ID="lblName"></asp:Label>
                                </ItemTemplate>                                
                            </telerik:GridTemplateColumn>                                                                
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>
                    </asp:Panel>
                </NestedViewTemplate>
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                </RowIndicatorColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="ID" UniqueName="ID" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Name" UniqueName="Name" Visible="true">
                    </telerik:GridBoundColumn>                    
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>


The problem is:
When I click on a item=> this item is selected and it's bold (item1)
I continue click on the other item item2=> item2 is selected and it's bold and item1 is still bold
Expected:
When I click on item2=> item1 is not selected and it's not BOLD


Pavlina
Telerik team
 answered on 12 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?