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

Can i access the Laptop/computer internal camera to use it with the Telerik ASP.Net Controls? We have an Human Resources web application and we need that the user can take the employees picture using the computer camera. this is posible?


thanks,

Elvin Irizarry
Renova Solutions
Ianko
Telerik team
 answered on 19 Feb 2014
1 answer
45 views
I have a whole slew of font sizes defined in my real font sizes list in the mark up.  When ever I use set_html() and the style of the text has a font size of 16px, 18px, 24px, 32px, or 48px the real font size drop down changes to 3, 4, 5, 6, or 7.  Then when I save my stuff to the database im saving font sizes as 3,4,5,6 or 7 instead of 16, 18, 24, 32 or 48 causing our product to produce extremely small font on the display. 

You can reproduce the issue here: http://demos.telerik.com/aspnet-ajax/editor/examples/editorastextbox/defaultcs.aspx

Simply select 16, 18, 24, 32, or 48 as a size from the drop down, type some text,  cut that text, then paste it back in and you will notice the real font size drop down changes to 3, 4, 5, 6, or 7 depending on what size you choose. 

Here is what the sizes are equating to.
16px = 3
18px = 4
24px = 5
32px = 6
48px = 7

Here is the function I'm using to set my html in the editor.
function SetEditorText(sender) {
    var editor = $find(elementIds.Editor);
    var placeholder = sender.children;
    for (var i = 0; i < placeholder.length; i++) {
        if (placeholder[i].id == sender.id + "Placeholder") {
            if (placeholder[i].innerHTML.toString() !== '') {
                editor.set_html(placeholder[i].innerHTML);
                editor.setFocus();
            }
            else {
                editor.set_html("");
                editor.setFocus();
            }
        }
    }
}


Is there anyway to get a reference to the real font size drop down when set_html() is called and check the selected value of the drop down and if it is 3, 4, 5, 6, or 7 to change it to its appropriate size?

Any help would be greatly appreciated.

Thanks.
Slav
Telerik team
 answered on 19 Feb 2014
2 answers
94 views
Hello,

I am using telerik asp.net ajax controls version 2012.1.515.35 with ASP.NET 4.5 with C#.

I have an aspx page to which I am adding a Dynamic RadGrid and for each cell of that grid I am placing a dynamic RadTooltip. It is working fine when browser window is maximized or with full-screen. But as I make the window width less then full screen, the tool-tip gets weird.

I have attached both of the screen-shots with this post.

The code using what I generates the tool-tip is as below :

public void InstantiateIn(System.Web.UI.Control container)
{
    RadToolTip RadToolTip1 = new RadToolTip();
    RadToolTip1.ID = container.ClientID + DateTime.Now.Ticks.ToString();
    RadToolTip1.HideEvent = ToolTipHideEvent.LeaveToolTip;
    RadToolTip1.OffsetY = -1;
    RadToolTip1.RelativeTo = ToolTipRelativeDisplay.Element;
    RadToolTip1.EnableViewState = false;
    RadToolTip1.Position = ToolTipPosition.TopCenter;
    RadToolTip1.AnimationDuration = 300;
    RadToolTip1.DataBinding += new EventHandler(RadToolTip1_DataBinding);
    if (request.UserAgent.ToLower().Contains("android"))
    {
        RadToolTip1.ShowEvent = ToolTipShowEvent.OnClick;
    }
    container.Controls.Add(RadToolTip1);
}

P.S. : With attached images, the yellow marker on text has done by me to hide some confidential data.

Please let me know how to get rid of this issue?

Thank you.
Dev
Top achievements
Rank 1
 answered on 19 Feb 2014
5 answers
130 views
Hi All,

I want to insert pdf file into rad grid like pictures. I can insert picture files but pdf not. How can i do?

Thanks for you interest. 

Sincerely
Yunus
Kostadin
Telerik team
 answered on 19 Feb 2014
14 answers
353 views
I've a TreeView in asp.net User control page. In Firefox the control renders fine, But in IE7 and IE8 the TreeView looks like a List with bullet points instead of tree structure. The skin also not applied in IE.

<div style="padding-left: 10px;" class="minwidth_650">
    <table width="100%">
        <tr>
      <td colspan="2"
     <telerik:RadTreeView ID="rtvAssignedNodes" runat="server" EnableDragAndDrop="True" OnNodeDrop="rtvGroups_HandDrop"
       OnClientNodeDropping="onNodeDropping" OnClientNodeDragging="onNodeDragging" MultipleSelect="true"
                                            EnableDragAndDropBetweenNodes="true">
                                        </telerik:RadTreeView>
                                    </td>
                                </tr>
                            </table>


Have attached the screen shot of Firefox and IE,  Please help me to identify the issue

Plamen
Telerik team
 answered on 19 Feb 2014
2 answers
49 views
Hi,
Using a Radgrid which have 2 dates column
When in edit mode on a row, i show 2 RadDateTimePicker for each date column :

<telerik:GridBoundColumn DataField="ACT_DATEFROM" HeaderText="Date" UniqueName="DateDebut" ReadOnly="true" HeaderStyle-Width="120" />
                    <telerik:GridTemplateColumn UniqueName="DateDebutTp" Display="true" HeaderText="De" DataField="ACT_DATEFROM" HeaderStyle-Width="10" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" >
<ItemTemplate>
<asp:Label runat="server" />
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDateTimePicker runat="server" ID="rdtpDebut" ToolTip="Date/heure de début" TimeView-StartTime="11:00:00" TimeView-EndTime="22:00:00" TimeView-Interval="00:15:00" Calendar-FirstDayOfWeek="Monday" >
                                <ClientEvents OnDateSelected="DateSelected" />
</telerik:RadDateTimePicker>
</EditItemTemplate>
</telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="DateFinTp" Display="true" HeaderText="A" DataField="ACT_DATETO" HeaderStyle-Width="10" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" >
<ItemTemplate>
<asp:Label runat="server" />
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDateTimePicker runat="server" ID="rdtpFin" ToolTip="Date/heure de fin" TimeView-StartTime="11:00:00" TimeView-EndTime="22:00:00" TimeView-Interval="00:15:00" Calendar-FirstDayOfWeek="Monday" />
</EditItemTemplate>
</telerik:GridTemplateColumn>

What i want to do is to synchronise the second RadDateTimePicker named rdtpFin with the first RadDateTimePicker rdtpDebut => when i select a date in the first, i want the date to be automaticaly put in the second
I tried with javascript events OnDateSelected, but in the javascript function, i can't find/access the second RadDateTimePicker, searching it by id...
How can i do that ? 
Thanks
yoan








Yoan
Top achievements
Rank 1
Iron
 answered on 19 Feb 2014
6 answers
283 views
Hi there,

I have a form with several fields and I need to allow our users to upload some files.
Those files need to be stored under current entity id, i.e., I need them to be uploaded with the form itself, not before, just like old upload control did, so I could do something like this:

var data = new MyEntity(); // it can be a new object, so I do not have an ID until I save it
data.Title = txtTitle.Text; // and so on...
data.Save();
 
foreach(var file in asyncUpload.UploadedFiles)
{
     data.Attachments.Add(file);
}


How can I achieve that?

Thank you,
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2014
1 answer
105 views
Hi,

The issue I'm facing is that the selected Radlistbox item gets deselected while clicking the selected item along with shift key.

I want it to remain selected.

How can I change this behavior?

Thanks,
Priyank
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2014
10 answers
184 views
I have a RADGrid that generates columns automatically by assigning the DataSource to a LIST (OF <Object>) array. (I generate the grid entirely through server-side code). My client now wants to be able to filter off any column. There are some columns that have very specific data, and I would like to show then a "DropDownList" as opposed to a textbox. I created an ITemplate object, and within the "InstantiateIn()" method I created my RADCombobox (I also tried using a regular ASP DropdownList). I also implemented code in Delegate Methods to handle both the DataBind() and the SelectedIndexChanged() events for the control.

I then added code to the Grid's "ColumnCreated()" method that replaced the FilterTemplate with my custom ITemplate if the column name matched the one that I want to replace. So far, everthing worked perfectly...my control appeared in place of the usual filter control, and it was populated with the correct data.

I had an extremely irritating problem with an out-of-sync ViewState error whenever any control on the same page tried to perform a
PostBack...after hours of searching, I ended up turning "EnableViewState" off on the DropDownList control.


Now, when I select an item in my DropDownList filter control, I see the AjaxPanel's rotating circle skin appear as usual, however the control's "SelectedIndexChanged()" event never fires. Any thoughts?
Princy
Top achievements
Rank 2
 answered on 19 Feb 2014
6 answers
586 views
Hello,

Is there a way to get the LabelAppearance.DataformatString = "{0:d}" to work?  No matter which way I try to format this using, including trying  {0:MM/dd/yyyy}, I cannot get the string to format correctly and remove the time component of the data returned.  I have seen in many searches on the internet that HTMLEncode should be set to false to resolve this, but this is not something that I can set with the control.

Thanks,
Ron
msigman
Top achievements
Rank 2
 answered on 18 Feb 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?