Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
56 views
Hi all

In rad grid the data with in the tags is not displaying I have given ValidateRequest=false as u guys suggested in one of the forums but it is not displaying any suggestions 

And in firefox the filtering icons are getting overlapped with other columns i have tried setting Header style width for each column separatly but it is effecting another browsers i havw also trid setting TableLayout=fixed but no use any suggestions how to get overrid of that.
Radoslav
Telerik team
 answered on 03 Feb 2010
1 answer
91 views
I'm using Q3 2009 SP2

Does SortedBackColor (in SortingSettings) work with client-side data binding using GetBindingData() ?  I'm using GetBindingData() in a web service, and all works great including sorting the data, but I can't get SortedBackColor to work.  If this property is not available with client-side databinding, is there another way to do it?

Thanks.
Radoslav
Telerik team
 answered on 03 Feb 2010
8 answers
290 views
Hi everyone,

I have a grid composed of 3 columns. Each row is in edit mode by default, edit mode is inplace.
1-column input is a template column
2-column value is a boundcolumn
3-column result is a calculated column no expression defined nor datafields

only column input is editable. I create a template with a numerictextbox.
What I would like to do is to update the calculated column when the user ente a value in the column input with the calculation:

        value/input*100

I am not sure I need a calculated column or if a read only regular textbox would be enough.

thank you
regis
Top achievements
Rank 1
 answered on 03 Feb 2010
2 answers
170 views
How to define backcolor for items and alternating items in a self hierarchical grid ?

Actually I'm doing this in page_load and it's not working fine (please see image in attachment)

if (RadGrid1.MasterTableView.DetailTables != null)
        {
            RadGrid1.MasterTableView.DetailTables[0].AlternatingItemStyle.BackColor = System.Drawing.Color.Azure  ;
            RadGrid1.MasterTableView.DetailTables[0].ItemStyle.BackColor = System.Drawing.Color.BlanchedAlmond;

            if (RadGrid1.MasterTableView.DetailTables[0].DetailTables[0] != null)
            {
                RadGrid1.MasterTableView.DetailTables[0].DetailTables[0].AlternatingItemStyle.BackColor = System.Drawing.Color.Azure;
                RadGrid1.MasterTableView.DetailTables[0].DetailTables[0].ItemStyle.BackColor = System.Drawing.Color.BlanchedAlmond;
            }
        }

as I have a sqldatasource with automatic generated columns, I can't define styles in aspx ... 

I also can't define a different image for expanded image. As I have this in code :
         button.CssClass = (item.Expanded) ? "rgCollapse" : "rgExpand";
... I tried to put this in aspx but it doesn't work :
       .rgExpand  
        {  
          background:url('Images/CollapsedButton.gif') center no-repeat;       
        }  
      
       .rgCollapse  
        {  
          background:url('Images/ExpandedButton.gif') center no-repeat;  
        }  

I tried everything but the collapse/expand button doesn't change :

        <telerik:RadGrid ID="RadGrid1" OnPreRender="RadGrid1_PreRender" runat="server" DataSourceID="SqlDataSource1"  OnColumnCreated="RadGrid1_ColumnCreated"
            OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound" Width="100%">
            <MasterTableView  HierarchyDefaultExpanded="false" EnableNoRecordsTemplate="false" HierarchyLoadMode="ServerBind" AllowSorting="true" Width="800px"
                DataKeyNames="EmployeeID" ExpandCollapseColumn-ButtonType="ImageButton" 
ExpandCollapseColumn-Display="true"
ExpandCollapseColumn-ExpandImageUrl="Images/CollapsedButton.gif" 
ExpandCollapseColumn-CollapseImageUrl="Images/ExpandedButton.gif">
                <ItemStyle Wrap="false" Width="200px" BackColor="Azure" Height="17px" BorderWidth="1"/>
                <AlternatingItemStyle Wrap="false" BackColor="BlanchedAlmond" Width="200px" Height="17px" BorderWidth="1"/>
                <HeaderStyle Wrap="false" Width="1500px" Height="20px"/>
                
                <SelfHierarchySettings ParentKeyName="ReportsTo" KeyName="EmployeeID"/>                
                
            </MasterTableView>
            
            <ClientSettings AllowExpandCollapse="true" EnablePostBackOnRowClick="true">            
            </ClientSettings>
        </telerik:RadGrid>
RadTony
Top achievements
Rank 1
 answered on 03 Feb 2010
1 answer
125 views
Hi,

I want to enable creation of new folders in the RadFileExplorer. For this I set the property accordingly on control creation:

        private RadFileExplorer CreateAndInitializeExplorer() 
        { 
            RadFileExplorer explorer = new RadFileExplorer() 
            { 
                EnableViewState = true, 
                VisibleControls = FileExplorerControls.All ^ FileExplorerControls.AddressBox, // only disable AddressBox. show everything else 
                Width = 900.Pixel(), 
                EnableCreateNewFolder = true, 
                EnableCopy = false 
            }; 
 
            explorer.Load += Explorer_OnLoad; 
            explorer.PreRender += Explorer_PreRender; 
 
            explorer.Configuration.ContentProviderTypeName = typeof(MyContentProvider).AssemblyQualifiedName; 
 
            string[] basePath = MyContentProvider.GetRootsPaths(); 
            explorer.Configuration.ViewPaths = basePath; 
            explorer.Configuration.UploadPaths = basePath; 
            explorer.Configuration.DeletePaths = basePath; 
 
            return explorer; 
        } 

Still, the toolbar and context menu items to create a new Folder are not displayed. All DirectoryItems (that is really every single Item) that are provided from MyContentProvider have the following permissions set:
private const PathPermissions FULL_PERMISSIONS = PathPermissions.Read | PathPermissions.Delete | PathPermissions.Upload; 

So there should be no problem with the permissions of the item.

Please help me to get this sorted out. I need the Create New Folder functionality available for my users.

Regards,

   Sebastian
Sebastian
Top achievements
Rank 2
 answered on 03 Feb 2010
1 answer
146 views
When loading large html file in RadEditor,there are browser issues. It runs very slow, CPU utilisation goes up very high and warning issued. Image attached.

Any Ideas Please?

Rumen
Telerik team
 answered on 03 Feb 2010
1 answer
152 views

Hello
I am trying to add dock control to my web page.My web page has a vald asp.net 3.5 scriptmanager. but it has started to give this error :
The control with ID 'RadDockZone1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

I am pretty sure there is a scriptmanager on the page.I tired to set RegisterWithScriptManager="false" property and try again.But  after that ,it throwed that error 


Unable to cast object of type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection' to type 'System.Web.Configuration.ScriptingScriptResourceHandlerSection'.


I searched internet ,it was suggested  to change webconfig ajax part like this to solve this problem :

   <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
       <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>

      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
      </dependentAssembly>  
    </assemblyBinding>
  </runtime>


I did it ,but it did not work still same error given ,any idea ?

Thanks in advance

Pero
Telerik team
 answered on 03 Feb 2010
2 answers
244 views
How can I set focus on the listbox on page load.  I have plenty of methods and nothing seems to work.

Is there something I am missing?
Robert
Top achievements
Rank 1
 answered on 03 Feb 2010
2 answers
202 views
I've been trying to get either the client-side or server-side functionalities of the drag/drop option of the listbox to drop into a RadEditor, but nothing seems to be working... any advice would be appreciated. Thanks.

P.S. I'm not even 100% sure this is possible... but I'm 100% hoping it is.
Xorcist
Top achievements
Rank 1
 answered on 03 Feb 2010
2 answers
115 views
Hi,

I have a LinkButton outside of RadGrid for triggering Export to Excel.

 

 

 

 

public

 

void LinkButtonExportToExcel_click(object sender, EventArgs e)

 

{

 

int rowCount = RadGridProduct.Items.Count;

 

 

if (rowCount <= 0) { return; }

 

RadGridProduct.ExportSettings.ExportOnlyData =

true;

 

RadGridProduct.ExportSettings.IgnorePaging =

false;

 

RadGridProduct.ExportSettings.OpenInNewWindow =

true;

 

RadGridProduct.MasterTableView.ExportToExcel();

}

It worked fine before but not now. After I clicked the LinkButton, no Excel opened in the new window and my RadGid had lost all of Filter controls and other controls inside ItemTemplates. Am I missing something?

 

Thanks,

Enoch

 

 

 

Enoch Kuang
Top achievements
Rank 1
 answered on 03 Feb 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?