Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
1.0K+ views
I find that the RadUploadTemp folder is not being cleaned up. I have the various files RadAsyncUpload creates in that folder from months ago. Is this expected behavior? If so, is there a way to get the files to be cleaned up in some automatic fashion, or do I need to write some custom code to go in and delete files older than a certain time?
Dimitar Terziev
Telerik team
 answered on 07 Mar 2012
3 answers
156 views
Is it possible to localize web parts included in SAK? I tried to create my own language resource file but web part fails to use it.

What I did was follow documentation on localizing RadGrid. I created a copy of SPRadGrid.Main.resx from C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q1 2012\App_GlobalResources for my language, translated its contents, finally copied the file to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\6.3.0.0__1f131a624888eeed\Resources\App_GlobalResources as well.
I did iisreset and nothing happened.

Am I missing something?
Marin
Telerik team
 answered on 07 Mar 2012
1 answer
158 views
Hello,
Using the combox box and populating it from the code behind, where I'm accessing our DAL. Its working ok, however there is no value field being rendered out to the HTML. So when it submits I'm getting the Text field submitted  for example '16th century' when I need the value field i.e. '34' (its id number). 
Here is a snippet of the rendered HTML:
<li class="rcbItem ">15th century</li><li class="rcbItem ">16th century</li>

Can some please explain why the ID field is not being rendered out here?
Many thanks,
Alan



Front End:
<label for="radComboPeriod">Time Period: </label>
            <telerik:RadComboBox ID="radComboPeriod" Width="300px" Height="140px" EmptyMessage="Type a Period" runat="server">
            <ExpandAnimation Type="OutBack" Duration="300" />
            <CollapseAnimation Type="InBack" Duration="300" />
            </telerik:RadComboBox>


Code Behind:

protected void Load_Periods(bool valpass)
        {
            //--   Create the connection- get the details and render them to the Datagrid.
            p2pDAL crudopsDAL = new p2pDAL();
            DataTable result = crudopsDAL.select_periods(); //use method to return all the cats 
            if (!IsPostBack)
            {
                radComboPeriod.DataSource = result;
                radComboPeriod.DataValueField = "PeriodID";
                radComboPeriod.DataTextField = "Period";
                string rebindValPer = (string)(Session["Period"]);
                if (valpass == false && rebindValPer != "Type a Period")
                {
                    radComboPeriod.SelectedValue = rebindValPer;
                }
                radComboPeriod.DataBind();
            }
        }
Ivana
Telerik team
 answered on 07 Mar 2012
1 answer
76 views
I have the following .aspx code in my page. When I have the LoadingPanelID on the AjaxUpdatedControl line, my grid flashes when paginating/sorting. What I mean is that it disappears and re-appears with the grid in the right page. If I take off the LoadingPanelID, the grid paginates/sorts/filters correctly but without the flash. Am I doing something wrong? My telerik version is 2009.3.1314.20.

 

 

<form id="frmSubVersionMaintenance" runat="server">

 

 

 

 

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">

 

 

 

</telerik:RadStyleSheetManager>

 

 

 

 

<uc1:UcHeader ID="UcHeader" runat="server" />

 

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

 

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="rgGeography">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="rgGeography" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

 

</telerik:RadAjaxManager>

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" />

 

 

 

<table cellpadding="0" cellspacing="0" border="0" width="800px">

 

 

 

<tr>

 

 

 

<td style="width:50%" class="BlackHeaders8ptBoldNoUnderline" align="right"><asp:Label ID="lblSubVersion" runat="server" Text="Sub-Version:"></asp:Label>&nbsp;</td>

 

 

 

<td style="width:50%" class="BlackHeaders8ptBoldNoUnderline" align="left"><telerik:RadTextBox Width="200px" MaxLength="250" ID="rdSubVersion" Runat="server"></telerik:RadTextBox></td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td style="width:50%" class="BlackHeaders8ptBoldNoUnderline" align="right" valign="top"><asp:Label ID="lblExistingSubVersion" runat="server" Text="Existing Sub-Version:"></asp:Label>&nbsp;</td>

 

 

 

<td><telerik:RadComboBox ID="rdExistingSubVersions" OnItemsRequested="rdExistingSubVersions_ItemsRequested"

 

 

 

AllowCustomText="true" EmptyMessage="Pick a Sub-Version" HighlightTemplatedItems="true" EnableLoadOnDemand="true" Filter="StartsWith" MarkFirstMatch="true" CssClass="BlackHeaders8ptBoldNoUnderline" AutoPostBack="True" Runat="server">

 

 

 

</telerik:RadComboBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td style="width:50%" class="BlackHeaders8ptBoldNoUnderline" align="right" valign="top"><asp:Label ID="lblVersion" runat="server" Text="Version:"></asp:Label>&nbsp;</td>

 

 

 

<td><telerik:RadComboBox ID="rdVersion" OnItemsRequested="rdVersion_ItemsRequested"

 

 

 

AllowCustomText="true" EmptyMessage="Pick a Version" HighlightTemplatedItems="true" EnableLoadOnDemand="true" Filter="StartsWith" MarkFirstMatch="true" CssClass="BlackHeaders8ptBoldNoUnderline" AutoPostBack="True" Runat="server">

 

 

 

</telerik:RadComboBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td align="center" colspan="2">

 

 

 

<telerik:RadGrid ID="rgGeography" runat="server" PageSize="250" AllowPaging="True" AllowFilteringByColumn="True" Width="600px" Height="400px" AllowSorting="True" AllowMultiRowSelection="True">

 

 

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

 

 

<MasterTableView AutoGenerateColumns="false" AllowFilteringByColumn="True" VirtualItemCount="100000">

 

 

 

<Columns>

 

 

 

<telerik:GridTemplateColumn AllowFiltering="false" SortExpression="Selected" HeaderText="Selected" ItemStyle-HorizontalAlign="Center" DataField="Selected" HeaderStyle-HorizontalAlign="Center" UniqueName="CheckBoxTemplateColumn">

 

 

 

<HeaderTemplate>

 

 

 

<asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox>

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

<asp:CheckBox id="CheckBox1" Checked='<%# Eval("Selected") %>' OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" DataField="Geography" HeaderText="Geography"

 

 

 

SortExpression="Geography" UniqueName="Geography"/>

 

 

 

<telerik:GridBoundColumn ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" DataField="CircType" HeaderText="Circulation Type"

 

 

 

SortExpression="CircType" UniqueName="CircType" AutoPostBackOnFilter="true"/>

 

 

 

<telerik:GridBoundColumn DataField="id" UniqueName="id" Visible ="false"/>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

<ClientSettings Selecting-AllowRowSelect="true" Scrolling-AllowScroll="true" Scrolling-UseStaticHeaders="true">

 

 

 

<Selecting AllowRowSelect="true" />

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td align="center"><uc2:ucFooter ID="ucFooter" runat="server" Visible="False" /></td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</form>

 

Antonio Stoilkov
Telerik team
 answered on 07 Mar 2012
2 answers
84 views
I am using a GridDropDownColumn to show values from my tri-state boolean, and in edit-mode, this works. But I can't get it to show any value when not in edit-mode. Does anyone have any example on how to do this?

I am using OnItemDataBound to bind the value dynamically, like this:
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
{
	GridEditableItem editedItem = e.Item as GridEditableItem; 
	GridDropDownListColumnEditor editList = editedItem.EditManager.GetColumnEditor("DropDownColumnId"as GridDropDownListColumnEditor;
	if (editList != null)
	{
		editList.DataSource = GetDropDownListDataSource("DropDownColumnId");
		editList.DataBind();
		string selectedValue = "";
if (((Template)e.Item.DataItem).EnableCalculation.HasValue) { if ((bool)((Template)e.Item.DataItem).EnableCalculation) selectedValue = "1"; else selectedValue = "0"; } editList.DropDownListControl.SelectedValue = selectedValue; } }

How do I get hand on the GridDropDownListColumn when not in edit-mode?
Alexander
Top achievements
Rank 1
 answered on 07 Mar 2012
3 answers
101 views
I implemented a slideshow:
<telerik:RadRotator ID="radSlideShow" runat="server" DataSourceID="xmlSlideShowSource"
    Width="516px" Height="310px" ItemWidth="516px" ItemHeight="310px"
    RotatorType="SlideShow" FrameDuration='<%$ AppSettings:SlideShowFrameDuration %>'
    OnClientItemShown="radSlideShow_OnClientItemShown"
    OnClientLoad="radSlideShow_OnClientLoad">
    <SlideShowAnimation Duration='<%$ AppSettings:SlideShowFadeDuration %>' Type="CrossFade" />
    <ItemTemplate>
        <a href='<%# XPath("href") %>'>
            <img src='<%# System.Configuration.ConfigurationManager.AppSettings("SlideShowImagesRelativePath") + XPath("filename") %>' alt='<%# XPath("description") %>' % style="border-width: 0px;" />
        </a>
    </ItemTemplate>
</telerik:RadRotator>

And it transitions nicely from frame to frame without any problems.  But, I also included a custom navigation control that uses the clientside API to change the current visible frame by the index.
function showItemByIndex(index) {
    /* Be sure the slideShow RadRotator object is assigned */
    if (slideShow == null) return;
 
    /* Set the current frame index, 'false' to disable animation */
    slideShow.set_currentItemIndex(index, false);
 
    /* Reset the slideshow's timer, so that it doesn't just quickly change */
    slideShow.stop();
    slideShow.start();
 
    /* Set the CSS of the button that the user clicked on */
    setButtonByIndex(index);
}

The code appears to be working, except that whatever the previous slide was that was animated, it is not visible to go back to.  For example, assume three slides:

Page is loaded
Slide[0] is displayed
Slide[0] fades out, as Slide[1] fades in
User clicks on NavigationButton[0]
"showItemByIndex(0)" is executed
RadRotator sets the current item index to 0
Slide[0] is still faded out, and a blank frame is displayed

In my tests, the previous frame is always invisible because it was faded out.  I hope I explained this well enough.  I used "Fade" instead of "CrossFade" for an animation, and it works fine, so I've implemented that although I prefer the cross fade.

Slav
Telerik team
 answered on 07 Mar 2012
2 answers
157 views

I have RadWindow in my page , which contains a RadListBox.
I have custom validator on the same page. I do not want this custom valiadator server side function to be called on double click/selection change event  of list box. Causevalidation property of listbox is set to false.
Still server side validation function is being called on double click/selection change event of listbox.
Any idea how to avoid this?

Thanks in Advance

Meera
Top achievements
Rank 1
 answered on 07 Mar 2012
7 answers
136 views

hi

This is the CSS for the monthview  and how do i have borders around an appointment?

  .rsShowMore
{
   display: none !important;
}
     
      .RadScheduler .rsMonthView .rsAptContent
    {
            position: static !important;
            height: auto !important;
           
     }
 .rsMonthView .rsWrap  
     {  
        height: 50px !important;
      
     }  
     .rsMonthView .rsDateWrap  
     {  
        height: 24px !important;
      
     }  
     .rsMonthView .rsLastWrap   
     {  
        height: 24px !important;
       
          
     }  
     .rsMonthView .rsApt  
     {  
        height: 48px !important;
      
     }  

.RadScheduler .rsMonthView .rsAptContent
{
    min-height: 35px;
    border:1px;
}

Ivana
Telerik team
 answered on 07 Mar 2012
1 answer
856 views
Greetings,
I'm currently facing a problem while trying to populate my grid.
Its datasource is basically an Object Data Source like this:

    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="ObjectDataSource1">
<MasterTableView AutoGenerateColumns="False" DataSourceID="ObjectDataSource1">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <Columns>
        <telerik:GridBoundColumn DataField="TitleChoiceIncident"
            HeaderText="TitleChoiceIncident" ReadOnly="True"
            SortExpression="TitleChoiceIncident" UniqueName="TitleChoiceIncident">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ValueChoiceIncident"
            HeaderText="ValueChoiceIncident" ReadOnly="True"
            SortExpression="ValueChoiceIncident" UniqueName="ValueChoiceIncident">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idAgir" DataType="System.Int32"
            HeaderText="idAgir" SortExpression="idAgir" UniqueName="idAgir">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idUtilisateur" DataType="System.Int32"
            HeaderText="idUtilisateur" SortExpression="idUtilisateur"
            UniqueName="idUtilisateur">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idEmetteur" DataType="System.Int32"
            HeaderText="idEmetteur" SortExpression="idEmetteur" UniqueName="idEmetteur">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idTypeAction" DataType="System.Int32"
            HeaderText="idTypeAction" SortExpression="idTypeAction"
            UniqueName="idTypeAction">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idEntreprise" DataType="System.Int32"
            HeaderText="idEntreprise" SortExpression="idEntreprise"
            UniqueName="idEntreprise">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idFamille" DataType="System.Int32"
            HeaderText="idFamille" SortExpression="idFamille" UniqueName="idFamille">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idProjet" DataType="System.Int32"
            HeaderText="idProjet" SortExpression="idProjet" UniqueName="idProjet">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idGroupeContact" DataType="System.Int32"
            HeaderText="idGroupeContact" SortExpression="idGroupeContact"
            UniqueName="idGroupeContact">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idOrdinateur" DataType="System.Int32"
            HeaderText="idOrdinateur" SortExpression="idOrdinateur"
            UniqueName="idOrdinateur">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idParent" DataType="System.Int32"
            HeaderText="idParent" SortExpression="idParent" UniqueName="idParent">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idEtatIncident" DataType="System.Int32"
            HeaderText="idEtatIncident" SortExpression="idEtatIncident"
            UniqueName="idEtatIncident">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idSousCategorie" DataType="System.Int32"
            HeaderText="idSousCategorie" SortExpression="idSousCategorie"
            UniqueName="idSousCategorie">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="date" HeaderText="date"
            SortExpression="date" UniqueName="date">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="heure" HeaderText="heure"
            SortExpression="heure" UniqueName="heure">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="durée" HeaderText="durée"
            SortExpression="durée" UniqueName="durée">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="priorite" DataType="System.Int32"
            HeaderText="priorite" SortExpression="priorite" UniqueName="priorite">
        </telerik:GridBoundColumn>
        <telerik:GridCheckBoxColumn DataField="blocage" DataType="System.Boolean"
            HeaderText="blocage" SortExpression="blocage" UniqueName="blocage">
        </telerik:GridCheckBoxColumn>
        <telerik:GridCheckBoxColumn DataField="fait" DataType="System.Boolean"
            HeaderText="fait" SortExpression="fait" UniqueName="fait">
        </telerik:GridCheckBoxColumn>
        <telerik:GridCheckBoxColumn DataField="facturable" DataType="System.Boolean"
            HeaderText="facturable" SortExpression="facturable" UniqueName="facturable">
        </telerik:GridCheckBoxColumn>
        <telerik:GridCheckBoxColumn DataField="alerterAgir" DataType="System.Boolean"
            HeaderText="alerterAgir" SortExpression="alerterAgir" UniqueName="alerterAgir">
        </telerik:GridCheckBoxColumn>
        <telerik:GridBoundColumn DataField="dateRappel" DataType="System.DateTime"
            HeaderText="dateRappel" SortExpression="dateRappel" UniqueName="dateRappel">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="descriptionAgir"
            HeaderText="descriptionAgir" SortExpression="descriptionAgir"
            UniqueName="descriptionAgir">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="cheminFichier" HeaderText="cheminFichier"
            SortExpression="cheminFichier" UniqueName="cheminFichier">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="objet" HeaderText="objet"
            SortExpression="objet" UniqueName="objet">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="lieu" HeaderText="lieu"
            SortExpression="lieu" UniqueName="lieu">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="dateSaisit" DataType="System.DateTime"
            HeaderText="dateSaisit" SortExpression="dateSaisit" UniqueName="dateSaisit">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="dateAgir" DataType="System.DateTime"
            HeaderText="dateAgir" SortExpression="dateAgir" UniqueName="dateAgir">
        </telerik:GridBoundColumn>
        <telerik:GridCheckBoxColumn DataField="isAgenda" DataType="System.Boolean"
            HeaderText="isAgenda" SortExpression="isAgenda" UniqueName="isAgenda">
        </telerik:GridCheckBoxColumn>
        <telerik:GridCheckBoxColumn DataField="isAgendaPerso" DataType="System.Boolean"
            HeaderText="isAgendaPerso" SortExpression="isAgendaPerso"
            UniqueName="isAgendaPerso">
        </telerik:GridCheckBoxColumn>
        <telerik:GridCheckBoxColumn DataField="isIncidentGen" DataType="System.Boolean"
            HeaderText="isIncidentGen" SortExpression="isIncidentGen"
            UniqueName="isIncidentGen">
        </telerik:GridCheckBoxColumn>
        <telerik:GridBoundColumn DataField="dateDebut" DataType="System.DateTime"
            HeaderText="dateDebut" SortExpression="dateDebut" UniqueName="dateDebut">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="dateEtatIncident"
            DataType="System.DateTime" HeaderText="dateEtatIncident"
            SortExpression="dateEtatIncident" UniqueName="dateEtatIncident">
        </telerik:GridBoundColumn>
        <telerik:GridCheckBoxColumn DataField="isPause" DataType="System.Boolean"
            HeaderText="isPause" SortExpression="isPause" UniqueName="isPause">
        </telerik:GridCheckBoxColumn>
        <telerik:GridBoundColumn DataField="idTypeDemande" DataType="System.Int32"
            HeaderText="idTypeDemande" SortExpression="idTypeDemande"
            UniqueName="idTypeDemande">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="TempsEstime" HeaderText="TempsEstime"
            SortExpression="TempsEstime" UniqueName="TempsEstime">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Acceptation" HeaderText="Acceptation"
            SortExpression="Acceptation" UniqueName="Acceptation">
        </telerik:GridBoundColumn>
        <telerik:GridCheckBoxColumn DataField="Accord" DataType="System.Boolean"
            HeaderText="Accord" SortExpression="Accord" UniqueName="Accord">
        </telerik:GridCheckBoxColumn>
        <telerik:GridBoundColumn DataField="DerniereDateModif"
            DataType="System.DateTime" HeaderText="DerniereDateModif"
            SortExpression="DerniereDateModif" UniqueName="DerniereDateModif">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="idExchange" HeaderText="idExchange"
            SortExpression="idExchange" UniqueName="idExchange">
        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="ImageColumnValider">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButtonValidation" runat="server" ImageUrl="~/img/validation.gif"
                            CommandName="Submit" CommandArgument='<%#Eval("idAgir")%>' ToolTip="Valider le ticket"
                            OnClick="Submit_Click" OnClientClick="return confirm('Êtes vous sûr de vouloir valider ce ticket?');" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="ImageColumnDecliner">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButtonDecliner" runat="server" ImageUrl="~/img/croix.png"
                            CommandName="Decline" CommandArgument='<%#Eval("idAgir")%>' ToolTip="Décliner la proposition"
                            OnClick="Decline_Click" OnClientClick="return confirm('Êtes vous sûr de vouloir décliner la proposition?');" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
    </Columns>
</MasterTableView>
 
<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu>
    </telerik:RadGrid>
 
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
        OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetNewAgirsByClient" TypeName="DBAccess.DAOAgir">
        <SelectParameters>
            <asp:SessionParameter Name="idContact" SessionField="contact" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>

I get this error. I don't understand why.
Thanks in advance for your help.

Antonio Stoilkov
Telerik team
 answered on 07 Mar 2012
1 answer
76 views
I just switched a fairly large, 3-year-old application to the latest version of the Ajax controls.  One of the primary screens uses a RadGrid to display search results.  After switching to the new release (we had been using 2010.3.1717.40) the RadGrid now shows a 17px wide gap on the right side of the grid (see attached).  In investigating where this was coming from, I ran the IE9 Web Developer Tools, which shows a "margin-right: 17px" on the RadGridHeader div.  Here's the HTML that shows in Web Developer Tools:
<div class="rgHeaderDiv" id="ctl00_cphDefault_RadGrid1_GridHeader" style="width: 715px; overflow: hidden; margin-right: 17px;" _events="[object Object]">
If I disable the margin-right: 17px the grid aligns perfectly.  However, I can't figure out where this is being set?  How do I change this?  I searched my entire solution and I don't have any file in it that contains that text.  However, I did find it when viewing the Telerik.Web.UI.WebResource.axd file in Web Developer Tools.  So I have to assume it's coming from there.  Please let me know how to fix this.  

Thanks for your help!
Eddie
Tsvetina
Telerik team
 answered on 07 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?