Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
98 views
Hi,

I  am opening a contact form in a LightBox similar to the template demo. The form is a usercontrol inside the LightBox Item Template.
When the form is submitted - how can I keep the LightBox open so I can display a 'sent' message to the user? At present submitting the form closes the LightBox.

Cheers,

Jack 
Princy
Top achievements
Rank 2
 answered on 19 Mar 2014
1 answer
85 views
I'll try to get the week number from RadDatePicker SelectedDate

<telerik:RadDatePicker ID="rdpDatum" width="0" PopupDirection="BottomRight" Runat="server">
 <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" runat="server" />
 <DateInput style="display:none;" DisplayDateFormat="yyyy-MM-dd" runat="server" />
</telerik:RadDatePicker>

I found examples in the forum threads http://www.telerik.com/forums/radcalendar-weeknumber
But have error, see attached file.
Post is from 2010, tips on how I can get the week number?



Shinu
Top achievements
Rank 2
 answered on 19 Mar 2014
2 answers
102 views
I have modified a copy of the LightBox demo. I have three LightBox controls on the page, each includes an item template with  RadPageView set to a specific ContentUrl value. The actual URLs are identical, except for one parameter, which in this case are "about", "help" and "user".

I am not sufficiently familiar with client-side code, but I am pretty sure that the click events for the RadButtons could be modified to pass a parameter so that the URL parameter on RadPageView could be set, thus eliminating the need for three distinct LightBoxes. (because I might need a dozen more variations)

<script type="text/javascript">
    function OpenAboutLightBox() {
        var lightBox = $find('<%= AboutLightBox.ClientID %>');
        lightBox.show();
    }
    function OpenHelpLightBox() {
        var lightBox = $find('<%= HelpLightBox.ClientID %>');
        lightBox.show();
    }
 
    function OpenUserLightBox() {
        var lightBox = $find('<%= UserLightBox.ClientID%>');
                    lightBox.show();
                }
 
</script>

<telerik:RadLightBox ID="AboutLightBox" runat="server" Width="900px" Modal="True" PreserveCurrentItemTemplates="False" ShowLoadingPanel="False" ViewStateMode="Disabled" Height="460px">
    <ClientSettings>
        <AnimationSettings NextAnimation="CollapsingHorizontalStripes" PrevAnimation="VerticalResize" ShowAnimation="Resize">
        </AnimationSettings>
    </ClientSettings>
        <Items>
            <telerik:RadLightBoxItem>
                <DescriptionTemplate>
                    <div style="visibility:hidden;"></div>
                </DescriptionTemplate>
                <ItemTemplate>
                    <div style="padding: 0px; margin: 0px; overflow: hidden; position: relative;">
                        <telerik:RadMultiPage ID="RadMultiPage_About" runat="server" SelectedIndex="0">
                        <telerik:RadPageView ID="RadPageView_About" runat="server" ContentUrl="minimal_about.aspx"  Height="460" Width="900">RadPageView</telerik:RadPageView>
                        </telerik:RadMultiPage>
                    </div>
                </ItemTemplate>
            </telerik:RadLightBoxItem>
        </Items>
</telerik:RadLightBox>
Tomica
Top achievements
Rank 2
 answered on 19 Mar 2014
2 answers
45 views
With reference to the enclosed screen-shot, I have highlighted the gray "border" area on a pane bar which uses the standard Metro skin.

I do not know what this "part" is called, it is not the border that is settable in properties or CSS.

I would like to change its color to match the border on the text box to the right.


Tomica
Top achievements
Rank 2
 answered on 19 Mar 2014
1 answer
77 views
I am using the default advanced form template option in Visual Studio 2012.  I see it save to XML, but I need it to save to SQL "appointment" table.  As well as add a new textbox "CarrierText" and RadComboBox "ddlVendors" that lists values from SQL table.   I got this to work "showing  the new controls" except how do I access the values in my new textbox and RadComboxbox when the user hits "save" in the .aspx page RadScheduler1_AppointmentInsert.  NOTE: the textbox is directly added to the form advancedform.ascx and the RadComboBox is added to the ResourceControl.ascx

 tried getting the Carrier text below but no object found.
Private Sub RadScheduler1_FormCreated(sender As Object, e As SchedulerFormCreatedEventArgs) Handles RadScheduler1.FormCreated

If e.Container.Mode = SchedulerFormMode.AdvancedEdit OrElse e.Container.Mode = SchedulerFormMode.AdvancedInsert Then
_carrier = DirectCast(e.Container.FindControl("CarrierText"), RadTextBox)

End If

End Sub

doug
Top achievements
Rank 2
 answered on 18 Mar 2014
6 answers
227 views
I have used the  GridClientSelectColumn in the RadGrid, The checkbox is not visible in the Grid both IE and Firefox,
I have verified the generated HTML code, The checkbox is there but That is not visible,

My code is given below....

 <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"  width="80%" height="275" AllowMultiRowSelection="true" >
                                <MasterTableView width="98%" NoMasterRecordsText="No records to display">
                                    <headerstyle HorizontalAlign="left" VerticalAlign="Middle" ></headerstyle>
                                    <alternatingitemstyle HorizontalAlign="Left"></alternatingitemstyle>
                                    <itemstyle HorizontalAlign="Left"></itemstyle>
                                     <columns>
                                         <telerik:GridTemplateColumn UniqueName="SrlNo" AllowFiltering="False" HeaderStyle-Width="30" ItemStyle-Width="30" HeaderText="SNo." >
                                              <itemtemplate>
                                                <asp:Label ID="lblSrlNo"  runat="server"  />&nbsp;&nbsp;                                                
                                              </itemtemplate>                                                                             
                                         </telerik:GridTemplateColumn>      
                                           <telerik:GridClientSelectColumn/>                                                                                                                                                               
                                          <telerik:GridTemplateColumn Visible="true" HeaderText ="Description">
                                              <ItemTemplate>
                                                <asp:HiddenField ID="hidTableid" runat="server" value='<%# Eval("Tableid") %>' />
                                                 <asp:Label ID="LblTblDesc" runat="server" Text=""><%#IIf(Eval("Description") = "", Eval("Name"), Eval("Description"))%></asp:Label>
                                              </ItemTemplate>
                                          </telerik:GridTemplateColumn>
                                         <telerik:GridBoundColumn DataField="Name" HeaderText="Table Name" UniqueName="TableName" Visible="false" HeaderStyle-HorizontalAlign ="left" ItemStyle-HorizontalAlign ="left" HeaderStyle-Width="200" ItemStyle-Width="200"></telerik:GridBoundColumn>                                         
                                         <telerik:GridBoundColumn DataField="TableID" UniqueName="TableID" Display ="false"></telerik:GridBoundColumn>                                       
                                    </columns>
                                  </MasterTableView>
                                   <ClientSettings EnableRowHoverStyle="true" Selecting-EnableDragToSelectRows="true">                                                               
                                        <Selecting AllowRowSelect="true" />                                                                   
                                    </ClientSettings>
                                    <SortingSettings  SortToolTip="Click here to sort"></SortingSettings>
                             </telerik:RadGrid>
Kiran
Top achievements
Rank 1
 answered on 18 Mar 2014
0 answers
111 views
I added a Loading Panel to a screen and it works find when running from the dev environment in vs2008 but when I move the changes to our test server I get
​Unknown server tag 'telerik:RadAjaxLoadinPanel' on the screen load.  The loading panel is being used on other pages with out issue.  Not sure what else needs to be moved to the test environment to fix this issue.
Eric Klein
Top achievements
Rank 1
 asked on 18 Mar 2014
4 answers
389 views
Hi and thanks in advance.

I created a custom control that uses a rad slider with item type set to item. As follows:

<td>
 <telerik:RadSlider ItemType="Item" SmallChange="1" TrackPosition="TopLeft"
  AutoPostBack="false" ShowDecreaseHandle="false" Width="490" LargeChange="0"
  OnClientValueChanged="rwc_Input_Slider_ValueChanged" OnValueChanged="radSlider1_ValueChanged"
  ShowIncreaseHandle="false" MinimumValue="0" MaximumValue="36" runat="server" ID="radSlider1">
 </telerik:RadSlider>
</td>

I am dynamically adding ticks on the server side. Here is the code:

private void CreateSliderTicks(RadSlider radSlider)
{
            int minuteTicks = 6;
            int hourTicks = 24;
            int dayTicks = 8;
 
            // add minute ticks to the graph
            for (int i = 0; i < minuteTicks; i++)
            {
                RadSliderItem minuteItem = new RadSliderItem();
                minuteItem.Value = (i * 10).ToString() + " " + Resources.Units.Minutes;
                //string testValue = minuteItem.Value.ToString();
                //minuteItem.Text = minuteItem.Value.ToString() + " minutes";
                radSlider.Items.Add(minuteItem);   
            }
 
            // add hour ticks to the graph
            for (int i = 1; i < hourTicks; i++)
            {
                RadSliderItem hourItem = new RadSliderItem();
                string units = "";//Resources.Units.Hours;
                if (i > 1)
                {
                    units = Resources.Units.Hours;
                }
                else
                {
                    units = Resources.Units.Hour;
                }
                hourItem.Value = i.ToString() + " " + units;
                //string testValue = hourItem.Value.ToString();
             
                radSlider.Items.Add(hourItem);
            }
 
            // add day ticks to the graph
            for (int i = 1; i < dayTicks; i++)
            {
                RadSliderItem dayItem = new RadSliderItem();
                string units = "";
                if (i > 1)
                {
                    units = Resources.Units.Days;
                }
                else
                {
                    units = Resources.Units.Day;
                }
                dayItem.Value = i.ToString() + " " + units;
                //string testValue = dayItem.Value.ToString();
               
                radSlider.Items.Add(dayItem);
            }
 }

The problem I am having is that the tick marks are showing once the radslider is rendered on the page. How can I hide these tick marks from showing? My understanding was that when you create an item type slider the tick marks go away, but this is not the case. Any help would be appreciated. I have included a screenshot for reference.
Thanks,
-Justin
Bozhidar
Telerik team
 answered on 18 Mar 2014
3 answers
210 views
Hey guys we are running into two issues with the image manager and images hosted on external sites.  I've put together a demo video here that clearly shows both issues, but i will also write it out for others who come upon this post.

http://images.publicaster.com/ImageLibrary/Account116/Documents/ImageManagerIssue.mp4

For this demonstration, i'm using the latest version of the Telerik Ajax controls, v2013.3.1324.40, and i do specify a reference to the Editor Dialogs in my control declaration.

1.<telerik:RadEditor ID="EMailContentEditor" runat="server"  Width="95%" ContentFilters="RemoveScripts,IndentHTMLContent"
2.  ConvertToXhtml="false" ConvertFontToSpan="false" ExternalDialogsPath="/EditorDialogs"
3.    EditModes="Design,Html" Height="600px" OnClientCommandExecuting="OnClientCommandExecuting"
4.     OnClientLoad="OnClientLoad" >


If you select an image in the editor that is hosted on a 3rd party, and then click the image manager icon in the editor, you get a message that says
"You are trying to navigate to a non-existing folder or you do not have proper permissions to view this folder.  Please, contact the administrator."

As you can see from my video, the image is hosted on a 3rd party site. I would like to know how i can disable this error message. 

If i click the "OK" button then  the image manager loads and i can see all the images in my image library.

The second issue is that i am unable to easily replace this image that is hosted on a 3rd party site with an image from my image library.  To reproduce,

1. select an image in the editor that is hosted on a 3rd party site.
2. click the image manager icon
3. click ok to dismiss the "non-existing folder" message
4. select any existing image from my image library
5. click insert button in the image library dialog

When you follow these steps, nothing happens.  the original image is still in place and the image i selected from the library is nowhere to be found.

I can workaround this issue by first deleting the image hosted on a 3rd party site and then inserting a new image from the image library.  This problem does not exist if i use an image that is already in my image library and replace it with an image in my image library.

Please advise how i can remedy these two issues.

Thanks
-Mark



Vessy
Telerik team
 answered on 18 Mar 2014
2 answers
75 views
Hello.

i want to change the size on the Title of a RadImageTile, i try setting propierty Font-Size, but dont work, also try with css no lucky, also try to set the propierty Font-Bold to true but the same dont work.

how can i do that.

Thanks in advance.
Hector Hernandez
Top achievements
Rank 2
 answered on 18 Mar 2014
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?