Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
203 views
Greetings!

I am unable to get a consistent header/column width in my radgrid (see attachment).

The columns are auto generated. After viewing a number of posts, it appears the best practice is to merely set the the HeaderStyle Width, and set the TableLayout to Fixed. And this I have done:

<MasterTableView EditMode="InPlace" CommandItemDisplay="Top" AutoGenerateColumns="True" TableLayout="Fixed">
    <HeaderStyle Width="100px" />

Is there something else I need to do?

Thanks,

Karl
Karl
Top achievements
Rank 1
 answered on 05 Nov 2013
1 answer
59 views
We are having issues with grabbing user content from a rad editor when inside a Rad Update panel using IE.  it works fine in firefox and chrome.  I have read and applied the fixes listed in other articles but they have not worked.  I am using Q3 2013 version of the controls.

please let me know if there is something else i can be doing.
Rumen
Telerik team
 answered on 05 Nov 2013
1 answer
91 views
Hi,

I am trying to create a page similar to the below demo page, that load the data from webservices. When the webservices returns the data after 10-12 seconds, and the grid doesn't show any loading panel. I tried attaching an AjaxLoadingPanel to the grid, but the request is in not a ajax request and hence it wasn't displayed. Also, I don't see any api for data service in client side to manually show the loading panel. Can anyone recommend a way to display a loading panel?

http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/client-side/declarative/defaultcs.aspx


Thanks,
Shhan
Maria Ilieva
Telerik team
 answered on 05 Nov 2013
1 answer
211 views

I am receiving this error if I fetch data from view which has column names in arabic.
Steps to reproduce:

Provide  following query on RadPivotGrid1_NeedDataSource
 
string query = "SELECT شهر, الوفيات FROM [ViewName]";
(sender as RadPivotGrid).DataSource = GetDataTable(query);

if we provide one arabic name this pivot table renders successfully, If there are more than one arabic columns, page crashes with following message

Multiple controls with the same ID 'rc_' were found. FindControl requires that controls have unique IDs.



[HttpException (0x80004005): Multiple controls with the same ID 'rc_' were found. FindControl requires that controls have unique IDs.]
   System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +233
   System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +311
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +306
   System.Web.UI.Control.FindControl(String id) +12
   Telerik.Web.UI.PivotGridFieldsWindow.AddAttributesToRender(HtmlTextWriter writer) +76
   System.Web.UI.WebControls.WebControl.RenderBeginTag(HtmlTextWriter writer) +20
   Telerik.Web.UI.RadWebControl.RenderBeginTag(HtmlTextWriter writer) +36
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +20
   Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) +92
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
   Telerik.Web.UI.RadCompositeDataBoundControl.RenderContents(HtmlTextWriter writer) +115
   Telerik.Web.UI.RadPivotGrid.RenderContents(HtmlTextWriter writer) +94
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
   Telerik.Web.UI.RadCompositeDataBoundControl.Render(HtmlTextWriter writer) +92
   Telerik.Web.UI.RadPivotGrid.Render(HtmlTextWriter writer) +275
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   Telerik.Web.UI.RadAjaxPanel.RenderChildren(HtmlTextWriter writer) +218
   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
   Telerik.Web.UI.RadAjaxPanel.RenderContents(HtmlTextWriter writer) +45
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
   Telerik.Web.UI.RadAjaxPanel.Render(HtmlTextWriter writer) +80
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   Telerik.Web.UI.ControlRenderer.Render(HtmlTextWriter writer) +161
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Control.Render(HtmlTextWriter writer) +10
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer) +248
   System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer) +37
   Telerik.Web.UI.OurUpdatePanel.Render(HtmlTextWriter writer) +464
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   Telerik.Web.UI.PreControlToAjaxify.Render(HtmlTextWriter writer) +208
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +216
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Adapters.ControlAdapter.Render(HtmlTextWriter writer) +17
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +106
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +1222
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +268
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Adapters.ControlAdapter.Render(HtmlTextWriter writer) +17
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +106
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1386



I Investigated and found that issue is because when generating span id RadPivotGrid uses column name as part of control name
and it does not consider the arabic character for the id attribute.

If arabic character can not be used then PivotGrid should append a counter with the id so that it does not generate the duplicate id.

Following is the HTML generated with one arabic column and one english column

<td class="rpgFilterZone" colspan="2">
<
span id="RadPivotGrid1_ctl00_ctl00_SpanPanelFieldsPopup" class="rpgFieldsPopup">
<
span class="rpgFieldsPopupWrapper">
<
span id="RadPivotGrid1_ctl00_ctl00_rc_" class="rpgFieldItem">شهر</span>
<
span id="RadPivotGrid1_ctl00_ctl00_rc_Year" class="rpgFieldItem">Year</span>
</
span><span class="rpgGroupedFieldsTitle">All Fields</span></span>
</
td>

Deyan Enchev
Telerik team
 answered on 05 Nov 2013
1 answer
221 views

I have two RadButtons in a FooterTemplate of a RadGrid. The RadGrid has the Metro skin.

Both buttons showed the 'Default' skin appearance, which is the desired effect, despite not having their Skin="Default" attribute set.  I thought they would inherit the Metro skin, but I was mistaken.

However, when I changed one of the button types to LinkButton the button shows a Metro-like skin (see attached image).  How do I get the link button to have the Default skin appearance?  Setting Skin="Default" does not do the trick. 

 

Danail Vasilev
Telerik team
 answered on 05 Nov 2013
3 answers
177 views
Hi,

I'm attempting to filter a grid on a field that contains a file name and path.  It appears that radgrid does not like filter strings that use the backslash (\) character.  I have found a workaround (see code below) that intercepts the filter, escapes any backslash characters, and then aplies the filter.  The code appears to work in that the filter is correctly applied.  But for some reason, the text in the filter radtextbox gets cleared when the grid refreshes to apply the filter. 

Is there a way to prevent the text box from being cleared?

Or alternately...is there a way to replace the text after the grid gets refreshed?

Below is the filter template, including the javascript codeblock, that applies the filter.

<telerik:GridTemplateColumn

UniqueName="Include"

DataField="Include"

SortExpression="Include"

HeaderText="Include"

HeaderStyle-Width="200px"

ShowFilterIcon="false"

FilterControlWidth="95%"

CurrentFilterFunction="Contains"

AutoPostBackOnFilter="true"

>

<EditItemTemplate>

<asp:textbox ID="txtInclude" runat="server" width="190px" Text='<%#Eval("Include")%>' />

<script type="text/javascript">

registeredElements.push('<%# Container.FindControl("txtInclude").ClientID %>');

</script>

</EditItemTemplate>

<ItemTemplate>

<div class="WordWrap" style="width:190px">

<asp:label ID="lblInclude" runat="server" CssClass="WordWrap" Text='<%#Eval("Include")%>' />

</div>

</ItemTemplate>

<FilterTemplate>

<telerik:RadTextBox ID="txtIncludeFileFilter" Width="100%" runat="server" >

<ClientEvents OnBlur="IncludeFileFilterChanged" />

</telerik:RadTextBox>

<telerik:RadScriptBlock ID="RadScriptBlock4" runat="server">

<script type="text/javascript">

function IncludeFileFilterChanged(sender, eventArgs) {

var filterValue = "";

var filterFunction = "NoFilter";

var s = sender.get_value();

if (s != "") {

filterValue = s.replace("\\", "\\\\");

var filterFunction = "Contains";

}

var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");

tableView.filter("Include", filterValue, filterFunction);

}

</script>

</telerik:RadScriptBlock>

</FilterTemplate>

</telerik:GridTemplateColumn >

Princy
Top achievements
Rank 2
 answered on 05 Nov 2013
1 answer
71 views
I have a problem displaying large data, when i'm scroll to the right the data displays
a little sliding to the left, please see picture below



but when I slide a little to the left  the data appear correctly



Please help me...

Thanks
Eyup
Telerik team
 answered on 05 Nov 2013
3 answers
128 views
Hi,

Since i install IE11, the header context menu don't check column on this menu. See attachment with printScreen with IE11 et chrome.

ty
Angel Petrov
Telerik team
 answered on 05 Nov 2013
2 answers
478 views
Hi, I have a RadGrid that is basically copied from the Batch Editing demo (FYI, I'm a Telerik newbie). Functionally it all works great and I was pleased with how quickly I was able to convert the demo to suit me needs. However, I have one small issue with the GridTextBoxColumnEditor control width. No matter what I try to set in the aspx code, the text box width is resolutely fixed at what looks to be 100px-150px.
In the code sample I've included below, the textbox width is set to 200px. I can change this to 2px or 2000px or just delete the line altogether. It makes no difference. Could anyone help please?
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true"></telerik:RadWindowManager>
 
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
    <telerik:RadGrid ID="RadGrid1" DataSourceID="ds_ActivityCodes" AutoGenerateColumns="False" AllowSorting="True"
        AllowAutomaticDeletes="False" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
        AllowPaging="True" GridLines="None" PageSize="10" Width="750px" runat="server">
 
        <MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="activity_id"
            DataSourceID="ds_ActivityCodes" HorizontalAlign="NotSet" EditMode="Batch" AutoGenerateColumns="False">
 
            <CommandItemSettings ShowSaveChangesButton="false" />
 
            <BatchEditingSettings EditType="Cell" OpenEditingEvent="None" />
 
            <SortExpressions>
                <telerik:GridSortExpression FieldName="ActivityCode" SortOrder="Ascending" />
            </SortExpressions>
 
            <Columns>
                <telerik:GridBoundColumn DataField="ActivityCode" HeaderStyle-Width="60px" HeaderText="Activity Code" SortExpression="ActivityCode" UniqueName="ActivityCode">
                    <ColumnValidationSettings EnableRequiredFieldValidation="true">
                        <RequiredFieldValidator ForeColor="Red" Text="*This field is required">
                        </RequiredFieldValidator>
                    </ColumnValidationSettings>
                </telerik:GridBoundColumn>
 
                <telerik:GridBoundColumn DataField="ActivityDescription" HeaderStyle-Width="210px" HeaderText="Description" SortExpression="ActivityDescription" UniqueName="ActivityDescription">
                    <ColumnValidationSettings EnableRequiredFieldValidation="true">
                        <RequiredFieldValidator ForeColor="Red" Text="*This field is required">
                        </RequiredFieldValidator>
                    </ColumnValidationSettings>
                </telerik:GridBoundColumn>
 
                <telerik:GridCheckBoxColumn DataField="display" HeaderStyle-Width="60px" HeaderText="Display" SortExpression="display" UniqueName="display" >
                </telerik:GridCheckBoxColumn>
            </Columns>
 
        </MasterTableView>
    </telerik:RadGrid>
 
    <telerik:GridTextBoxColumnEditor runat="server" ID="TextEditor">
        <TextBoxStyle Width="200px" />
    </telerik:GridTextBoxColumnEditor>
 
    <telerik:GridCheckBoxColumnEditor runat="server" ID="CheckBoxEditor">
        <CheckBoxStyle Width="20px" />
    </telerik:GridCheckBoxColumnEditor>
</telerik:RadAjaxPanel>
Geoff
Top achievements
Rank 1
 answered on 05 Nov 2013
3 answers
205 views
Hi

I am able to bind resource combobox in radscheduler, i want to set default selected index, by default null value is coming in that 

I don't want null value, i want to put selected index 1 so that by default i can have some value in that.

Thank & Regards
--------------------------
Ashok k
Plamen
Telerik team
 answered on 05 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?