Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
68 views

Hi All,

I'd like to take the totals that are aggregated in my footer, and place them in the row that's created for my filtering abilities.

Is this possible?

Screenshot shows where I'd like the totals to appear.

 

Thank you!

ww1711
Top achievements
Rank 1
 answered on 16 Oct 2015
8 answers
302 views

Hello,

I implemented an ASP.NET application that uses RadScheduler. So far so good, but my users requested me for a larger advanced insert / edit form.

Is there a way to change width and height of the Advanced Form?

 

Thanks in advance

Regards

Mike

 
Mbott
Top achievements
Rank 1
 answered on 16 Oct 2015
1 answer
49 views

I have created a large form which I wanted to implement Ajax on some parts. I am very new to Ajax and ASP.NET and was wondering how I should go about it.

The questions are mostly "yes" or "no" RadComboBox selections except one with the "other" option. There is one part of the form where if the user selects "yes" then a checkbox will appear. If the user selects "no" then the checkbox will not be visible to them. In another part if the user selects "yes" there is another question that will appear right below, and if they select no then it will stay hidden.In the last part of the form that needs implementation if the user selects "yes" a textbox will appear, if they select "no" a checkbox will appear, and if they select "other" a different textbox will appear.

Nencho
Telerik team
 answered on 16 Oct 2015
3 answers
132 views

Since upgrading to 2015.3.930.45 I have a problem with the Office2010Black theme.  When grouping by a column the text in the footer is invisible. It appears that the background has changed from earlier versions.  If I switch to another theme the text appears.  I've only tested this in IE 9 and Edge.  

 

Thanks for any help you can provide.

Pavlina
Telerik team
 answered on 16 Oct 2015
0 answers
212 views

Hi 

I have to create multiple Tab and Pageview at client side. My requirement is to create tabs on link click and show the one URL inside the tab in pageview. Also functionality to close the tab and ​open again. 

I am using the below code but i am facing few issues

1. When I set the pageview id to the tab then pageview content is not showing.  When i use tabStrip1.get_tabs().findTabByText(title).set_pageViewID(title); this code my pageview did not show any controls. why ?

 2. When i close the tab i need to remove the pageview also how can i do this ?

<telerik:RadTabStrip ID="rtsMenu" runat="server" SelectedIndex="0" OnClientTabSelecting="onClientTabSelecting"
                    ScrollChildren="true" MultiPageID="RadMultiPage1" Skin="Windows7" OnTabClick="rtsMenu_TabClick"
                    OnClientLoad="OnClientLoad" BorderColor="Green" BorderWidth="3">
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="RadMultiPage1" runat="server" BorderWidth="2" BorderColor="Red"
                    SelectedIndex="0">
                </telerik:RadMultiPage>
var tabStrip1;
       var multiPage;
 
 
       function onClientTabSelecting(sender, args) {
           var tab = args.get_tab();
           var pg = tab.get_pageView();
           //alert(pg);
           if (tab.get_pageView()) {
               tab.set_postBack(false);
           }
       }
 
       function OnClientLoad() {
           tabStrip1 = $find('<%= rtsMenu.ClientID %>');
           multiPage = $find('<%= RadMultiPage1.ClientID %>');
           
       }
 
       function addtab(title, contenturl) {
           var oldtab = tabStrip1.findTabByText(title);
           if (oldtab != null) {
               oldtab.select();
               return;
           }
           // alert(contenturl);
           var tab = new Telerik.Web.UI.RadTab(title);
           tab.set_text(title);
           tabStrip1.trackChanges();
           tabStrip1.get_tabs().add(tab);
           tabStrip1.commitChanges();
 
           //tab.get_element().innerHTML = "<iframe src=\"" + contenturl + "\" frameBorder=\"1\" style=\"width: 1000px; height: 600px;\"></iframe>";
           AttachCloseImage(tab, "delete.png");
 
           multiPage = $find('<%= RadMultiPage1.ClientID %>');
 
           multiPage.trackChanges();
 
           var pageView = new Telerik.Web.UI.RadPageView();
           pageView.set_id(title);
           //pageView.set_contentUrl(contenturl);
           multiPage.get_pageViews().add(pageView);
           //pageView.get_element().id = title;
           //tabStrip1.get_tabs().findTabByText(title).set_pageViewID(title);
 
 
           pageView.get_element().innerHTML = "<iframe src=\"" + contenturl + "\" frameBorder=\"1\" style=\"width: 1000px; height: 600px;\"></iframe>";
 
           multiPage.commitChanges();
           //tab.set_pageViewID(title);
           tab.select();
 
 
       }
 
       function CreateCloseImage(closeImageUrl) {
           var closeImage = document.createElement("img");
           closeImage.src = closeImageUrl;
           closeImage.alt = "Close this tab";
           return closeImage;
       }
 
       function AttachCloseImage(tab, closeImageUrl) {
           var closeImage = CreateCloseImage(closeImageUrl);
           closeImage.AssociatedTab = tab;
           closeImage.onclick = function (e) {
               if (!e) e = event;
               if (!e.target) e = e.srcElement;
 
 
               deleteTab(tab);
 
               e.cancelBubble = true;
               if (e.stopPropagation) {
                   e.stopPropagation();
               }
 
               return false;
           }
           tab.get_innerWrapElement().appendChild(closeImage);
       }
 
       function deleteTab(tab) {
 
 
           tab.select();
           var pageView = new Telerik.Web.UI.RadPageView();
           //pageView = tab.get_pageView();
           pageView = tabStrip1.get_selectedPageView();
           alert(pageView);
           alert(pageView.get_index());
           if (pageView) {
               pageView.hide();
           }
           //                   
           var tabToSelect = tab.get_nextTab();
           if (!tabToSelect)
               tabToSelect = tab.get_previousTab();
 
           tabStrip1.get_tabs().remove(tab);
 
           if (tabToSelect)
               tabToSelect.set_selected(true);
 
           pageView = tabToSelect.get_pageView();
           if (pageView) {
               pageView.select();
           }
           //tabStrip1.repaint();
       }

 

nitin
Top achievements
Rank 1
 asked on 16 Oct 2015
7 answers
464 views
Dear Sir,

I am using Rad Scheduler Control. I have given right Click Contect menu Facility in Given Appointment For Edit.
Also i have given new appointment Contect Menu in blank time Slot.

Its Working Fine.

But i want to hide these menu condition wise.

Like When Appointment status is DEACTIVE Then there is no Option of right click means there is no option when i r do right click.

Same as in case of New Appointment. i want 5 to 6 o'clock no option of right click and other time right click is working.

How can i achive. Please help me.

My Aspx File Code:-
 

 

 

 

<telerik:RadScheduler AllowInsert="false" HoursPanelTimeFormat="hh:mm tt" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"

 

 

 

 

 

OnAppointmentCreated="RadScheduler1_AppointmentCreated" runat="server" ID="RadScheduler1"

 

 

 

 

 

Skin="Office2007" Height="545px" CustomAttributeNames="StatusId" Width="690px"

 

 

 

 

 

ShowFooter="false" SelectedDate="2010-03-18" DayStartTime="07:00:00" DayEndTime="21:00:00"

 

 

 

 

 

FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" EnableDescriptionField="true"

 

 

 

 

 

ShowNavigationPane="false" OnAppointmentDelete="RadScheduler1_AppointmentDelete"

 

 

 

 

 

DataSubjectField="Subject" DataStartField="FromTime" DataEndField="ToTime" ShowAllDayRow="false"

 

 

 

 

 

AllowEdit="false" DataKeyField="AppointmentId" DataDescriptionField="StatusColor" OnTimeSlotContextMenuItemClicked="RadScheduler1_TimeSlotContextMenuItemClicked"

 

 

 

 

 

AllowDelete="false" OnAppointmentContextMenuItemClicked="RadScheduler1_AppointmentContextMenuItemClicked"

 

 

 

 

 

OnNavigationCommand="RadScheduler1_NavigationCommand" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated">

 

 

 

 

 

<AppointmentContextMenuSettings EnableDefault="false" />

 

 

 

 

 

<TimelineView UserSelectable="false" />

 

 

 

 

 

 

 

<AppointmentTemplate>

 

 

 

 

<%

# Eval("Subject")%>

 

 

<br />

 

 

 

 

 

<asp:Label runat="server" ID="Teacher" />

 

 

 

 

 

<br />

 

 

 

 

 

<asp:Label runat="server" ID="Students" />

 

 

 

 

 

</AppointmentTemplate>

 

 

 

 

 

<AppointmentContextMenus>

 

 

 

 

 

<telerik:RadSchedulerContextMenu runat="server" DataTextField="Status" DataValueField="StatusId"

 

 

 

 

 

ID="SchedulerAppointmentContextMenu" AppendDataBoundItems="true">

 

 

 

 

 

<Items>

 

 

 

 

 

<telerik:RadMenuItem Text="Copy" Value="Copy" />

 

 

 

 

 

<telerik:RadMenuItem IsSeparator="True" />

 

 

 

 

 

<telerik:RadMenuItem Text="Edit" Value="Edit" />

 

 

 

 

 

<telerik:RadMenuItem IsSeparator="True" />

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadSchedulerContextMenu>

 

 

 

 

 

</AppointmentContextMenus>

 

 

 

 

 

<TimeSlotContextMenus>

 

 

 

 

 

<telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">

 

 

 

 

 

<Items>

 

 

 

 

 

<telerik:RadMenuItem Text="New Appointment" Value="New" />

 

 

 

 

 

<telerik:RadMenuItem IsSeparator="true" />

 

 

 

 

 

<telerik:RadMenuItem Text="Paste" Value="Paste" />

 

 

 

 

 

</Items>

 

 

 

 

 

</telerik:RadSchedulerContextMenu>

 

 

 

 

 

</TimeSlotContextMenus>

 

 

 

 

 

<TimeSlotContextMenuSettings EnableDefault="False" />

 

 

 

 

 

</telerik:RadScheduler>

 

 

 

My Cs Page Code:-

Page Load ()
{


 

if

 

(ds.Tables[0].Rows.Count > 0)

 

{

RadScheduler1.SelectedDate = CalApp.SelectedDate;

RadScheduler1.DayStartTime =

TimeSpan.Parse(ds.Tables[0].Rows[0].ItemArray[0].ToString());

 

RadScheduler1.DayEndTime =

TimeSpan.Parse(ds.Tables[0].Rows[0].ItemArray[1].ToString());

 

 

RadScheduler1.MinutesPerRow =

int.Parse(ds.Tables[0].Rows[0].ItemArray[2].ToString());

 

RadScheduler1.TimeLabelRowSpan = 60 /

int.Parse(ds.Tables[0].Rows[0].ItemArray[2].ToString());

 

RadScheduler1.DataKeyField =

"AppointmentId";

 

RadScheduler1.DataStartField =

"FromTime";

 

RadScheduler1.DataEndField =

"ToTime";

 

RadScheduler1.DataSubjectField =

"Subject";

 

RadScheduler1.GroupBy =

"Resource";

 

 

 

 

 

RadScheduler1.ResourceTypes.Clear();

 

ResourceType rt = new ResourceType("Resource");

 

rt.DataSource = ds.Tables[2];

rt.KeyField =

"ResourceId";

 

 

if (ddlFacility.SelectedValue == "0")

 

{

rt.ForeignKeyField =

"FacilityId";

 

}

 

else

 

 

 

 

{

rt.ForeignKeyField =

"DoctorId";

 

}

rt.TextField =

"ResourceName";

 

RadScheduler1.ResourceTypes.Add(rt);

 

RadScheduler1.DataSource = ds.Tables[1];

RadScheduler1.DataBind();

lblFacility.Text = ddlFacility.SelectedItem.Text;

 

 

 

 

 

}

 

 

else

 

 

 

 

{

 

 

 

 

 

 

Alert.ShowAjaxMsg("There is no time define in selected provider and facility.", Page);

 

 

 

 

 

 

}

 


 

DataSet

 

Statusdt = new DataSet();

 

Statusdt = GetAppointmentStatus();

SchedulerAppointmentContextMenu.DataSource = Statusdt;

SchedulerAppointmentContextMenu.DataBind();

 

}


 

DataSet

 

GetAppointmentStatus()

 

{

 

DataSet ds = new DataSet();

 

 

Hashtable HashIn = new Hashtable();

 

DAL.

DAL dl = new DAL.DAL(DAL.DAL.DBType.SqlServer, sConString);

 

 

DataSet Reasondt = new DataSet();

 

Reasondt = dl.FillDataSet(

CommandType.Text, "Select * From AppointmentStatus(" + Session["HospitalLocationID"] + ")" );

 

 

 

return Reasondt;

 

}

 








Thanks
Chandan 

Nencho
Telerik team
 answered on 16 Oct 2015
3 answers
186 views

As showed on the piece of code bellow, I have a TabStrip with a multipage. When the page first loads, a grid is loaded. When the user clicks a row from the grid, a new tab opens with the details of that row.
 If I put the RadPageView to 100% height the grid is cut off as it's not adapting to the height of the grid. If I put a static value, it doesn't adapt to different window sizes. 

I tried to correct this issue using the javascript posted bellow. While it works when I resize the window, when the page first loads, it's not resizing. If you check the line 9. of the JS, you can see that on the (document).ready I try to force the new size but nothing happens.

You can see what is happening on the 2 files I attached. Is there anyway I can resolve this issue?

 

<telerik:RadTabStrip
    ID="tabContactsList"
    runat="server"
    MultiPageID="ContactsPagesViews"
    Orientation="HorizontalTop"
    SelectedIndex="0">       
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="ContactsPagesViews" ScrollBars="Auto" Height="100%"
    RenderMode="Lightweight" runat="server"
    OnPageViewCreated="ContactsPagesViews_PageViewCreated"
    SelectedIndex="0">       
    <telerik:RadPageView ID="RadPageView1" runat="server" Height="100%">
        <telerik:RadGrid
            runat="server"
            ID="RadGrid1"
            DataSourceID="dtContactsList"
            AllowFilteringByColumn="True"
            AllowPaging="True"
            AutoGenerateColumns="False"
            Height="100%"
            BorderWidth="0px"
            AllowSorting="True"
            Style="outline: none"
            EnableLinqExpressions="False"                
            ShowGroupPanel="true"
            FilterMenu-Enabled="true"                                
            FilterType="Classic"
            OnItemCommand="RadGrid1_ItemCommand"
            OnItemDataBound="RadGrid1_ItemDataBound" >
            <ExportSettings><Pdf PageWidth=""></Pdf></ExportSettings>
            <ClientSettings
                Scrolling-AllowScroll="false"
                Scrolling-UseStaticHeaders="true"
                Selecting-AllowRowSelect="true"
                EnablePostBackOnRowClick="true"
                AllowDragToGroup="true"
                EnableRowHoverStyle="true">
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="2"></Scrolling>
            </ClientSettings>
            <PagerStyle Mode="NumericPages" PageSizeControlType="None" ></PagerStyle>
            <MasterTableView TableLayout="Fixed" Width="100%" ClientDataKeyNames="ID" PageSize="16">
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" AllowFiltering="false">
                        <ItemStyle Width="40px" />
                        <HeaderStyle Width="40px" />
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" />
                        </ItemTemplate>
                        <HeaderTemplate>
                            <asp:CheckBox ID="headerChkbox" runat="server" OnCheckedChanged="ToggleSelectedState"
                                AutoPostBack="True" />
                        </HeaderTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" HeaderText="<%$ Resources:ContactManager.aspx, lblContactManagerId_HeaderText %>" AllowFiltering="false" UniqueName="Id" Display="false" HeaderStyle-Width="25px">
                        <ColumnValidationSettings>
                            <ModelErrorMessage Text="" />
                        </ColumnValidationSettings>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" HeaderText="<%$ Resources:ContactManager.aspx, lblContactManagerName_HeaderText %>" SortExpression="Name" UniqueName="Name" DataType="System.String">
                        <ColumnValidationSettings>
                            <ModelErrorMessage Text="" />
                        </ColumnValidationSettings>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="City" DataType="System.String" FilterControlAltText="Filter City column" HeaderText="<%$ Resources:ContactManager.aspx, lblContactManagerCity_HeaderText %>" SortExpression="City" UniqueName="City" ItemStyle-Width="15%" HeaderStyle-Width="15%">
                        <ColumnValidationSettings>
                            <ModelErrorMessage Text="" />
                        </ColumnValidationSettings>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Country.Name" DataType="System.String" FilterControlAltText="Filter Country column" HeaderText="<%$ Resources:ContactManager.aspx, lblContactManagerCountry_HeaderText %>" SortExpression="Country" UniqueName="Country" ItemStyle-Width="15%" HeaderStyle-Width="15%">
                        <ColumnValidationSettings>
                            <ModelErrorMessage Text="" />
                        </ColumnValidationSettings>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Address" FilterControlAltText="Filter Address column" HeaderText="<%$ Resources:ContactManager.aspx, lblContactManagerAddress_HeaderText %>" SortExpression="Address" UniqueName="Address" DataType="System.String" ItemStyle-Width="25%" HeaderStyle-Width="25%">
                        <ColumnValidationSettings>
                            <ModelErrorMessage Text="" />
                        </ColumnValidationSettings>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Phone" DataType="System.String" FilterControlAltText="Filter Phone column" HeaderText="<%$ Resources:ContactManager.aspx, lblContactManagerPhone_HeaderText %>" SortExpression="Phone" UniqueName="Phone" ItemStyle-Width="10%" HeaderStyle-Width="10%">
                        <ColumnValidationSettings>
                            <ModelErrorMessage Text="" />
                        </ColumnValidationSettings>
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <FilterMenu CssClass="RadFilterMenu_CheckList">
            </FilterMenu>
        </telerik:RadGrid>
    </telerik:RadPageView>
</telerik:RadMultiPage>
<asp:ObjectDataSource ID="dtContactsList" runat="server" DeleteMethod="DeleteContact" SelectMethod="GetAllContacts" TypeName="LCG.Web.IAMS.AWA.Pages.ContactManager">
    <SelectParameters>
        <asp:ControlParameter ControlID="ctl00$ContentPlaceHolder1$RadTreeView1" Name="priorityId" PropertyName="SelectedValue" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
 

 

<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
    <script type="text/javascript">
            $(document).ready(function () {
                  
                $(window).resize(function () {
                    ResizePage($find('<%= ContactsPagesViews.ClientID %>'))
                });
  
                 ResizePage($find('<%= ContactsPagesViews.ClientID %>'))
            });
  
        function ResizePage(multiPage) {
            for (i = 0; i < multiPage.get_pageViews().get_count() ; i++) {
                var pageView = multiPage.get_pageViews().getPageView(i);
                pageView.get_element().style.height = ($(window).height() - 80) + 'px';
            }
}
        </script>
</telerik:RadScriptBlock>
 

Thank you.

 

Nencho
Telerik team
 answered on 16 Oct 2015
7 answers
216 views

Hi,
I  have a problem with Editor. When I copy content from word and paste it in the Editor (Ctrl+V) in our website line height automatically changes even if I set the StripFormattingOptions property to ‘NoneSupressCleanMessage’.
I have also tried this on telerik’s demo site and the issue occurs there as well:
http://demos.telerik.com/aspnet-ajax/editor/examples/cleaningwordformatting/defaultcs.aspx
See the snapshot of the original document and the content after pasting in the radeditor
You can see that in the html mode the line height is being set to 115%. The line height should have been identical to that in MS Word
Please I need this issue to be solved ASAP.

 

I have attached the snapshots of the site and word file

Ianko
Telerik team
 answered on 16 Oct 2015
4 answers
331 views
Hi, 

I'm trying to apply a CSS class to the <p> tag using the "Apply CSS Class".
In the latest version of Chrome the RADEditor adds a new <span> tag around text instead than adding the CSS class to the <p> tag.
Example:  <p><span class="someClass">Text</span></p>

The Firefox correctly handles applying a CSS class to an element selected via the DOM Inspector.
Example:  <p class="someClass">Text</p>

Best regards,
Andrey
Ianko
Telerik team
 answered on 16 Oct 2015
2 answers
72 views
I am very new to telerik, so sorry if you didn't understand my question​,  i'll try my best to explain

I have three links in the rrbmenugroup. see the screen1

if i click on Archive link and follow up it with alert popup, the first one still shows up (it doenst go away). see screen2

Am i missing something in css?

my QA raised the issue that it should go away, any help will be appreciated.
Sajad
Top achievements
Rank 1
 answered on 15 Oct 2015
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?