Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
43 views
This issue http://www.telerik.com/forums/issue-with-changing-the-background-of-active-filter#8qeqk4W15k-RS15ZY2UuRA does not work if I apply more than one filter in cascade (only one column is affected)
Could you help me?
Thanks
Eyup
Telerik team
 answered on 19 Feb 2014
3 answers
134 views
Hi,

I want to disabled ajax only for one button into my toolbar because i need to download a file and i have some problems with if the ajax is enabled.

function onAjaxRequestStartHandler(sender, args) {
      if (args.get_eventTarget().indexOf("RadToolBarReport") >= 0)
          if (myButtonExport is clicked) {
              args.set_enableAjax(false);
              }
       }

I look to replace IF (myButtonExport is clicked) by a javascript code to know what is the button clicked...

Someone can help me ?

ty
Kate
Telerik team
 answered on 19 Feb 2014
1 answer
147 views
RadGrid displays Button like plan text. 
 <Columns>
 <telerik:GridBoundColumn HeaderText="On Calendar" DataField="IsOnCalendar" UniqueName="IsOnCalendar" CurrentFilterFunction="EqualTo" AutoPostBackOnFilter="true" />
                            <telerik:GridBoundColumn HeaderText="Status" DataField="Status" UniqueName="Status" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" Visible="false" FilterControlWidth="80px" />
 <telerik:GridTemplateColumn UniqueName="UpdateColumn" AllowFiltering="False">
   <ItemTemplate>
   <asp:Button ID="btnInactiveButton" ToolTip="Mark Inactive" runat="server" Text="Inactive" CommandName="Update" CommandArgument="0"            SkinID="defaultbutton" OnClientClick="return confirm('Are you sure you want to deactivate this?');" CausesValidation="false" />
<asp:Button ID="btnActivatebutton" ToolTip ="Mark Active" runat="server" Text="Activate" CommandName="Update" CommandArgument="1" SkinID="defaultbutton"
                                        OnClientClick="return confirm('Are you sure you want to activate this?');" CausesValidation="false" />
     </ItemTemplate>
 </telerik:GridTemplateColumn>
</Columns>

Buttons btnActivatebutton and btnInactiveButton show up like normal text. User will not know that they are buttons until they hover over them. I need fix for this.  Thnaks.



Shinu
Top achievements
Rank 2
 answered on 19 Feb 2014
10 answers
231 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
236 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
95 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
351 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
87 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
127 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
169 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?