Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
167 views

Hello,

 

i use a Split Button, which has a ContextMenu attached to it. Inside the ContextMenu, there is one MenuItem, which contains an ItemTemplate with two CheckBoxes. How is it possible that the ItemTemplate matches the size of the containing CheckBoxes? So there should be no padding/margin between the CheckBoxes and the border of the ContextMenu.

I attached a screenshot of how it looks right now.

 

Code:

 

<telerik:RadButton EnableSplitButton="true" ID="btn4" AutoPostBack="true" runat="server" Text="Example Button Text" OnClientClicked="OnClickedRadButton" CommandName="cmdBt4"  OnClick="btn4_Click" CausesValidation="true">
</telerik:RadButton>
<telerik:RadContextMenu id="rcmBtn4" runat="server">
   <Items>
      <telerik:RadMenuItem>
         <ItemTemplate>
            <p>
               <telerik:RadCheckBox runat="server" ID="rcb1" CausesValidation="false" Checked="true" Text="als Excel-Datei (.xlsx) exportieren" AutoPostBack="false" />
            </p>
            <p>
               <telerik:RadCheckBox runat="server" ID="rcb2" CausesValidation="false" Checked="true" Text="Checkbox Text 2" AutoPostBack="false" />
            </p>
         </ItemTemplate>
      </telerik:RadMenuItem>
   </Items>
</telerik:RadContextMenu>
Steffen
Top achievements
Rank 1
 answered on 04 Aug 2017
0 answers
96 views

Appointment Bar is not Showing For Full Day is Rad Schedular and also hides particular appointment in the panel were the apponint start date is 26/07/2017 but is hides before 25/07/2017 , when is check thrgh the browser inspect the margin-left was is -435 PX if i set 0 PX  bar comes to normal position.

And i have attached the scrn.

arun
Top achievements
Rank 1
 asked on 04 Aug 2017
1 answer
128 views

I'm trying to filter a column of a grid table using a custom persian datepicker control that mentioned in Grid - Filter Templates demo. but it couldn't find that custom date picker in javascript code , so the alert function returns "null".

plz help.

<telerik:RadGrid RenderMode="Lightweight" ID="RadGrid2" ShowStatusBar="true" runat="server" AllowPaging="True"                    PageSize="5" DataSourceID="sds_RadGrid_Records" AllowFilteringByColumn="true" >
                    <MasterTableView Width="100%" AutoGenerateColumns="false" DataKeyNames="AutoCnt"                        DataSourceID="sds_RadGrid_Records">
                        <Columns>
                            <telerik:GridBoundColumn ItemStyle-Width="30px" UniqueName="RegNumber" ShowFilterIcon="false" DataField="RegNumber" HeaderText="RegNumber"  CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" FilterDelay="2000">
                            </telerik:GridBoundColumn>
 
                            <telerik:GridBoundColumn ItemStyle-Width="30px" UniqueName="Barid_ID" DataField="Barid_ID" HeaderText="Barid_ID"
                                CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" >
                            </telerik:GridBoundColumn>
 
                            <telerik:GridBoundColumn ItemStyle-Width="30px" ShowFilterIcon="false" UniqueName="People" DataField="People" HeaderText="People"
                                CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" FilterDelay="10000">
                            </telerik:GridBoundColumn>
 
                            <telerik:GridDateTimeColumn  DataType="System.DateTime" UniqueName="RegDate" DataField="RegDate" HeaderText="RegDate">
                            <%--<ItemTemplate>                               
                                <asp:Label ID="Label32" runat="server" Text='<%# Fadate.GetFaDate_WithEslash(Eval("RegDate")) %>'></asp:Label>
                            </ItemTemplate>--%>
                                <FilterTemplate>
                                    <telerik:RadLabel runat="server" AssociatedControlID="txt_Filter_RegDate_From" Text="From" Style="padding-left: 5px;"></telerik:RadLabel>
                                    <rhp:DatePicker ID="txt_Filter_RegDate_From" runat="server" OnUpdate="FromDateSelected" Width="80px"></rhp:DatePicker>                               
                                     
 
                                    <telerik:RadLabel runat="server" AssociatedControlID="txt_Filter_RegDate_To" Text="To" Style="padding-left: 5px;"></telerik:RadLabel>
                                    <rhp:DatePicker ID="txt_Filter_RegDate_To" runat="server" Width="80px"></rhp:DatePicker>
                                    
                                     
                                  <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
                                    <script type="text/javascript">                                       
                                        function FromDateSelected(calendar) {   
                                            var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                           var ToPicker = $find('<%# ((GridItem)Container).FindControl("txt_Filter_RegDate_To").ClientID %>');
                                            alert(ToPicker);
                                        }
                                    </script>
                                        </telerik:RadScriptBlock>
                                </FilterTemplate>
                            </telerik:GridDateTimeColumn>
 
                        </Columns>
                    </MasterTableView>
                    <ClientSettings AllowKeyboardNavigation="true" EnablePostBackOnRowClick="false">
                        <Selecting AllowRowSelect="true"></Selecting>
                    </ClientSettings>
                    <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                </telerik:RadGrid>

mohamadreza
Top achievements
Rank 1
 answered on 03 Aug 2017
9 answers
88 views

Hello,

 

i have a RadComboBoxsetup like this in code behind

 

this.oWebCombo.EnableAutomaticLoadOnDemand = true;
this.oWebCombo.ItemsPerRequest = 30;
this.oWebCombo.ShowMoreResultsBox = true;
this.oWebCombo.DataSource = _Med.DataSource;
this.oWebCombo.DataBind();

 

The Combobox is filled with approx. 38 Items and is almost acting as desired.

(DataSource is a DataSet which is filled from the DataBase beforehand)

When i click on the dropdown, only 30 items are displayed. When i click on the showmoreresults box, the missing 8 items are added to the dropdown list.

BUT:

The showmoreresults box only has a dropdown arrow and no text in it. There should be text like "Items 1 - 30 of 38".

If i handle the ItemsRequested-Event i can see the correct Messeage inside the Messageproperty of the EventArgs. But it is not displayed.

I looked at the dynamic created SourceCode at runtime and i only find this <span>:

<span class="p-icon p-i-arrow-60-down"></span>

 

Also, on your Demo side i noticed, that the Comboboxes of your Demo also only have the dropdown arrow and no text:

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

 

Any help would be highly appreciated!

 

Best Regards,

Benjamin

Rumen
Telerik team
 answered on 03 Aug 2017
0 answers
151 views

I inherited a small website which runs under https in production.  I've use the Telerik toolkit and all works well on my dev and staging sites which run under HTTP only. 

Under HTTPS I receive the following error from a simple RAD Window control

<telerik:RadWindow runat="server" ID="popUpPurchaseGiftCard" OpenerElementID ="ButtonClientAppointment" Animation="Slide" BorderStyle="None" Title="Gift Cards Purchase" VisibleStatusbar="false" DestroyOnClose="true"
Height="600px" Modal="True" NavigateUrl="https:xxxxxxxxxxxxxx" Width="1200px">
</telerik:RadWindow>

I see the following in the IE Edge Tools Console window instead of the RAD Window being displayed: (where xxx is the domain name)
Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=TDVjdgRbdvNAY3tnbizUcGLu6YFr2GBuBq7CnCQ8gd7HihfppJChpgbQ9BAQCypzmHbKddH3fWe4jTlOVGDdq_v6MactvcCgErrHNRcD2SOXlBp60&t=306be499Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=mbGZm65DzNC0tMTq0ElbcZxrrOrBEQdO5XVd-4VeDNwASWIM1dWG_V2H70lnwmH4jnG6rPLVBX9JqRpKYwJCf9Og2uCAmm6YBU1TvM_zLns6UmhuxuTFNDxmPj-zsjfO9NljdQ2&t=306be499Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=cmIcXiVJ__exjjpjrN730mwdTpwqvudM4tBqx41Zc-4A3dUNiydhrrAQpzCRti72FeEad6h4GSH5P0LFa8q28O8hVdPBAUdqESe6h7n8g59Tic3ZEcTVde9zC9R6Nbj0doD90g2&t=306be499Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=aoSSiMnLNTC20U5L7LFIKoG-FZNA_KE-uAJCCPW5jRhYlJ2KJbMpGp3yu2_ZIO9kkdcM6FRm2zYNu2JWWGLeFrvm4sj0yJDLbMxzymJPYKOKHqZ9lj2Doyspr8-D_KBtXfC77_Mirs4bbpl7L5X6GTDdSrU1&t=306be499Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=A22-SyJgKhJ5FWUJePaPlOIqRER0mM06Mwjbg_sfF5s1LXzdP9wkmiWUZjB-hQs9TRcMba8A7gWk_Kpq0PgAONlS893iBfc38pOeZMXWEiNwkUPP3e0qCiieiVMufMpBI6uC-w2&t=306be499Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=GUyLPMOEFhffuIMm6XZ0oMyCmmZmn3-jv_exzglunMHyqkj4wBhoBiGQw5Vfq8fvYae9u5g1gCcoQce1cd83DnGd_sUuOY4DREWyEJTnBEX_eULJ3EpGV4wZKOydlmwuFeWR8zlj203GFG5h-I3ce-2gYLM1&t=306be499Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=mxxObI9nroQxDBLgf-QlAlmPb1XOv3wGG9cgpsvmqb8F6TzI5I892XSCSjTTcylB9ngjV8stDOhwoPT3yixYKZeYorwpCfHruMXQYK7Ms0FnYR712MCRSj2qBdywDxK01buQ2q2kPURZfMoDOE7fNPbwa_U1&t=306be499Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=utaAJrK4EroNO-KNr3p19Ast2nKSB_ArhT7EMZqp-LI42AcTdCyPQENdITK58wmadYFIN8BS8oJ9ReEdvvCZ-p0WzIeKO3Hj0x31O8UtXc5fFsPOOJ7AKPDtMwJE75TetxTIRQ2&t=306be499Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=ei_BvuPu_kfWuvcXX4wAOI7KSwKMXmHYN_KT2SEy6IIHq4sLSm3SkLgmyfNtuYrE3MpD-W5KRFOwpZNtJ92Ur_io3qbqPaM7MOVQBgzMteyVXrlmEz0J396z8C6goLd6ss3yFQ2&t=306be499Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=qsRpKh5Y3Y02fhrPxQCAxb0sQGP0n-5qkVmdyNP5q_NA3C7prPsrSwM1Qm34Fjz-ZgBeu6RJOYm5da4ugvkrsRB6ByeSS-ET7TCWYV99u2_KRUZTjp0xoy5uQbG_G65YaMPIcg2&t=306be499Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=LxjRs3XOu8Cy2bbYGMzbCshZ4UfjgB76at9S3cGO94BpfVrx6a1DA3yHGvxWX-d_ZJzbhUdxTbUpJbgf3XJrrifPCGtlQMb6iHoYOxCXDfoTQ3hYsH18rdmz_ICWaNEtI87e6EEu97HX49wc1TMfuQAm1LY52NwmzZTjEIHNxwgPJ4Js0&t=306be499Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=86EhAqQjfuMKlbK4FWyenGp5v5gd90H1upQfGVWidauLt4LgG5DfFx_5gFiRiFXijwUFLIF35aZYe2QTUMdYptF49Rrg3eWEHKsspjcaVZgpghTy5pAA_25vhO4PyqWFyLcG37-7YwoZ9terih7Vtbjo7RA1&t=306be499Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=wl5RKBCXTWDacHhxsSq8QzeyX2RC5IyryfuUdow2WbZdw1CzUanr0f5u9_dqOxLIPZb5dYrztofWLyP_CHocQxgBhdwKKL3ivXY6s_meZv3-yTzMNTbyvSrqHIWss5yF63LhLw2&t=306be499Appointment.aspxSEC7111: HTTPS security is compromised by http://xxxxxxxxxxxxxxxxxxxxxxxx/ScriptResource.axd?d=OhiQVM8i2feYV04aiMKgwtuEtq-ddyDpZfKpmcWhAOzbEIJyzrOH9R1tlJS1iMDudkHxlGdMWIc1nhkAGSMWwxCWpeAlqQISR6SMKs-AuwLVM_W_P4wLRYYkq9dij_ufddgKoQ2&t=306be499Appointment.aspx

 

 

I'm not sure why the RAD Window is causing the fault but when I click on the first error regarding HTTPS security is compromised by http://xxxxxxxx/WebResource.axd? then I get  the attached webresource.css file  which has a lot of detail regarding the RAD Window?

I've read some other related links in the forum and I've already removed relative links and spelt them out using a full link to the site with HTTPS but this hasn't made any difference.  I've also tried to run the window as  popup on the same page rather than use a navigation URL but I get the same bunch of errors.

Karl
Top achievements
Rank 1
 asked on 03 Aug 2017
1 answer
110 views
Old code I have for Filter Menu modification works except it has issues with "Contains", new way which is in the help is not working.  Just purchased version 2017 so I have the latest version of everything.  Also filtering on columns which was are of type text don't work, filtering on equal to 1 for example brings back nothing when 1/3 of the data is equal to 1.   Again having issues with having "Contains" in the filters, when I added only one or two columns show it.  Like complete sample code for having No Filter, Contains and Equal To and have default filter of Contains applied like after 2000ms which is what I am doing.  Again code not working properly and new version of code which involves modifying filters on the OnInit of the grid does not seem to work.
Eyup
Telerik team
 answered on 03 Aug 2017
1 answer
223 views

Hi,

I am using Rad date picker with following options but some how I am not seeing the navigation arrows , if I hover on arrow region or click on that region it does work.

I guess it must be some CSS issue.

<telerik:RadDatePicker ID="radReferenceDateInsalled" runat="server" Culture="English (United States)">
<DateInput DateFormat="MM/dd/yyyy" runat="server" ReadOnly="true" >
</DateInput>
</telerik:RadDatePicker>

 

Rumen
Telerik team
 answered on 03 Aug 2017
4 answers
192 views
Hello everyone,
I used ImageGallery to show some collections of photographs. The problem is the slowness of the initial load.
Each gallery has 200/250 photos, each photo is 60/70kb ...
I think the slowness is due to loading all the thumbnails.
How can I fix?

Thank you

client side code:

<telerik:RadImageGallery ID="galRoom" runat="server" Width="100%" BackColor="#F4F4F4" Culture="it-IT" DisplayAreaMode="Thumbnails" >
    <ThumbnailsAreaSettings Height="608px" ThumbnailHeight="150" ThumbnailWidth="150" ThumbnailsSpacing="2" />
    <ImageAreaSettings ShowDescriptionBox="False" Height="730" />
    <ToolbarSettings ItemsCounterFormat="Fotografia {0} di {1}" />
    <ClientSettings>
        <AnimationSettings SlideshowSlideDuration="3000">
            <NextImagesAnimation Type="Random" />
            <PrevImagesAnimation Type="Random" />
        </AnimationSettings>
    </ClientSettings>
</telerik:RadImageGallery>


server side code:
Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        galRoom.ImagesFolderPath = "events/ev1"
End Sub


Danilo
Top achievements
Rank 1
 answered on 03 Aug 2017
2 answers
110 views

Hi

I have a page with a timer, a grid and a quite complex scheduler. The trigger checks for new records in a database table and refreshes/rebinds the grid if new information is available.

Every time the timer triggers, memory consumption goes up about 15-20MB for a RadScheduler with about 150-200 appointments, about 3-4 MB for about 20 appointments (no rebinding of scheduler). After a few hours memory consumption of the page in Chrome is almost at 2GB and the page is unusable. Only restarting the browser helps fixing the issue.

 

This happens also when Timer is off and I navigate back and forth in the RadScheduler in WeekView. This time the scheduler is rebinding, of course.

Any hints where I could look for ewithout having to post the code? Or any example with timers and RadScheduler?

 

Thank you very much...

 

rugydp
Top achievements
Rank 1
 answered on 03 Aug 2017
6 answers
111 views

hi,

i have a GridTemplateColumn in Radgrid.  In  the  <EditItemTemplate> i have a radcombo. When fire the event  radcombo1_SelectedIndexChanged

i need to access to another GridTemplateColumn like this:

                   <telerik:GridTemplateColumn HeaderText="Annul."  UniqueName="flg_ann">
                           <ItemTemplate>
                               <asp:CheckBox id="CheckBoxFlgAnnul" runat="server" Checked='<%# Eval("flg_ann") %>'></asp:CheckBox>
                           </ItemTemplate>
                    </telerik:GridTemplateColumn>

........rcbStatoRecUpd_SelectedIndexChanged(.......)

        Dim radcombo  As RadComboBox = CType(sender, RadComboBox)
        Dim editedItem As GridEditableItem = TryCast(radcombo.NamingContainer, GridEditableItem)

 Those firsts two line of code work well BUT after no way to access to CheckBox column. i try findcontrol in all possible way but i got alway error "object no reference" ecc ecc I also try Dim item As GridDataItem = DirectCast(combo.NamingContainer, GridDataItem) but nothing to do. no way.

       Question : there is a way to access to that column or not ?

TY, Maurizio

Eyup
Telerik team
 answered on 03 Aug 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?