Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
222 views
I have a Rad gridview that databinds and popluates date according to a seacrh. There is a linkbutton that i want to be able to change on column from saying false to true or vice-versa. Please help.


   void btn1_Click(object sender, EventArgs e)
   {
          var btnChange = (LinkButton)sender;
          var change = from s in db.Users
                                 where s.AccountID == ?? 
                                 select s;
   }

I need to be able to get the correct row in which I clicked the button to change its particluar column value





Grant
Top achievements
Rank 1
 answered on 19 Feb 2014
3 answers
226 views
Hi,
I am using custom filtering and setting the filter expression programmatically. I am using a custom skin and in there I have the following to for rgFilterActive with the assumption that this will be applied to filters that are active.
.RadGrid_Resonance .rgFilterActive,  
.RadGrid_Resonance .rgFilterActive:hover  
{  
    background-color#ffffB0;  

 

 

Firstly, with this it doesn't apply the style for the filters that are active, so to workaround in the item created event, I did the following: 

 

 

foreach (GridColumn column in grid.Columns)  
                {  
                    if (((GridTemplateColumn)column).AllowFiltering == true)  
                    {  
                        if (column.CurrentFilterFunction != GridKnownFunction.NoFilter)  
                        {  
                               (filteringItem[column.UniqueName].Controls[1] as Button).CssClass = "rgFilter rgFilterActive";  
                        }  
                        else 
                        {  
                            if (filteringItem[column.UniqueName].Controls.Count > 1)  
                            {  
                                (filteringItem[column.UniqueName].Controls[1] as Button).CssClass = "rgFilter";  
                            }  
                        }  
                    }  
                } 

 

With this everything works as expected, but when we click on the filter image and click outside, it loses the active styling.

Kindly note although this is a small issue, but needs to be resolved. Please let me know should I follow any other way to implement this, or is this an issue grid styling itself.

Thanks,
Tilak

 

 

 

 

Galin
Telerik team
 answered on 19 Feb 2014
2 answers
92 views
Hi,

In my web application, I have a PanelBar for which I'm using the WebBlue skin.

When text wrapping is needed for an item, only the first line is hignlighted when hovering the mouse over it and when clicked/selected.

Is there a solution for that?

Best regards, Marja
Princy
Top achievements
Rank 2
 answered on 19 Feb 2014
1 answer
346 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
71 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
123 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
164 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
412 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
88 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
343 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?