Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
162 views
Hi,

I'm using the following code behing at the send form button click event in order to check if my RadUpload has at last 1 file to be uploaded, this works fine in IE but not in Firefox that display the error message each times.

Dim CheckNbrPics As Integer = 0

 

For Each file As UploadedFile In RuPhotos.UploadedFiles

 

CheckNbrPics = CheckNbrPics + 1

 

Next file

 

 

If CheckNbrPics = 0 Then

 

MyFormValid =

False

 

sbError.Append(

"<li class=""Error"">Error text</li>")

 

 

End If

The files are saved in a second time.

I would like to keep this validation in the logik of my code behing, is it possible ?

It seems that FF download 1st the files and play the code after this, IE not.

Any idea to fix it ?

Thanks,


Herve

 

 

 

 

Veselin Vasilev
Telerik team
 answered on 14 Apr 2010
3 answers
124 views
I have been using a custom dll for the skin registration and all has been working well until I tried to add teh RadEditor to my page.

The skin doesn't seem to get added to the WebResourceFile when I look at it in fiddler.  All the other controls work just fine.

Any suggestions.

Attached is my skin project layout.
T. Tsonev
Telerik team
 answered on 14 Apr 2010
1 answer
110 views
Hello,
We are using the code below to Hide / Show MenuItems when a grid item is selected. We noticed the RadMenu.TrackChanges / RadMenu.CommitChanges is a huge hit on performance and seems to get worse the more times it is called untill the page just eventually freezes. Any clues as to whether this is a memory leak or what?

function FilterGridMenu(commands, primaryKeyID, claimID, claimantID, claimNumber, jurisdiction, attachmentModuleName)  
{  
    var gridMenu = $find("<%= rmGridActions.ClientID %>");  
    if(gridMenu.get_enabled())  
     {  
        //gridMenu.trackChanges();  //COMMENTED OUT BECAUSE ITS A HUGE MEMORY HOG  
              
        //Reset GridMenu Items and Values  
        var menuItems = gridMenu.get_allItems();  
        for (var i=0; i < menuItems.length; i++)  
        {  
            if(menuItems[i].get_text() != 'Grid Actions')  
            {  
                 menuItems[i].hide();  
                 menuItems[i].set_value(primaryKeyID);  
             }  
                          
            var menuItemText = menuItems[i].get_text();  
            if(menuItemText == 'Object Payment')  
            {  
                var paramValue = primaryKeyID + '|' + claimID + '|' + claimantID + '|' + claimNumber + '|' + jurisdiction;  
                menuItems[i].set_value(paramValue);  
            }  
            else if(menuItemText.indexOf('Add') > -1 && menuItemText.indexOf('Attachment'))  
            {  
                var paramValue = attachmentModuleName + '|' + primaryKeyID + '|' + claimantID + '|' + claimNumber;  
                menuItems[i].set_value(paramValue);  
            }  
        }  
                      
        //Apply Commands list to hide or disable Context Menu Items  
        var arrayCommands = commands.split('|');  
        for (x in arrayCommands)  
        {  
           var menuText = arrayCommands[x];  
           if(menuText.length > 0)  
           {  
               var menuItem = gridMenu.findItemByText(menuText);  
               if(menuItem != null)  
               {  
                  menuItem.show();  
               }  
           }  
        }  
        //gridMenu.commitChanges(); //COMMENTED OUT BECAUSE ITS A HUGE MEMORY HOG  
    }  
}            
T. Tsonev
Telerik team
 answered on 14 Apr 2010
1 answer
162 views
Hello,

We have a custom skin that we use for our app.  Right now, all of the styles are in the app_themes folder, but I'd like to manually manage the files.  I was wondering if the stylesheet manager can point to a directory I specify and manage the registering of links for me, as the folder has the standard setup for the skin...

I saw an example of using attributes for a class and registering this, but I don't want to have to do that for all the styles because I do follow the standard layout and do not embed them in the assembly.

Thanks.
T. Tsonev
Telerik team
 answered on 14 Apr 2010
0 answers
67 views
I am using radcontrols for asp.net ajax  2009 Q2 .
Every thing working  fine on the development machine(windows xp sp2)
While deploying it on win 2003  server some pages with rad controls working fine .
But when loading some pages it giving me error like
Type 'Telerik.Web.UI.GridBoundColumn' does not have a public property named 'ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
on the server
Please help me on this

Sadik
SADIK KMK
Top achievements
Rank 1
 asked on 14 Apr 2010
5 answers
135 views
Hi,

I have a three RadEditors to edit 3 Fields in a database record.
My Toolbar is generated from a Tools.xml file.

Following your tips for better performance I use "ToolProviderID" - and yes I got the same toolbar on all three editors.
BUT - only the first one (with the ToolsFile=) has content in the "Custom Links" and "Snippets" dropdown.
The other editors also have the toolar items - but the dropdowns are empty.

I wanted to check if this is a fault of mine via http://demos.telerik.com/aspnet-ajax/editor/examples/toolprovider/defaultcs.aspx
BUT - unfortunately on this page both (Links, Snipptes) are empty in every case.

So I set up a blank solution - with a single page containing only two editors - and it still has empty dropdowns.
So I guess this is some kind of bug.
I have the same issue with IE7 and Firefox,

Regards

Manfred
Rumen
Telerik team
 answered on 14 Apr 2010
3 answers
126 views
I'm trying to get jquery to work w/ my treeview, but no luck so far.
I simply want to prevent the nodes from collapsing, what i have so far:

 $telerik.$(document).ready(function() {
            $('#RadTreeView1')
                .OnClientNodeCollapsing(function() {
                    this.set_cancel(true);
                });
        });


ideas?  Thanks!
T. Tsonev
Telerik team
 answered on 14 Apr 2010
2 answers
293 views
Hi,

I have this example : 

                    <telerik:GridDateTimeColumn
                        DataField="fecha_seguimiento"
                        HeaderText="SEGUIMIENTO" SortExpression="fecha_seguimiento"
                        UniqueName="fecha_seguimiento" PickerType="DatePicker"
                        FilterControlWidth="110px" DataFormatString="{0:dd/MM/yyyy}"
                        DataType="System.DateTime" >
                    </telerik:GridDateTimeColumn>

When I  filter for this date colum, it's works perfectly if all records have information, but if a record contains NULL I get the following error:

Línea : 6
Error : Sys.WebForms.PageRequestManagerServerErrorException: La conversión especificada no es válida.

How or where I can specify in the filter that this column may contain null or date and work it.

Thanks!
Alex Jimenez
Top achievements
Rank 1
 answered on 14 Apr 2010
1 answer
96 views
Hi
    When I drag item from Treeview to grid the size of grid is shrinking.
How to avoid this.
   I have attached image.

Yavor
Telerik team
 answered on 14 Apr 2010
7 answers
539 views

Hello,

(I am using the Q3 2008 release of the ASP.NET ajax components)

I have a RadGrid with "EnablePostBackOnRowClick" enabled. I only want this postback to occur in certain situations though. In the older versions of the RadGrid, I could have a javascript handler that did t his:

function radGrid_RowClick(sender, eventArgs)

{

    eventArgs.set_cancel(true);

}

But, this does not work with the Q3 2008 release. What is the equivalent functionality?

Kind regards,

Andy

Princy
Top achievements
Rank 2
 answered on 14 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?