Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
311 views

Hello,

I have a listview that has shows a startdate enddate starttime endtime. I want to have it only display startdate unless the enddate is not equal to the startdate. For example is the row had a startdate & enddata that were the same I would like for the enddate to be set as visable = false. I have tried the code below but cant seem to get it to work, any help would be great.

Thanks

<ItemTemplate>
           <li class="rlvI"> <asp:Label ID="SubjectLabel" runat="server" Text='<%# Eval("Subject") %>' />
                <asp:Label ID="DescriptionLabel" runat="server" Text='<%# Eval("Description") %>' />
                <asp:Label ID="StartDateLabel" runat="server" Text='<%# Eval("StartDate", "{0:MMMM dd}") %>' />
                <asp:Label ID="EndDateLabel" runat="server" Text='<%# Eval("EndDate", "{0:MMMM dd}") %>' />
                <asp:Label ID="StartTimeLabel" runat="server" Text='<%# Eval("StartTime","{0:t}") %>' />
                <asp:Label ID="EndTimeLabel" runat="server" Text='<%# Eval("EndTime","{0:t}") %>' />
           </li>
       </ItemTemplate>
    protected void RadListView1_ItemDataBound(object sender, Telerik.Web.UI.RadListViewItemEventArgs e)
    {
        if (e.Item is ListViewDataItem)
        {
            ListViewDataItem item = e.Item as ListViewDataItem;
            int lbstart = (int)DataBinder.Eval(item.DataItem, "StartDateLabel");
            int lbend = (int)DataBinder.Eval(item.DataItem, "EndDateLabel");


            if (lbstart == lbend)
            {
                item.Visible = false;
            }
        }

Curt
Top achievements
Rank 1
 answered on 11 Apr 2011
3 answers
106 views

We have Rad editor lite for MOSS 2007 and use the RadHtmlField control in the publishing layouts to render the RichHtml fields. When we place a picture or a link into the field in edit mode using absolute path within sharepoint sites and then publish the page. All urls are converted to relative url. Unfortunately deactivating/reactivating   StripAbsoluteAnchorPaths  and StripAbsoluteImagesPaths  only works in edit mode. Urls  became relative after the page is published.
We want to keep urls the same way we've entered them in edit mode. 

Please advise.
Thank you!!

Bill
Top achievements
Rank 1
 answered on 11 Apr 2011
2 answers
143 views

The icon of a creeping RadComboBox items shown out of square with Internet Explorer 9 in the last release that launched Telerik Q1 2011.

 IE Version: 9.0.8112.16421

 When I fix it?

http://demos.telerik.com/aspnet-ajax/combobox/examples/default/defaultcs.aspx

Attach Image!!!

Giancarlo
Top achievements
Rank 1
 answered on 11 Apr 2011
5 answers
89 views
I dont want to refresh the master page, without refreshing the masterpage, I want only the content page to be refreshed for postback
Sebastian
Telerik team
 answered on 11 Apr 2011
1 answer
142 views
Ive tried setting width and toolswidth and neither are being rendered right in ie8.  Below is our code.  How do you set the width of the radeditor in ie8?

                                    <telerik:RadEditor runat="server" ID="RadEditor_Description" EditModes="Design, Html" tol
                                        Width="780px" Height="250px" ContentAreaMode="Iframe" OnClientLoad="OnClientLoad" >
                                        <ImageManager ViewPaths="~/Images/UploadedFiles" UploadPaths="~/Images/UploadedFiles"
                                            DeletePaths="~/Images/UploadedFiles" />
                                        <Tools>
                                            <telerik:EditorToolGroup>
                                                <telerik:EditorTool Name="Undo" />
                                                <telerik:EditorTool Name="Redo" />
                                                <telerik:EditorTool Name="FindAndReplace" />
                                                <telerik:EditorToolStrip Name="Paste Options">
                                                    <telerik:EditorTool Name="Cut" />
                                                    <telerik:EditorTool Name="Copy" />
                                                    <telerik:EditorTool Name="Paste" />
                                                    <telerik:EditorTool Name="PasteFromWord" />
                                                    <telerik:EditorTool Name="PasteFromWordNoFontsNoSizes" />
                                                    <telerik:EditorTool Name="PastePlainText" />
                                                    <telerik:EditorTool Name="PasteAsHtml" />
                                                </telerik:EditorToolStrip>
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="LinkManager" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="ImageManager" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="FormatBlock" />
                                                <telerik:EditorTool Name="InsertUnorderedList" />
                                                <telerik:EditorTool Name="InsertOrderedList" />
                                                <telerik:EditorTool Name="InsertHorizontalRule" />
                                                
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="Bold" />
                                                <telerik:EditorTool Name="Italic" />
                                                <telerik:EditorTool Name="Underline" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="ForeColor" />
                                                <telerik:EditorTool Name="BackColor" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="FontName" />
                                                <telerik:EditorTool Name="RealFontSize" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="JustifyLeft" />
                                                <telerik:EditorTool Name="JustifyRight" />
                                                <telerik:EditorTool Name="JustifyCenter" />
                                                <telerik:EditorTool Name="JustifyFull" />
                                                <telerik:EditorTool Name="JustifyNone" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="InsertRowBelow" />
                                                <telerik:EditorTool Name="InsertRowAbove" />
                                                <telerik:EditorTool Name="InsertColumnRight" />
                                                <telerik:EditorTool Name="InsertColumnLeft" />
                                                <telerik:EditorTool Name="SetCellProperties" />
                                                <telerik:EditorSeparator />
                                                <telerik:EditorTool Name="AjaxSpellCheck" />
                                                <telerik:EditorTool Name="ToggleScreenMode" />
                                            </telerik:EditorToolGroup>
                                        </Tools>
                                        <Content>
                                        </Content>
                                        <CssFiles>
                                            <telerik:EditorCssFile Value="~/CSS/radeditor.css" />
                                        </CssFiles>
                                    </telerik:RadEditor>
Marin Bratanov
Telerik team
 answered on 11 Apr 2011
1 answer
125 views
I just purchased the Premium Developer Package.  I'm a web developer working with both Classic ASP and ASP.net clients.  I have a client whose site is Classic ASP.  I work on the site from a laptop to there to a development WIndows XP box,  The development box has VIsual Studio 2008 installed.  Remember the site is a Classic ASP site but I believe has .Net Framework 2.0 installed. 

I would like to test the Rad Menu Control on my development computer (laptop) but I do not want to screw up my system.  I understand I can download just the Rad Menu Control but don't seem to see where.  On the Telerik Web Page, I click on Products and then ASP.net AJAX.  But then how do I download just the Rad Menu Control.

If I download the control to my personal laptop which has Visual Studio 2008, will I be able to test the control?  It is also a Windows XP box.  If it doesn't work, will I be able to do a clean uninstall?

Thanks for your help.

Hopeful New User
Kate
Telerik team
 answered on 11 Apr 2011
5 answers
294 views
Hi,

I have two radGrids, one as the upper level one, one inside the nestedViewTemplate. When I expand the row of the upper level grid, the inner Grid will be shown up. The data shown in the inner table is dependent on some id.  I followed the Hierarchy with Templates demo on telerik.com. However, I got the following problem:
1. When I click one row, I got the right inner Grid. When I click another row, the first inner Grid will be updated with the seconde inner Grid information even though they should be different. When I click a third row, all three inner grid will have the third inner grid information.
2. When I collapse the third row, the two inner Grids of expanded rows will have the second row information. 

In all, the inner grid is always upated with the latest expanded row. I followed the demo, don't know why i have such strange problem. Can u help me out?

Here is the code: 
<Telerik:RadGrid Height ="612"  ID="Results"  HorizontalAlign="Center" runat="server" AllowPaging="True" AllowSorting="True" 
                    Font-Names="Tahoma"  OnItemCommand="Results_OnItemCommand"  GridLines="None" Skin="Office2007" 
                    OnPreRender="Results_PreRender" OnExcelExportCellFormatting="dgResults_ExcelExportCellFormatting" OnPageSizeChanged ="dgResults_pageSizeChanged">  
                                       
                    <MasterTableView Width ="98.5%" TableLayout="auto" GroupLoadMode ="client" DataKeyNames ="General ID"  >   
                    <Columns> 
</Columns> 
<NestedViewSettings DataSourceID="AccessDataSource1">  
                    <ParentTableRelation> 
                            <telerik:GridRelationFields DetailKeyField="GeneralID" MasterKeyField="General ID" /> 
                        </ParentTableRelation>                                                
                   </NestedViewSettings> 
                    
                   <NestedViewTemplate> 
                   <asp:Panel runat="server" ID="InnerContainer" CssClass ="viewWrap" Visible="false">   
<telerik:radGrid HorizontalAlign ="center" ID ="dgResutls_inner"  runat ="server" OnNeedDataSource ="inner_needDataSource" AllowPaging="True" AllowSorting="True" Skin="Office2007" >     
                     <AlternatingItemStyle  Font-Size="8pt" CssClass="MyAlternatingClass" wrap="False"/>  
                    <ItemStyle Font-Names="Tahoma" Font-Size="8pt" CssClass ="MyClass"  wrap="False" /> 
                    <HeaderStyle Font-Bold="True" Font-Size="9pt" ForeColor="Black" Wrap="False" HorizontalAlign="Center" /> 
                    <ClientSettings > 
                    <Selecting AllowRowSelect ="true" /> 
                     
                    </ClientSettings> 
                    <MasterTableView TableLayout ="auto" > 
                    </MasterTableView> 
                              
                    </telerik:radGrid> 
                     
                     
                 
                   </asp:Panel> 
                   </NestedViewTemplate> 
 </MasterTableView> 
</Telerik:RadGrid> 
 
 <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetResults" UpdateMethod="GetResults" InsertMethod="GetResults" TypeName="iFindSearchDB"></asp:ObjectDataSource> 
   <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="stage.mdb" SelectCommand="SELECT * FROM [stage] where GeneralID=@GeneralID">  
      <SelectParameters> 
                <asp:SessionParameter Name="GeneralID" SessionField="GeneralID" Type="Int32" /> 
            </SelectParameters> 
 
    </asp:AccessDataSource>  
 BTW, i will store the generalID in a session variable every time I click the row and use session parameter to databind the innerGrid.
Pavlina
Telerik team
 answered on 11 Apr 2011
1 answer
94 views
Hi Team..

I want to bind Rad timePicker Datasource from Client Side Using Java script.

Could please send me the code ASAP.

I searched all the Examples in Rad Timepicker what we have in internet. i couldn't get solution.

Regards,
Ashok Anbarasu.
Maria Ilieva
Telerik team
 answered on 11 Apr 2011
1 answer
84 views
I can't figure out how to use pager style mode "Slider" and have the ability to change page size.
Is this not possible?

I have attached an image describing my scenario.

/Richard
Pavlina
Telerik team
 answered on 11 Apr 2011
1 answer
142 views
hello,

   We were using telerik on a Web solution that was build targeting x86, all was fine, But When we choosed to target x64 at every part where there is a telerik component, the designer of Visual Studio 2010 doesn't let us seeing the component like it doesn't know the telerik component. All others component are drawing well (asp native or Ajax ones).

  At the top of my page the First line is say that :ASP.NET runtime error : could not find file or assembly 'my project' or one of its dependencies. 

   Is there something to do with your assembie ?

   The program still work fine in execution, but not in design mode when programming.

Thanks.
 
Sebastian
Telerik team
 answered on 11 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?