Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
308 views
Hi, I seem to have bumped into a bug with the RibbonBar control.

When setting SelectedTabIndex having 4 tabs, all of the visible, everything works normally:

Ribbon.SelectedTabIndex = Ribbon.Tabs.IndexOf(Ribbon 
.FindTabByValue("tabName"))

However when I make some tabs invisible (index 0 and 2 in my case), it completely messes up the SelectedTabIndex property:

It defaults to 1, and it seems to be impossible to change. Even having this value it is still inconsistent, showing either tab 1 or 3:

When tab 1 is selected client side and a postback occurs, the selected tab will switch to 3 on the client side after postback and vice versa. 

To make the tabs invisible I use: 
Menu.Tabs(0).Visible = False
Menu.Tabs(2).Visible  = False

Am I making a mistake or is this really a bug? 

Update:  It works when programatically removing the tabs before setting the index. This works for me as I won't need the invisible tabs on the client side or serverside anyway, but I imagine this might cause problems for other people.
Bozhidar
Telerik team
 answered on 24 Sep 2013
2 answers
226 views
Hi, I have a radiobutton outside a Radgrid and checkbox inside a radgrid what I want here is when I click on radiobutton all rows inside radgrid should be selected(checkbox should be selected). Please share if you have sample code.

Thanks,
Naresh
Princy
Top achievements
Rank 2
 answered on 24 Sep 2013
1 answer
334 views
Hi,
  I am using a clientside binding radgrid. i have assigned a button column with a command name. when i click on it i get the following error.
'JavaScript runtime error: Unable to get property 'fireCommand' of undefined or null reference'






Thanks





Angel Petrov
Telerik team
 answered on 24 Sep 2013
1 answer
137 views
Good morning,
In my aspx page I have created in RadGrid(gridboundcolumn) RadToolTip control:
<telerik:GridTemplateColumn HeaderText="Job" DataField="JOB" UniqueName="JOB" ReadOnly="True" SortExpression="JOB" >
                                    <HeaderStyle Width="50px" />
                                    <ItemStyle Width="50px" />
                                    <ItemTemplate>
                                     <asp:Label ID="lblJob" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.JOB") %>'> </asp:Label>
                                     <telerik:RadToolTip ID="RadToolTip1" runat="server" TargetControlID="lblJob"
                                      Width="180px" RelativeTo="Element" Position="MiddleRight" RenderInPageRoot="true" Animation="Fade"  HideEvent="LeaveToolTip">
                                      JOB EFFECTIVE DATE:
                                      <%# DataBinder.Eval(Container, "DataItem.EFF_DATE")%>
                                      JOB END DATE:
                                      <%# DataBinder.Eval(Container, "DataItem.END_DATE")%>
                                      JOB RESTRICTION FLAG:
                                      <%# DataBinder.Eval(Container, "DataItem.DATE_RESTRICT")%>

                                     </telerik:RadToolTip>
                                    </ItemTemplate>
                                    </telerik:GridTemplateColumn>
When I run application and point mouse over Job Field the date showing like this:06/08/2009 12:00:00am.How to remove time?I need just a date.

Thank you very much for your help
Princy
Top achievements
Rank 2
 answered on 24 Sep 2013
6 answers
499 views
how could i programatically disable a checkboxlist option wich is in radgrid edit forms mode
Princy
Top achievements
Rank 2
 answered on 24 Sep 2013
5 answers
439 views
Hi

I want to get the count of child nodes of a particular node in js? I searched the docs but didnt get anything useful. So please help me.

Thanks for your replies
Karl
Shinu
Top achievements
Rank 2
 answered on 24 Sep 2013
2 answers
139 views
Hi, i'm not sure if this is just me or if it is a bug.

I have few RadGrids in the page and they works and looks fine till i add a RadDatePicker in to the page. once I add this, grid looses it's styles completely . everything else works the same. no matter what i did, couln't figure out whats wrong. but once i add the RadDatePicker after the RadGrid, it works fine. not sure what's causing this. i'm pretty new to Telerik and please help me out here.

thanks
Keith
Top achievements
Rank 1
 answered on 23 Sep 2013
2 answers
232 views
I'm trying to exploit the Telerik example here:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx
The goal is to add editing capabilities to this demo, so in the NestedViewTemplate inside the page views of RadMultiPage I have FormView to present the data.
I'm facing several little problems even if overall it seems to work well.... I will try to ask help for one issue at a time.
The first issue I'm facing is that all the details inside the NestedViewTemplate are loaded on page load even if HierarchyLoadMode is set to "Conditional" or "ServerOnDemand".
I would like, for obvious reasons, to fire the FormView bindings inside the NestedViewTemplate only when the parent row is expanded.

Any hint? (structure follows)

           <NestedViewTemplate>
<asp:Panel runat="server" ID="RadGrid1DetailContainer" CssClass="RadGridDetailContainer" Visible="false">
<telerik:RadTabStrip runat="server" ID="RadGrid1DetailTabStrip" MultiPageID="RadGrid1DetailMultipage1" SelectedIndex="0" CssClass="RadGridTabStrip">
<Tabs>
<telerik:RadTab runat="server" Text="Dati utente" PageViewID="RadGrid1DetailRadPageView1">
</telerik:RadTab>
<telerik:RadTab runat="server" Text="Anagrafica" PageViewID="RadGrid1DetailRadPageView2">
</telerik:RadTab>
  <telerik:RadTab runat="server" Text="Altri dati" PageViewID="RadGrid1DetailRadPageView3">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage runat="server" ID="RadGrid1DetailMultipage1" SelectedIndex="0" RenderSelectedPageOnly="false">
<telerik:RadPageView runat="server" ID="RadGrid1DetailRadPageView1" CssClass="RadGridPageView">
<asp:Label ID="Label1" Font-Bold="true" Font-Italic="true" Text='<%#: Item.UserId%>' runat="server" Visible="false"></asp:Label>
 
<asp:FormView id="RadGrid1DetailForm1" CssClass="RadGridDetailForm" DataSourceID="UserDetailsObjectDataSource" runat="server" ItemType="Eva.Entities.EvaUser">
<ItemTemplate>
<div class="form-horizontal form-stripe" style="padding: 12px;">
<eva:FormUserDetail ID="FormUserDetail1" Item="<%# Item %>" View="Detail2" runat="server" />
 
<div class="form-actions">
<button class="btn btn-primary">
<i class="icon icon-pencil"></i> Modifica
</button>
 
</div>
 
</div>
 
</ItemTemplate>
  
</asp:FormView>
 
<asp:ObjectDataSource ID="UserDetailsObjectDataSource" runat="server" TypeName="Eva.Bll.Core.EvaUsersManager" DataObjectTypeName="Eva.Entities.EvaUser" SelectMethod="GetById">
<SelectParameters>
<asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="Int32" Name="UserId"></asp:ControlParameter>
</SelectParameters>
</asp:ObjectDataSource>
</telerik:RadPageView>
 
<telerik:RadPageView runat="server" ID="RadGrid1DetailRadPageView2">
 
</telerik:RadPageView>
<telerik:RadPageView runat="server" ID="RadGrid1DetailRadPageView3">
 
</telerik:RadPageView>
</telerik:RadMultiPage>
</asp:Panel>
           </NestedViewTemplate>

Inside RadGrid ItemCommand event I check the ExpandCollapse command to set the panel visibility accordingly

' Loads inner forms details when row is expanded
If e.CommandName = RadGrid.ExpandCollapseCommandName AndAlso TypeOf e.Item Is GridDataItem Then
    DirectCast(e.Item, GridDataItem).ChildItem.FindControl("RadGrid1DetailContainer").Visible = Not e.Item.Expanded
End If

To trigger editing (expand the row and set the FormView in edit mode, always inside RadGrid ItemCommand, I linked a button to this and it works as expected

e.Item.Expanded = True
DirectCast(e.Item, GridDataItem).ChildItem.FindControl("RadGrid1DetailContainer").Visible = True
Dim gridFormView As FormView = DirectCast(e.Item, GridDataItem).ChildItem.FindControl("RadGrid1DetailContainer").FindControl("RadGrid1DetailMultipage1").FindControl("RadGrid1DetailRadPageView1").FindControl("RadGrid1DetailForm1")
gridFormView.ChangeMode(FormViewMode.Edit)

It seems that setting the panel RadGrid1DetailContainer to Visible="false" didn't help to delay the binding
Massimiliano
Top achievements
Rank 1
 answered on 23 Sep 2013
2 answers
284 views
I think I posted this in the wrong area the first time. Here it is again...

I've seen some similar threads to this question, but nothing that specifically addresses it. I have a RadComboBox that I add various items, too. I needed the ability to select "ALL" items, so I put in the EnableCheckAllItemsCheckBox property. Now, all of the items that I add have a white background, bu tthe all items checked button has a dark gray background that the UI people don't like. I've figured out some other issues with this, but the one thing remaining is...
 
How do I change the background color of the All items checked option? I've tried style sheets and some other things, but nothing works so far. This is what I use, along with some javacript to click it on default
 
<telerik:RadComboBox  runat="server" ID="cboInvoiceStatus" CheckBoxes="True" AutoPostBack="true" HighlightTemplatedItems="true" IncludeSelectOption="false" EnableCheckAllItemsCheckBox="true" AllowCustomText="true" Localization-CheckAllString="Select All" >
 </telerik:RadComboBox >
 
Any help is appreciated. Thanks,
Tyler
Top achievements
Rank 1
 answered on 23 Sep 2013
2 answers
131 views
Hi,
I have one rad grid with 20 more columns, While i frozen the first column, the last three columns will be in out of the grid..
and i used to show full columns in grid with "UseStaticHeaders=True",
Bcoz am getting different count of columns from DB when i show a grid.

This is my grid:
------------------
<telerik:RadGrid ID="RadGrid2" runat="server" Skin="Vista" AutoGenerateColumns="false"
                    OnItemDataBound="RadGrid2_ItemDataBound" OnNeedDataSource="RadGrid2_NeedDataSource"
                    OnPreRender="RadGrid2_PreRender" Height="400px" Width="970px">
                    <MasterTableView HeaderStyle-CssClass="disable-highlight" Width="98%" HeaderStyle-HorizontalAlign="Center"
                        HeaderStyle-Wrap="true" HeaderStyle-Height="52px">
                        <Columns>
                        </Columns>
                    </MasterTableView>
                    <ClientSettings Scrolling-AllowScroll="true" Resizing-AllowColumnResize="true" Scrolling-SaveScrollPosition="true"
                        Scrolling-FrozenColumnsCount="2" Scrolling-UseStaticHeaders="true">
                        <Selecting AllowRowSelect="true" />
                        <ClientEvents OnColumnDblClick="myDblClickEvent" OnRowDblClick="RowSelectCheck" />
                        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
                    </ClientSettings>
                </telerik:RadGrid>
 
In Code Behind:
------------------
I have added the dynamic columns from DB like following.
 
GridBoundColumn objBound = new GridBoundColumn();
            RadGrid2.MasterTableView.Columns.Add(objBound);
            objBound.HeaderText = dtnewd.Columns[1].ToString().ToString();
            objBound.UniqueName = dtnewd.Columns[1].ToString().ToString();
            objBound.DataType = typeof(string);
            objBound.DataField = dtnewd.Columns[1].ToString();
            objBound.HeaderStyle.Width = 100;
            objBound.HeaderStyle.Wrap = true;
            objBound.ItemStyle.Width = 100;
            objBound.ItemStyle.Wrap = true;

Can you anyone help me..?


Thanks
-Rk.Moorthy
Venelin
Telerik team
 answered on 23 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?