Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 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
425 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
386 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
102 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
188 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
223 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
83 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
1 answer
91 views
I have an asp.net page with a RadGrid that displays insurance agents. The page opens a web user control for editing the insurance agent. That control also has a button that uses the RadWindowManager to show another page as a dialog that contains a RadGrid that displays insurance companies. When the insurance companies window is closed I need to add the selected insurance companies to the insurance agent being edited. The RadWindowManager seems to do something to interfere with the insurance company RadGrid's ClientID because the script returns just the ID entered at design time. I have also tried using the Page_PreRender event to add the script, but the ClientID is still wrong. I am willing to change how I am doing this if there is a better way.

The .aspx page RadWindowManager code:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    <Windows>
        <telerik:RadWindow ID="RadWindow1" runat="server"
            OnClientClose="onInsuranceCompanyListClose"
            ShowContentDuringLoad="false"
            Modal="true"
            Width="800px"
            Height="600px"
            Title="Add Insurance Companies"
            VisibleStatusbar="false"     
            Behaviors="Move, Close">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
... other page code
<button type="button" class="btn" onclick="addInsuranceCompany()">Add</button>
... still more code
 
<script type="text/javascript">
    function addInsuranceCompany() {
        radopen("InsuranceCustomerSelection.aspx", "RadWindow1");
    }
    function onInsuranceCompanyListClose(oWnd, args) {
        alert(args.length + ' args');
    }
</script>
Konstantin Dikov
Telerik team
 answered on 23 Sep 2013
1 answer
44 views
I use rad ajax controls, but I downloaded them probably a year ago.  I don't see the new RadTileList in there.  How do I go about refreshing the telerik folder so I can use the new RadTileList?
Marin Bratanov
Telerik team
 answered on 23 Sep 2013
3 answers
139 views
There is a radtilelist defined in the aspx. I created two radimagetile object from C# on a click event. Now I want to add them to tile group. I canot find any group reference such as ID in order to add the created tile to that particular group. What should I do to add tile to a particular group?

Please help. Thanks
JC
Marin Bratanov
Telerik team
 answered on 23 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?