Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
192 views
Hi,
I have a general query. Is it possible to Rename the text that is displayed in filter options of RADGRID ? for e.g. If I use 'IsEmpty' Filter option , I do not want to show the text "Is Empty" , But I want to display " Blank" instead, so which property can I use?
Eyup
Telerik team
 answered on 28 Sep 2016
0 answers
90 views

Hi,

Sorry for this second thread about my problem (How to acces other controls inside Advanced Insert Form ??) here :

http://www.telerik.com/forums/how-to-acces-other-controls-inside-advanced-insert-form

but i realy need your help because this slow my progressin in my development for now...

If anybody has already had this problem...

Thank you

 

 

 

 

Pierre
Top achievements
Rank 1
 asked on 28 Sep 2016
7 answers
258 views
Hi,

I have a grid with an edit form with textboxes that I need to disable based on a button that is clicked in the form. I'm wondering if there is a way to find the textboxes in the itemcommand events that get triggered by the buttons?

I've been trying to use something like:

 

Private Sub RadGrid2_ItemCommand(ByVal source As Object, ByVal e As Telerik.WebControls.GridCommandEventArgs) Handles RadGrid2.ItemCommand

 

 

If e.CommandName = "TimeInOutTextboxes" Then

 

 

Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)

 

 

Dim txtTimeIn As TextBox = DirectCast(editedItem.FindControl("txtTimeIn"), TextBox)

 

txtTimeIn.Enabled =

False

 

 

End If

but an error is thrown at "txtTimeIn.Enabled = False" because the control is not being found

Thanks


 

Beth
Top achievements
Rank 1
 answered on 28 Sep 2016
3 answers
73 views

Hello All,

I came across this strange issue happening only on production.

In my RadGrid, i have set the pager style as below, and its counting and displaying the paging details properly on local, dev and test environemnts (for example, 1,000 items in 10 pages)

<PagerStyle Mode="NextPrevAndNumeric" PageSizeLabelText="Page Size:" PageSizes="10,20,50" Position="TopAndBottom" PagerTextFormat="{4} {5:0,0} items in {1:0,0} pages" />

But on production, the counting of items and pages is behaving strange. For example, when i filter and sort or page to first or last page, the counting changes randomly and displays different numbers.

Can someone help me what must the issue?

I am binding the RadGrid with "asp:ObjectDataSource" (not using NeedDataSource event). I need to do this way, as this is an old code and cannot restructure everything for good reasons.

Please suggest.

 

 

 

 

A
Top achievements
Rank 1
 answered on 27 Sep 2016
2 answers
96 views

We have an application that relies heavily on Telerik controls and noticed with the most recent update (ASP.NET AJAX R3 2016) we have some rendering issues in Chrome. (See attached pictures). Firefox, IE, etc. are all fine. You can see that there is a significant amount of padding between the two checkboxes. 

This is only happening on our development environment and not our live environment. Is there something with this new update that would cause rendering issues in Chrome?

Dustin
Top achievements
Rank 1
 answered on 27 Sep 2016
10 answers
203 views
Hi,

I am using the RadPivotGrid to navigate a OLAP cube on Microsoft Analysis Service. The control connects to the cube through Adomd connection string.
I would like to retrieve the MDX query releated to my navigation. Is it possible?

Thanks in advance.
Trilochan
Top achievements
Rank 1
 answered on 27 Sep 2016
5 answers
172 views

When changing the properties of an image, an icon of a broken paperclip shows next to the height and width, which (if clicked) forces the proportions to be constrained.

Inside RadEditorProvider/App_LocalResources/RadEditor.Dialogs.resx, there is a Name of "SetImageProperties_Constrain" with a value of "Constrain".  However, the properties window is always not-constrained by default... and must be clicked each time.

Our website is hosted on DNN7, which by default contains the Telerik RadEditor.

Any ideas on how to set it to be constrained by default?

Thanks,

-Adam

Rumen
Telerik team
 answered on 27 Sep 2016
1 answer
1.0K+ views

In my web application I use a AsyncUpload to load the picture of each user to their personal page.
I need to limit the dimensions (height and width) of uploaded images.

How can I validate the height and width of the images before they are loaded? Or convert them to the dimensions I want?
I need images have the dimensions 150x100
I have the following code to validate file type and file size of uploaded images.

foreach (UploadedFile file in LogoUpload.UploadedFiles)
    {
        //string filetype = LogoUpload.PostedFile.ContentType;
        string filetype = file.ContentType;
        long filesize = file.ContentLength;
        byte [] input = new byte[filesize - 1];
 
        long maxFileSize = 1024;
 
        if (filesize > maxFileSize)
        {
            base.OnUIValidation("The file is too big.");
            return;
        }
 
        string[] acceptedFileTypes = new string[3];
        acceptedFileTypes[0] = "image/jpg";
        acceptedFileTypes[1] = "image/jpeg";
        acceptedFileTypes[2] = "image/jpeg";
 
        bool acceptFile = false;
 
 
        //should we accept the file?
        for (int i = 0; i <= 2; i++)
        {
            if (filetype == acceptedFileTypes[i])
            {
                //accept the file, yay!
                acceptFile = true;
            }
             }

I have aI have a RadUpload
Rumen
Telerik team
 answered on 27 Sep 2016
1 answer
1.1K+ views

Hi, I have an ascx file that contains a RadNotification and a timer.

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function OnClientUpdated(sender, args) {
                    sender.show()
                    $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("content");
                }
                function UpdateWithoutPopup() {
                    var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
                    ajaxManager.ajaxRequest(arguments);
                }
            </script>
</telerik:RadCodeBlock>
 
 
<telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server">
    <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="Timer1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadNotification1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
 
<asp:Timer ID="Timer1" runat="server" Interval="6000" OnTick="Timer1_Tick" />
 
 
 <telerik:RadNotification RenderMode="Lightweight" id="RadNotification1" runat="server" loadcontenton="EveryShow"
        width="300" height="150" animation="Fade" enableroundedcorners="true" enableshadow="true"
        title="Received messages" offsetx="-20" offsety="-20" onclientupdated="OnClientUpdated"
        titleicon="none" autoclosedelay="5000" Skin="Bootstrap">
        <ContentTemplate>
            <asp:Image ID="Image1" runat="server" CssClass="Max75" />
            <asp:Literal ID="lbl" runat="server"></asp:Literal>
        </ContentTemplate>
    </telerik:RadNotification>

the timer makes the checks and if necessary displays a popup, another calls a function

public void Timer1_Tick(object sender, EventArgs e)
{
        if (Check())
        {
            RadNotification1.Show();
        }
        else
        {
            string script = "UpdateWithoutPopup()";
            ScriptManager.RegisterStartupScript(Page, typeof(Page), "myscript", script, true);
        }
    }

When I show the popup everything works fine when if I call the error function I get the error:

default.aspx:502 Uncaught TypeError: Cannot read property 'ajaxRequest' of null

how do I fix?

thanks in advance

Eyup
Telerik team
 answered on 27 Sep 2016
1 answer
213 views
How do you get the EmptyMessage to show up when using password mode. It looks really funny when the username has the text in there but the password box is empty.
Rumen
Telerik team
 answered on 27 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?