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

I have the searchbox populating a radlistview with items that match the search -- which works great.

Initially, when the user is brought to the default view, all items are populated in the radlistview.  What I'd like to be able to do is check to see if they click the 'X' button in the search box, which would re-populate the radlistview will all items -- basically reverting back to the initial stage.

Any ideas?

Plamen
Telerik team
 answered on 06 Aug 2013
2 answers
210 views

I am currently attempting to modify the way my radgrid displays data by highlighting specific rows which has went over my "overdue" limit. here's a snippet of the methods i am using..

ASPX

<telerik:GridBoundColumn DataField="TimeCreated" HeaderText="Posted On" ReadOnly="true" UniqueName="TimeCreated"/>

C# Method1

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        GridDataItem dataItem = e.Item as GridDataItem;
 
        string time = dataItem["TimeCreated"].Text;
        DateTime timePosted = DateTime.Parse(time);
        TimeSpan allowance = new TimeSpan(0, 25, 0);
        DateTime overdue = timePosted.Add(allowance);
 
        if (DateTime.Now > overdue)
        {
            dataItem.ForeColor = System.Drawing.Color.LightPink;
            dataItem.Font.Bold = true;
        }
    }

C# Method 2

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        GridDataItem dataItem = e.Item as GridDataItem;
        TimeSpan allowance = new TimeSpan(0, 25, 0);
 
        if (DateTime.Compare(Convert.ToDateTime(dataItem["TimeCreated"].Text).Add(allowance), DateTime.Now) > 0)
        {
            dataItem.ForeColor = System.Drawing.Color.LightPink;
            dataItem.Font.Bold = true;
        }
    }

C# Method 3

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        GridDataItem dataItem = e.Item as GridDataItem;
        TimeSpan allowance = new TimeSpan(0, 25, 0);
 
 
        if (DateTime.Parse(dataItem["TimeCreated"].Text).Add(allowance) > DateTime.Now )
        {
            dataItem.ForeColor = System.Drawing.Color.LightPink;
            dataItem.Font.Bold = true;
        }
    }

All of these methods produces the same exact NullReferenceException which is unfathomable to me, i hope someone could shed some light on this. thanks

Bernard
Top achievements
Rank 2
 answered on 06 Aug 2013
3 answers
81 views
Hello,

FYI - We recently downloaded the latest Q2 '13 Telerik update and noticed a problem with RadTextboxes and versions of IE before IE9 (and using IE compat mode in IE9 and 10). Basically, the width calculation of the textboxes were off if you used % width on the mark up (e.g <telerik:RadTextBox ID="MyTextBox" Width="100%" runat=server">.

I traced it to be an issue with the internal _reducePixelWidthByPaddings() function. What was happening is that this function was being called multiple times (I think 5) as part of the load/repaint() process. As a result, the width of the text box was getting smaller and smaller each time. To fix, I put the following client-side code in:

if (typeof (Telerik) != "undefined" && typeof (Telerik.Web.UI.RadInputControl) != "undefined")
{
Telerik.Web.UI.RadInputControl.prototype._origReducePixelWidthByPaddings = Telerik.Web.UI.RadInputControl.prototype._reducePixelWidthByPaddings;
Telerik.Web.UI.RadInputControl.prototype._reducePixelWidthByPaddings = function ()
{
if (!this._reducedPixelWidthFlag)
this._origReducePixelWidthByPaddings();
}
}

Reporting this in hopes that a proper fix makes it into a future release.

Thanks,

- Mike Oliver
Galin
Telerik team
 answered on 06 Aug 2013
1 answer
143 views
Hi,
I am using Radgrid, Freezing columns was not working on page load, after page is posted back its works fine. Can you suggest me the solution for this issue. Or Can u suggest me the root cause for this?
I am using the below code:
<ClientSettings ReorderColumnsOnClient="false" ClientEvents-OnKeyPress="RaiseCommand">
                <Selecting AllowRowSelect="true" />
                <ClientEvents OnRowClick="fnGridRowClick" OnRowMouseOver="fnGridRowMouseOver" />

                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="3"
                    ScrollHeight="600px" />

                <Resizing EnableRealTimeResize="false" ResizeGridOnColumnResize="false" AllowColumnResize="false"
                    AllowResizeToFit="false"></Resizing>
            </ClientSettings>
Princy
Top achievements
Rank 2
 answered on 06 Aug 2013
0 answers
70 views
[redacted]

Sorry, please remove this post.
Derek
Top achievements
Rank 1
 asked on 06 Aug 2013
1 answer
348 views
Im creating dynamic height for my treeview based on clients resolution but I cant seem to find any documentation on how to set height on client side. set_height(); its not working when I used it. I also did set the height to 100% so it will just follow its container size but its not working also. Same problem with RadMultiPage, I cant set its height as well and it does not follow its container size.  Any code that I can use?

Thanks in advance,
RJ
Boyan Dimitrov
Telerik team
 answered on 06 Aug 2013
1 answer
75 views

Hi,

I have three rad windows having RadAsynUpload functionality, for three buttons

Can I have one RadWindow having RadAsyncUpload but it should be accessible to all the three buttons
and the file path and file name should be returned to manipulate that file?

Pls help

Hristo Valyavicharski
Telerik team
 answered on 06 Aug 2013
1 answer
85 views
Is there a roadmap for the TileList?

The EnableDragAndDrop behavior is present, but with no client or server-side events for it.  When will this be available?

Marin Bratanov
Telerik team
 answered on 06 Aug 2013
1 answer
60 views
Hi,

Actually (08/06/2013) minimize button at RadWindow MDI Demo not work properly:

http://demos.telerik.com/aspnet-ajax/window/examples/radwindowandmdi/defaultcs.aspx

What i can do?

Regards,

Milko

P.D. Work first time click only or not work at all (Chrome, IE)
Marin Bratanov
Telerik team
 answered on 06 Aug 2013
1 answer
89 views
I am using Q1 2011 RadWindow. The value being returned from the RadWindow is a string array. However, the ajaxRequest method being called on the parent page is changing the string array to [object Object] as the argument of the AjaxRequestEventArgs in the c# code.

This used to work fine when using the Q1 2008 version when using ClientCallBackFunction, but have now had to change to OnClientClose.

How do I get my values out of this object in my c# code?

Thanks
Marin Bratanov
Telerik team
 answered on 06 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?