Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
2.1K+ views
hey everyone,

How can i set a column's visibility to false?...I am using data table as radgrid's data source.

Thanks
Amit
Amit
Top achievements
Rank 1
 answered on 28 Oct 2010
1 answer
107 views
Is there a way to make the spell check control (RadSpell) appear over the top of a PDF file which is in an IFrame?  For some reason the window frame goes behind the adobe pdf viewer.  I know for RadWindow there is an overlay property, which works, but this doesn't seem to exist for the RadSpell control.  Is there just some css I need to add?
Rumen
Telerik team
 answered on 28 Oct 2010
1 answer
110 views
Hey everyone,

How can i avoid user to type in input area and only select the date though calender of date picker.Also when i click inside input area,calender does not open.How to do that?...

Thanks
Amit
Shinu
Top achievements
Rank 2
 answered on 28 Oct 2010
23 answers
437 views
Hi,

    Our client just reported a strange problem when trying to access SiteCollectionImages from Image Manager. Whenever a user tries to open the Image Manager, a SharePoint permission denied page will be displayed. We've checked that the site collection images and the local site's publishing images has the appropriate permissions, but to no avail.

    After some trial and error, we've found that the parent site of the current site requires the user to have contribute permission to resolve the issue. For example, /home/site1/subsite1. "site1" requires the user to have contribute permission here so that he/she can use Image manager in subsite1

    Our ConfigFile.xml
   
<configuration> 
  <property name="AllowScripts">True</property> 
  <property name="AllowThumbGeneration">True</property> 
  <property name="ConvertToXhtml">True</property> 
  <property name="EnableDocking">False</property> 
  <property name="ShowHtmlMode">True</property> 
  <property name="ShowPreviewMode">False</property> 
  <property name="StripAbsoluteAnchorPaths">False</property> 
  <property name="StripAbsoluteImagesPaths">True</property> 
  <property name="ToolbarMode">ShowOnFocus</property> 
  <property name="ToolsWidth">800px</property> 
  <property name="MaxImageSize">2097152</property> 
  <property name="CssFiles"
    <item>/Style Library/en-us/Core Styles/RadEditorStyle.css</item> 
  </property> 
    <property name="ImagesPaths"
    <item>SiteCollectionImages</item>    
    <item>PublishingImages</item> 
  </property> 
  <property name="ImagesFilters"
        <item>*.gif</item> 
        <item>*.jpg</item> 
        <item>*.jpeg</item> 
        <item>*.png</item> 
        <item>*.bmp</item> 
  </property> 
   <property name="Language">en-GB</property> 
 
</configuration> 


    Another note is that if we remove the "SiteCollectionImages" from the ImagePath in the ConfigFile.xml, the user will be able to access the Image Manager properly and doing vice vesa, user will not be able to access Image Manager when there's only SiteCollectionImages in the path. I've also tried upgrading the radeditor to 4.4.1 (currently using 3.4.2), but it did not solve the problem.

    Anybody has any idea on what could be wrong as we can't possibly give everybody contribute rights on every site.


Thanks & Regards.
JK

   
Stanimir
Telerik team
 answered on 28 Oct 2010
4 answers
169 views
Hi! I am using ListView on one page and displaying images with paging by query string which is the number of the category of images i want to show. Lately, very often but not allways, when i click next on the pager, instead of the next images from the current category, i get images from an other category despite the fact that the query string is still the same. 
I am assuming the problem is because i am displaying different categories on one same .aspx page, and somehow the images are cached or something. Can you help me?
Vasja Petkovska
Top achievements
Rank 1
 answered on 28 Oct 2010
1 answer
124 views
Dears,
I have a Radgrid with EditMode="EditForms"
I want to prevent user from adding new record and editing another one simultaneously, I managed to check if grid has an Edit Items by using

grd.EditItems.Count. But I did not manage to check if grid has new Insert row when user try to click on GridEditCommandColumn to edit another row.

 

 

 

Princy
Top achievements
Rank 2
 answered on 28 Oct 2010
3 answers
120 views
Hi
i create the Edit from in the Codebehind, like that:
RadGridDataList.MasterTableView.EditFormSettings.EditFormType = GridEditFormType.WebUserControl;
RadGridDataList.MasterTableView.EditFormSettings.UserControlName = editViewer.ViewControl;
RadGridDataList.MasterTableView.EditFormSettings.PopUpSettings.Width = new Unit(PopUpSettingsWidth);
RadGridDataList.MasterTableView.EditFormSettings.PopUpSettings.Modal = true;

If i do that, the hole windows is locked alsow the edit form. Did anybody a idee whats worng?

Regards Markus
Dimo
Telerik team
 answered on 28 Oct 2010
3 answers
587 views
Hi.
I have grid where i want to set the column width for each column. I used the headerstyle-width and itemstyle-width for a column. Column width is set correct when the record is not in insert or edit mode. But in insert or edit mode, the column width is changing.  I have tried a lot of things, like not have a grid width, set the TableLayout to fixed, different combination of ItemStyle-width and HeaderStyle-width etc. unsuccessfully. So how can i set the column width for insert/edit mode?

the code i am using:
     <telerik:RadGrid ID="RadGrid2" runat="server" DataSourceID="LinqDataSource1" GridLines="None" Width="360px" >
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="EmployeeCompanyNumber" DataSourceID="LinqDataSource1" CommandItemDisplay="Top">
        <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
        <RowIndicatorColumn><HeaderStyle Width="20px"></HeaderStyle></RowIndicatorColumn>
        <ExpandCollapseColumn><HeaderStyle Width="20px"></HeaderStyle></ExpandCollapseColumn>
        <Columns>                    
            <telerik:GridNumericColumn  ItemStyle-Width="70px" HeaderStyle-Width="80px" FilterControlWidth="90%" DataField="EmployeeCompanyNumber" DataType="System.Int32" HeaderText="Foretaksnr." SortExpression="EmployeeCompanyNumber" UniqueName="EmployeeCompanyNumber">
            </telerik:GridNumericColumn>
            <telerik:GridBoundColumn ItemStyle-Width="190px" HeaderStyle-Width="200px" FilterControlWidth="90%" DataField="Name" HeaderText="Navn" SortExpression="Name" UniqueName="Name" >
            </telerik:GridBoundColumn>
            <telerik:GridEditCommandColumn HeaderStyle-Width="140px" >
            </telerik:GridEditCommandColumn>
            <telerik:GridButtonColumn HeaderStyle-Width="40px" CommandName="Delete">            
            </telerik:GridButtonColumn>                   
        </Columns>
        <EditFormSettings><EditColumn UniqueName="EditCommandColumn1"></EditColumn></EditFormSettings>
        </MasterTableView>
    </telerik:RadGrid>

 



            
Dimo
Telerik team
 answered on 28 Oct 2010
5 answers
751 views
I have 2 drop downs publisher and heading. If I change the publisher and  select a heading with  a different value but the same text as the previously selected heading the selected value does not update. But if I select a completely different heading with different text and value it works fine.

Here is my code


function PublisherChanged(combo, eventArqs)
{   
    directories.clearSelection()
    headings.clearSelection();
    directories.clearItems(); 
    headings.clearItems(); 
    directories.requestItems('',false);
    headings.requestItems('',false);
                   
}



  private void PopulateHeadings(string publisherName, string text)
        {
          
            if (publisherName == "") return;
            DataTable data = GetHeadings(publisherName, text);
            bool noResults = false;
            if (data.Rows.Count == 0)
            {
                noResults = true;
                DataRow row = data.Rows.Add();
                row["value"] = "[No Results]";
                row["Id"] = "0";
            }

            headings.DataSource = GetTopN(data, 15);
            headings.DataTextField = "value";
            headings.DataValueField = "Id";
            headings.DataBind();


            if (noResults)
            {
                headings.Items[0].Enabled = false;
            }
         
        }

Is the a bug in the control or am I using the control incorrectly?
Kalina
Telerik team
 answered on 28 Oct 2010
1 answer
84 views
Hello,
I have a RadTreeView that has ExpandMode "TreeNodeExpandMode.ServerSideCallBack". I want to open branches and select a node client-side via Javascript. Is there any example on how to do this?

My target is to refresh the tree after an user right click action on a node. After the right click, I'll do a postback and refresh the tree and reselect the node also opening branches to reach selected node.
Nikolay Tsenkov
Telerik team
 answered on 28 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?