Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
42 views
ItemCreated and ItemDataBoun Cost 2 seconds(50 Items) when I Created a Column dynamic on server side in Page_Load event.

whui
Top achievements
Rank 1
 answered on 13 Jan 2011
8 answers
442 views
Hi Telerik,

I am using Radgrid Q2 2010, VS 2005. I am binding the grid with more than 40000 records. First time i am binding only distinct values in each column, so the number of records is comparatively less. Then when i filter the grid,  I perform the filter on the 40000 records, and after filter it may contain a minimum of 35000 records. When i rebind the grid with the filtered result, sometimes it throws this error 
" htmlfile: Could not get the value property. Not enough storage is available to complete this operation." Or sometimes the browser is not responding and gets closed.

Please reply me asap. Its a very urgent requirement.

Thanks
Bidhan
Top achievements
Rank 2
 answered on 12 Jan 2011
4 answers
448 views
Hi,
How Can i Show preview image when select file from dialogbox and then click button for save.
i tried telerik 'change avatar ' examp it working for show but i cant save image. when i try save file always error
'''' The process cannot access the file because it is being used by another process. '''
My code below

'show image with ajax

 


Protected
Sub AsyncUpload1_FileUploaded(ByVal sender As Object, ByVal e As Telerik.Web.UI.FileUploadedEventArgs) Handles AsyncUpload1.FileUploaded

 

Thumbnail.Width =

 

Unit.Pixel(200)

 

Thumbnail.Height =

 

Unit.Pixel(150)

 

 

 

Dim imageData As Byte() = New Byte(e.File.InputStream.Length) {}

 

e.File.InputStream.Read(imageData, 0, e.File.InputStream.Length)

Thumbnail.DataValue = imageData

 

 

End Sub

 

'save image

 


Protected
Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click

 

 

 

    For Each f As Telerik.Web.UI.UploadedFile In AsyncUpload1.UploadedFiles

 

    f.SaveAs(

 

"c:\a.jpg", True)

 

 

 

    Next

 

 

 

End Sub

 


thanks
majid
Top achievements
Rank 1
 answered on 12 Jan 2011
1 answer
65 views
Hi There,

I recently migrated to the RadPanelBar from an old ASP.net Accordion Bar. My previous Accordion Bar had a built in setting called ContentCssClass for the content INSIDE the Panel itself. Unfortunately on the RadPanelBar I am having difficulty finding anything remotely close to this setting.

I have tried applying style to the <ContentTemplate>  and also tried adding extra <div>'s to apply style to the Inner Content but to my demise none of these worked properly.

Is there a simple way to apply style to the inside of a PanelItem that I'm missing?

Image: The attached image shows an example of the Panel I am trying to apply style to.
Landon
Top achievements
Rank 2
 answered on 12 Jan 2011
14 answers
254 views
Hi,
 I am using the radcalendar in my page. if i click on the particular date on the calendar, need to open small window, i did that, in that window i have textbox , ok button in that if i enter some value in the textbox, after click ok, it should be displayed in the previous page(calendar page) on the particular date. tell me how to do this?
Brown
Top achievements
Rank 1
 answered on 12 Jan 2011
3 answers
67 views
I am attempting to create  a tabstrip which has various buttons, but only for the selected tab...

the only way i can see of doing that is doing something similar to this tutorial here:

http://www.telerik.com/help/aspnet-ajax/create-closable-tabs-client-side.html

I have done essentially the same thing, however I have added the function RemoveImage(tab, divName) which is being called from the ClientTabUnselected event of the tabstrip.

The relevant javascript is shown below:

var tabStrip1;
 
        function OnClientLoad() {
            tabStrip1 = $find('<%= RadTabStrip1.ClientID %>');
 
            for (var i = 0; i < tabStrip1.get_tabs().get_count(); i++) {
                if (tabStrip1.get_tabs().getItem(i).get_value() != "addTab") {
                    AttachCloseImage(tabStrip1.get_tabs().getItem(i), "Images/TabStrip/toggle.png", i);
                }
            }
        }
 
        function CreateTabImage(ImageUrl) {
            var closeImage = document.createElement("img");
            closeImage.src = ImageUrl;
            closeImage.alt = "close";
            return closeImage;
        }
 
        function AttachCloseImage(tab, closeImageUrl, index) {
            var closeImage = CreateTabImage(closeImageUrl);
            closeImage.AssociatedTab = tab;
            closeImage.setAttribute("id", "_closeImageDiv_" + index);
            closeImage.onclick = function (e) {
                if (!e) e = event;
                if (!e.target) e = e.srcElement;
 
                deleteTab(tab);
 
                e.cancelBubble = true;
                if (e.stopPropagation) {
                    e.stopPropagation();
                }
 
                return false;
            }
            tab.get_innerWrapElement().appendChild(closeImage);
        }
 
        function RemoveImage(tab, divName) {
            var element = tab.get_innerWrapElement();
            var img = element.getElementById(divName);
            element.removeChild(img);
        }
 
        function TabUnselected(sender, eventArgs) {
            RemoveImage(eventArgs.get_tab(), "_closeImageDiv_" + tabStrip1.get_tabs().indexOf(eventArgs.get_tab()));
        }


the RemoveImage() function does not work for some reason... and I am not sure what it is.

as far as i can tell, the parameters are correct, I think perhaps it has to do with me finding the right parent container.

any help would be much appreciated! thanks.
Felipe
Top achievements
Rank 1
 answered on 12 Jan 2011
4 answers
281 views
Hi,

I'd like to be able to calculate some aggregate values and set the footer client side. 

I've got a reference to the footer object on the client using the method: get_masterTableViewFooter().

However, i can't work out how to get a reference to individual cells within this object.  Your Client API documentation doesn't seem to cover the footer object.

Can you tell me how to accomplish the following, client side:

footerItem["percentageOfTrades"].Text = TotalTradePct.ToString("N0");

Thanks



Andrew Ross
Top achievements
Rank 1
 answered on 12 Jan 2011
2 answers
77 views
Hello,

In my website, I am planning to have one outer shell, TabStrip in the inner shell for the links and side panes. Pretty much like how outlook is.
An example of what I'm looking for is: http://tinyurl.com/6le5hv2

Apart from TreeView & Tab Strip, could somebody please post a list of other controls which I would be using to create this web application? 
If this has already been created, then I would highly appreciate if you could post some demo links.

Thanks
Raj  ext Menu
Raj
Top achievements
Rank 1
 answered on 12 Jan 2011
6 answers
302 views
i am using version 7.1.2.0 of the editor

i am trying to set the default font dropdown, right now it always shows new times roman even when i don't have that selection in the dropdown.

I've tried the code i foudn in other threads:

var tool = editor.GetToolByName("FontName");
if (tool)
{
    tool.set_value("Arial");
}

but i get a "Object does not support this proeprty or method" error.

I've tried Set_value(), setValue(), SetValue(), even UpdateValue() and its variation i saw somewhere. Some doesn't throw an error, but does not set the default value.
Jon Shipman
Top achievements
Rank 1
 answered on 12 Jan 2011
1 answer
193 views

Hello Group,

We are using RADGrid (RadControls for ASP.NET AJAX Q1 2010) . We have some static columns defined in .ascx file and also adding columns (GridBoundColumn) dynamically in code behind.
We are binding data for  dynamic columns using RadGrid_ItemDataBound event. When we try to enable paging on the grid, it behaves ackwardly. My doubt it is happening because of dynamic column.
Can you let us know for dynamic columns , paging needs to be handled in a custom manner  or RadGrid supports that? 

Appreciate your help. 

Thanks,
Vikas Baid

Pavlina
Telerik team
 answered on 12 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?