Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
76 views
Hi,
I am facing an issue in the rendering of telerik editor in IE 9. The editor's image-pop-up and item-template-insert-pop-up don't render properly.
I am using version 2010.1.415.35 of telerik. Please advice me on this.

Thanks,
Abhinandan Bansal

Abhinandan Bansal
Top achievements
Rank 1
 answered on 26 Apr 2011
1 answer
85 views
Hi Team
i want to Use / symbol as By Default in Rad Date Picker
I want to Enter only Date Month Year / Should Come Automatically How i'll implement this.

Please give Me Solution as soon as possible.

Regards,
Ashok Anbarasu.
Shinu
Top achievements
Rank 2
 answered on 26 Apr 2011
2 answers
197 views
Hello All,

I have an application that utilizes a RadMultiPage, with both RadButtons and a RadTabStrip used to navigate between RadPageViews. I am currently experiencing an issue with a RadGrid on the third RadPageView (Index 2). I have specified the NeedDataSource event for the RadGrid, however, when I navigate to the RadPageView containing this RadGrid, the event is not fired. The peculiar thing is that the NeedDataSource event fires only once I click a RadButton, or RadTab, to move to any of the other pageviews.

Does anybody have any ideas as to why the event would not fire when that RadPageView is initially selected and instead is firing when I try to navigate away from that RadPageView??

I don't set the DataSource of the RadGrid anywhere else in the code behind; I only set it in the NeedDataSource event. When putting a breakpoint on the NeedDataSource event, the breakpoint is only hit when I click on any tab, or button, that takes me away from "rpvDetails".

Please let me know if you need me to list more code.

Thanks!
Casey

.ASPX page:
<div style="width: 60%; margin-top: 10px; float: left" align="center">
    <div>
        <telerik:RadTabStrip runat="server" ID="rtsLeaveRequestNav" SelectedIndex="0" OnTabClick="rtsLeaveRequestNav_TabClick">
            <Tabs>
                <telerik:RadTab Text="Start & End Dates" TabIndex="0" PostBack="true" Selected="true"
                    Width="150px" PageViewID="rpv1">
                </telerik:RadTab>
                <telerik:RadTab Text="FMLA Info" TabIndex="1" PostBack="true" Width="150px" PageViewID="rpv2">
                </telerik:RadTab>
                <telerik:RadTab Text="Details" TabIndex="2" PostBack="true" Width="150px" PageViewID="rpvDetails">
                </telerik:RadTab>
                <telerik:RadTab Text="Review & Save" TabIndex="3" PostBack="true" Width="150px" PageViewID="rpvReview">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
    </div>
</div>
<br />
<div style="width: 90%; margin-top: 5px; clear: both">
    <div style="float: left; width: 70%; margin-top: 5px; clear: both">
        <telerik:RadMultiPage ID="rmpLeaveRequest" runat="server" SelectedIndex="0" RenderSelectedPageOnly="true">
            <telerik:RadPageView ID="rpv1" runat="server" TabIndex="0">
            </telerik:RadPageView>
            <telerik:RadPageView ID="rpv2" runat="server" TabIndex="1">
            </telerik:RadPageView>
            <telerik:RadPageView ID="rpvDetails" runat="server" TabIndex="2">
                <div style="width: 95%; margin-top: 5px; clear: both; background-color: #E0E0E0;
                    margin-bottom: 50px" align="center">
                    <br />
                    <table style="border-style: outset; width: 80%; background-color: #E0E0E0; padding-bottom: 10px">
                        <tr>
                            <td style="margin-right: 10px" colspan="2" align="center">
                                <telerik:RadGrid ID="rgLeaveDetails" runat="server" AutoGenerateColumns="false" Width="100%"
                                    ClientSettings-Scrolling-AllowScroll="true" ClientSettings-Scrolling-UseStaticHeaders="true"
                                    ClientSettings-Scrolling-ScrollHeight="90px" OnNeedDataSource="rgLeaveDetails_NeedDataSource">
                                    <MasterTableView TableLayout="Fixed" runat="server" ShowHeadersWhenNoRecords="true"
                                        EnableNoRecordsTemplate="false">
                                        <Columns>
                                            <telerik:GridBoundColumn UniqueName="ACTIVITY_DATE" DataField="ACTIVITY_DATE" HeaderText="Date">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn UniqueName="WORK_CODE" DataField="WORK_CODE" HeaderText="Leave Type">
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn UniqueName="HOURS" DataField="HOURS" HeaderText="Duration">
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>
                            </td>
                            <td align="center">
                                <table>
                                    <tr>
                                        <td>
                                            <telerik:RadButton ID="rbChooseType" runat="server" Text="Choose Leave Type" Width="115px" ButtonType="StandardButton">
                                            </telerik:RadButton>
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <telerik:RadButton ID="rbEdit" runat="server" Text="Edit" Width="115px" ButtonType="StandardButton">
                                            </telerik:RadButton>
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <telerik:RadButton ID="rbDelete" runat="server" Text="Delete" Width="115px" ButtonType="StandardButton">
                                            </telerik:RadButton>
                                            <br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <telerik:RadButton ID="rbDeleteAll" runat="server" Text="Delete All" Width="115px" ButtonType="StandardButton">
                                            </telerik:RadButton>
                                            <br />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <table style="border-style: outset; width: 80%; background-color: #E0E0E0; padding-bottom: 10px">
                        <tr>
                            <td colspan="3" align="left">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="right">
                            </td>
                            <td align="left">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="right">
                            </td>
                            <td align="left">
                            </td>
                        </tr>
                    </table>
                    <br />
                    <br />
                    <br />
                </div>
            </telerik:RadPageView>
            <telerik:RadPageView ID="rpvReview" runat="server" TabIndex="3">
            </telerik:RadPageView>
        </telerik:RadMultiPage>


Code Behind Events:
protected void rtsLeaveRequestNav_TabClick(object sender, RadTabStripEventArgs e)
{
    rmpLeaveRequest.SelectedIndex = rtsLeaveRequestNav.SelectedIndex;
}
 
protected void rgLeaveDetails_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    rgLeaveDetails.DataSource = String.Empty;
}
Iana Tsolova
Telerik team
 answered on 26 Apr 2011
1 answer
133 views
I would like to use a GridCalculatedColumn in conjunction with GridTemplateColumns.  However, all of the samples on the Telerik Demo site utilize GridBoundColumns in conjunction with GridCalculatedColumns.  I do not believe that I will be able to use a GridBoundColumn since I am binding to a collection of objects like so:

List<SelectedCourse> lstSelectedCourses = this.SelectedCourses;
 
            //Bind the GridView schedule
            gvSchedule.DataSource = lstSelectedCourses;
            gvSchedule.DataBind();

When I display the columns in the GridView, I use the following syntax:

<columns>
                        <telerik:gridtemplatecolumn>
                            <itemtemplate>
                                <asp:hiddenfield id="hfCourseID" value='<%#Eval("CourseID") %>' runat="server" />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>
                        <telerik:gridtemplatecolumn headertext="Category">
                            <itemtemplate>
                                <asp:label id="lblCategory" runat="server" text='<%#Eval("Category") %>' />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>
                        <telerik:gridtemplatecolumn headertext="Subject">
                            <itemtemplate>
                                <asp:label id="lblSubject" runat="server" text='<%#Eval("Subject") %>' />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>
                        <telerik:gridtemplatecolumn headertext="Days">
                            <itemtemplate>
                                <asp:label id="lblDays" runat="server" text='<%#Eval("Days") %>' />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>
                        <telerik:gridtemplatecolumn headertext="Start Time">
                            <itemtemplate>
                                <asp:label id="lblStartTime" runat="server" text='<%#Eval("StartTime") %>' />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>
                        <telerik:gridtemplatecolumn headertext="End Time">
                            <itemtemplate>
                                <asp:label id="lblEndTime" runat="server" text='<%#Eval("EndTime") %>' />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>
                        <telerik:gridtemplatecolumn headertext="Term">
                            <itemtemplate>
                                <asp:label id="lblTerm" runat="server" text='<%#Eval("Term") %>' />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>
                        <telerik:gridtemplatecolumn headertext="Length (Weeks)">
                            <itemtemplate>
                                <asp:label id="lblCourseLength" runat="server" text='<%#Eval("CourseLength") %>' />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>
                        <telerik:gridtemplatecolumn headertext="Location">
                            <itemtemplate>
                                <asp:label id="lblLocation" runat="server" text='<%#Eval("Location") %>' />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>
                        <telerik:gridtemplatecolumn headertext="Cost">
                            <itemtemplate>
                                <asp:label id="lblCourseCost" runat="server" text='<%#Eval("Cost", "{0:C}") %>' />
                            </itemtemplate>
                        </telerik:gridtemplatecolumn>                       
                    </columns>

Is there a way to utilize the GridCalculatedColumn to sum up the value in the GridTemplateColumn for Cost?

Thanks. 
Iana Tsolova
Telerik team
 answered on 26 Apr 2011
3 answers
41 views
Hi I have a webpart in sharepoint 2007 that load a web usercontrol. this Web Usercontrol has RadAjaxmanager with the client-event OnRequestStart. when the user clicks the RadTabSplit the first time the OnrequestStart is trigged but in the second time does not trigged again.  Actually the RadAjaxLodingPanel is not work neither. I test the same code outside Sharepoint in a web application solution and it is working correctly. What is the problem? should I do something diferent in sharepoint 2007? 

I am working wih this problem for three days and I have read many blog and forums but nobody has the answer. Please help me!!
HANK 

Maria Ilieva
Telerik team
 answered on 26 Apr 2011
3 answers
156 views
Hi

I'm currently developing Tablet based Web Application using Telerik Controls.  I'm trying to prevent users from clicking/touching the cancel button when trying Inserting an item into the Grid. Is there a way to move the Cancel Image Button to the right hand side of the items when in Insert Mode?

I'm assuming I could build custom Cancel/Insert Buttons using RadButtonColumns on either side, but was hoping that there's maybe a simpler/cleaner way of achieving this.

Best Regards,

Landon
Mira
Telerik team
 answered on 26 Apr 2011
8 answers
164 views
I am using the RadMenu downloaded version Q1 2011 and cannot get the menu to load. The page errors out with the following error:

Parser Error Message: Could not load file or assembly 'Telerik.Web.UI, Version=2011.1.315.1040, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified.

I used the following website to assist me setting up the RadMenu http://www.sharemuch.com/2011/01/20/branding-sharepoint-2010-integrating-telerik-controls-in-sharepoint-site/

I modified the Telerik control to Version to the current build number as listed on this URL http://www.telerik.com/community/code-library/silverlight/general/submit-example.aspx

On the error page it states I am using Version Information: Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420 However, when checking the Server Manager I have installed the Role Service of .Net Framework 3.5.1

Could this be the problem? Do I need to upgrade my .Net Framework Version to more recent copy?

As stated in this post http://www.telerik.com/community/forums/aspnet-ajax/editor/config-telerik-web-ui-dll-version-2010-1-415-35-in-sharepoint-2010.aspx I followed the instructions and placed code into the web.config for <SafeControl> and the <handlers> tags as directed.

What am I doing wrong?

I see in the threaded discussion that I may be using the wrong build:

----------
Posted on Jun 30, 2010 (permalink)

Hi Akhilaa,

I can see that you incorporated ASP.NET AJAX 3.5 in your MOSS site and you are trying to use the 2010.1.415.20 version of Telerik.Web.UI, which is built against .NET 2.0 framework. What you need to do is either use the 2010.1.415.35 version of Telerik.Web.UI, which is built against .NET 3.5 framework
---------

Is changing the build version the only issue? Are there any other roadblocks I should expect to find?

Please help!!!

Thank you.
Kalina
Telerik team
 answered on 26 Apr 2011
1 answer
74 views
We are creating a dynamic menu using a Mega Nav, a multi-column display and static menus. One of the columns holds a drop-down menu which we want to display the LISTS and LIBRARIES for the current SharePoint 2010 site. We want to have no other menu items displayed in this particular drop-down. Can someone help us how to get the results we are looking for? We have been attempting to use the SITEMAPDATASOURCE, however, this returns the entire site map structure which is way too much information. Based on which site a user is at this drop-down menu will only display the lists and libraries for that site only. It would dynamically look at the parent and children in the hierarchy and display the current location. While we believe this is the correct path we don't know the proper steps to code it correctly.

Regards,
Alex Dove
Kalina
Telerik team
 answered on 26 Apr 2011
3 answers
165 views
We are creating a dynamically created menu based off the DataSourceID="SiteMapDataSource" property. While this gives us the functionality we wanted it also displays LISTS, LIBRARIES and DISCUSSIONS on the top-level navigation. We only want to have top-level sites on the home page and sibling sub-sites displayed on the landing page of sub-sites. We have removed the Quick Launch to gain valuable real estate and therefore need to display the LISTS, LIBRARIES and DISCUSSIONS underneath a site menu item as a drop-down item. How do we accomplish this? I have attached a screenshot of our current site menu which displays ALL of the sitemap content in the top-level navigation. How do we move the LISTS, LIBRARIES and DISCUSSIONS into a separate drop-down? I have also attached 2 more images called "telerik_menu_dropdown.gif" which displays the menu items we need removed from the root menu and then image attachment named "telerik_menu_subsite_sample.gif" which is a child site of the parent. This top-level navigation is displayed correctly with all of the menu items listed vertically inside a drop-down menu.

Thanks
Alex
Kalina
Telerik team
 answered on 26 Apr 2011
3 answers
75 views
Hi all,

My snip code as below : 
public class Marble : ISkin
    {
        public Marble()
        {
        }
 
        public string GetCSS()
        {
            StringBuilder css = new StringBuilder();
            css.Append(@"
<Chart SkinName=""Marble"">
  <ChartTitle>
    <Appearance>
      <FillStyle MainColor=""Transparent"" />
      <Position AlignedPosition=""Top"" />
    </Appearance>
    <TextBlock>
      <Appearance>
        <TextProperties Font=""Arial, 22pt"" Color=""89, 79, 52"" />
      </Appearance>
    </TextBlock>
  </ChartTitle>
  <Legend>
    <Appearance Overflow=""Row"">
      <ItemTextAppearance>
        <TextProperties Color=""101, 91, 72"" Font=""Georgia, 9pt"" />
      </ItemTextAppearance>
      <FillStyle MainColor=""Transparent"" />
      <Position AlignedPosition=""Bottom"" />
      <Dimensions Margins=""17.6%, 3%, 1px, 1px"" />
      <Border Color=""Transparent"" />
    </Appearance>
  </Legend>
  <Appearance TextQuality=""AntiAlias"">
    <FillStyle FillType=""Image"">
      <FillSettings ImageDrawMode=""Flip"" BackgroundImage=""{chart}"" />
    </FillStyle>
    <Border Color=""181, 166, 132"" />
  </Appearance>
  <PlotArea>
    <XAxis>
      <Appearance Color=""Transparent"">
        <MajorGridLines PenStyle=""Solid"" Color=""94, 93, 87"" />
        <MajorTick Color=""173, 164, 142"" />
        <TextAppearance>
          <TextProperties Color=""101, 91, 72"" Font=""Georgia, 9pt"" />
        </TextAppearance>
      </Appearance>
      <AxisLabel>
        <TextBlock>
          <Appearance>
            <TextProperties Color=""101, 91, 72"" Font=""Georgia, 9pt"" />
          </Appearance>
        </TextBlock>
      </AxisLabel>
    </XAxis>
    <YAxis>
      <Appearance Color=""Transparent"">
        <MajorGridLines PenStyle=""Solid"" Color=""94, 93, 87"" />
        <MinorGridLines PenStyle=""Solid"" Color=""94, 93, 87"" />
        <MinorTick Color=""173, 164, 142"" />
        <MajorTick Color=""173, 164, 142"" />
        <TextAppearance>
          <TextProperties Color=""101, 91, 72"" Font=""Georgia, 9pt"" />
        </TextAppearance>
      </Appearance>
      <AxisLabel>
        <TextBlock>
          <Appearance>
            <TextProperties Color=""101, 91, 72"" Font=""Georgia, 9pt"" />
          </Appearance>
        </TextBlock>
      </AxisLabel>
    </YAxis>
    <Appearance>
      <FillStyle FillType=""Image"">
        <FillSettings ImageDrawMode=""Flip"" BackgroundImage=""{plotarea}"" ImageAlign=""Top"" ImageFlip=""FlipY"" />
      </FillStyle>
      <Dimensions Margins=""22%, 24%, 12%, 10%"" />
      <Border Color=""144, 136, 118"" Width=""8"" />
    </Appearance>
  </PlotArea>
</Chart>");
            return css.ToString();
        }
    }

In the marble skin, we see two params {image}  and {plotarea}. If we do not custom css, chart can show the background. However, I want to custom some its style, its background cannot show.

Please help.

Thanks / Phong Dang.
Vladimir Milev
Telerik team
 answered on 26 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?