Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
2.3K+ views

Here is a link to a demo you have for the RadGrid:

http://demos.telerik.com/aspnet-ajax/grid/mobile-examples/overview/default.aspx?name=overview&utm_source=AJAX+Demos&utm_medium=QRcode&utm_campaign=Ajax_mobile_demos_qrcode

I have a RadGrid with Static Headers=True and AutoGenerateColumns = False.  The RadGrid is populated by a DataSet.  My RadGrid does not respond like this demo does when the window of the browser is resized.  I have tried RenderMode=Auto and the resizing in Client Settings.

I do have an AjaxLoadingPanel for my RadGrid.

What do I need to do to get my RadGrid to respond like the demo does?

Can you provide an example code so the RadGrid responds the same as this demo when browser window is resized?

Please help!

Here is the markup for my RadGrid:

<telerik:RadAjaxLoadingPanel runat="server" ID="gridLoadingPanel"></telerik:RadAjaxLoadingPanel>
<telerik:RadGrid ID="rgRYGReport" runat="server" Height="456px" Width="100%" AutoGenerateColumns="False" AllowPaging="True" PageSize="100"
        OnDataBinding="rgRYGReport_DataBinding" OnPageIndexChanged="rgRYGReport_PageIndexChanged" OnNeedDataSource="rgRYGReport_NeedDataSource" ShowStatusBar="True">
    <GroupingSettings CollapseAllTooltip="Collapse all groups" />
    <ExportSettings IgnorePaging="True">
        <Pdf AllowPrinting="False">
        </Pdf>
        <Excel FileExtension="xlsx" Format="Xlsx" />
    </ExportSettings>
    <ClientSettings>
        <Selecting AllowRowSelect="True" />
        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        <Resizing AllowResizeToFit="True" />
    </ClientSettings>
    <MasterTableView EnableViewState="true" DataKeyNames="MILL_PART_NO,RSDC_PART_NO,PO_SUPPLIER_CODE" ClientDataKeyNames="MILL_PART_NO,RSDC_PART_NO,PO_SUPPLIER_CODE">
        <Columns>
            <telerik:GridBoundColumn DataField="MILL_PART_NO" FilterControlAltText="Filter column0 column" HeaderText="<br/><br/><br/>Mill Part No." ReadOnly="True" UniqueName="MillPartNbr">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="RSDC_PART_NO" FilterControlAltText="Filter column1 column" HeaderText="<br/><br/><br/>RSDC Part No." ReadOnly="True" UniqueName="RSDCPartNbr">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="OVRALL_DOH_RATIO" FilterControlAltText="Filter column2 column" HeaderText="<br/><br/>OVL<br/>DOH" ReadOnly="True" UniqueName="OvlDOH">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="OVRALL_STATUS" FilterControlAltText="Filter column3 column" HeaderText="<br/><br/>OVL<br/>Status" ReadOnly="True" UniqueName="OverallStatus">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="DOH_WHSE" FilterControlAltText="Filter column4 column" HeaderText="<br/><br/>DOH<br/>WHSE" ReadOnly="True" UniqueName="DOHWhse">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="FINAL_PROCESSING" FilterControlAltText="Filter column5 column" HeaderText="<br/><br/><br/>Proc" ReadOnly="True" UniqueName="Proc">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="TIER" FilterControlAltText="Filter column6 column" HeaderText="<br/><br/><br/>Tier" ReadOnly="True" UniqueName="Tier">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PART_TYPE" FilterControlAltText="Filter column7 column" HeaderText="<br/><br/>Part<br/>Type" ReadOnly="True" UniqueName="PartType">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="GM_PRESSLINE" FilterControlAltText="Filter column8 column" HeaderText="<br/><br/>Press<br/>Line" ReadOnly="True" UniqueName="PressLine">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="COMMENTS" FilterControlAltText="Filter column8 column" HeaderText="<br/><br/><br/>Comments" ReadOnly="True" UniqueName="Comments">
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn UniqueName="TemplateCommentsColumn">
                <ItemTemplate>
                    <asp:HyperLink ID="CommentsLink" runat="server" Text="Add/Edit Comment"></asp:HyperLink>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="<br/><br/><br/>Release" UniqueName="TemplateReleaseColumn">
                <ItemTemplate>
                    <asp:HyperLink ID="ReleaseLink" runat="server" Text="Click To Order"></asp:HyperLink>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="PO_SUPPLIER_CODE" FilterControlAltText="Filter column9 column" HeaderText="<br/><br/><br/>Mill" ReadOnly="True" UniqueName="Mill">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="SHIP_TO_CODE" FilterControlAltText="Filter column10 column" HeaderText="<br/><br/><br/>MFD" ReadOnly="True" UniqueName="MFD">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="VEHICLE" FilterControlAltText="Filter column11 column" HeaderText="<br/><br/><br/>Vehicle" ReadOnly="True" UniqueName="Vehicle">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PROG_NO" FilterControlAltText="Filter column12 column" HeaderText="<br/><br/><br/>Prog." ReadOnly="True" UniqueName="ProgNbr">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="DESCRIP" FilterControlAltText="Filter column13 column" HeaderText="<br/><br/><br/>Desc." ReadOnly="True" UniqueName="Description">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="REQ_MIN_QTY" FilterControlAltText="Filter column14 column" HeaderText="<br/><br/><br/>Coil Min" ReadOnly="True" UniqueName="CoilMin">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="REQ_MAX_QTY" FilterControlAltText="Filter column14 column" HeaderText="<br/><br/><br/>Coil Max" ReadOnly="True" UniqueName="CoilMax">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="REWORKHOLWGT" FilterControlAltText="Filter column14 column" HeaderText="<br/><br/>Rework/Hol<br/>Weight" ReadOnly="True" UniqueName="ReworkHolWgt">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="REWORKHOLPCS" FilterControlAltText="Filter column14 column" HeaderText="<br/><br/>Rework/Hol<br/>Pcs." ReadOnly="True" UniqueName="ReworkHolPcs">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="MASTER_AVAILABLE" FilterControlAltText="Filter column14 column" HeaderText="<br/>Available<br/>Master Coils<br/>Weight" ReadOnly="True" UniqueName="AvailMasterCoilsWgt">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="MASTER_TO_PRODUCE" FilterControlAltText="Filter column14 column" HeaderText="Approx.<br/>Yield From<br/>Coils<br/>Weight" ReadOnly="True" UniqueName="ApproxYieldFromCoilsWgt">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PULL_SIZE" FilterControlAltText="Filter column14 column" HeaderText="<br/><br/>Per Day<br/>Part Usage" ReadOnly="True" UniqueName="PerDayPartUsage">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="REQ_REC_QTY" FilterControlAltText="Filter column14 column" HeaderText="<br/><br/>Pcs/Kgs<br/>Min" ReadOnly="True" UniqueName="PcsKgsMin">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="REQ_REC_MAX_QTY" FilterControlAltText="Filter column14 column" HeaderText="<br/><br/>Pcs/Kgs<br/>Max" ReadOnly="True" UniqueName="PcsKgsMax">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="RTSWHSEPCSKGS" FilterControlAltText="Filter column14 column" HeaderText="<br/>RTS<br/>WHSE<br/>Pcs/Kgs" ReadOnly="True" UniqueName="RTSWhsePcsKgs">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PCS_AT_OPW" FilterControlAltText="Filter column2 column" HeaderText="<br/><br/>OWH<br/>Pieces" ReadOnly="True" UniqueName="OWHPieces">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="COIL_KGS_AT_OPW" FilterControlAltText="Filter column2 column" HeaderText="<br/><br/>OWH<br/>Coils" ReadOnly="True" UniqueName="OWHCoils">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PCS_INTRANSIT_OPW" FilterControlAltText="Filter column14 column" HeaderText="<br/>RTS<br/>Intransit<br/>Pieces" ReadOnly="True" UniqueName="RTSIntransitPcs">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="RTSINPRRSDCPCSKGS" FilterControlAltText="Filter column14 column" HeaderText="RTS/Inpr<br/>RSDC<br/>Pieces<br/>Kgs" ReadOnly="True" UniqueName="RTSInprRSDCPcsKgs">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
    <PagerStyle Mode="NextPrevNumericAndAdvanced" />
</telerik:RadGrid>

Keith
Top achievements
Rank 1
 answered on 26 Aug 2016
2 answers
96 views

I have a sliding panel bar setup on my pages. Every time I click on the button to open it, the panel bar slides open, but it throws this error, "Object doesn't support property or method 'stopTransition'", and I can not close the panel bar.  I thought may be I did something wrong so I created a page and copied the example here, http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/defaultvb.aspx . When I tried running that it also threw the error and behaved the same way.

The version I am using is the latest one : 2016.2.607.45 .

There is another project that I have that has the sliding panel bar and that is working. The only difference with that project is that its running 2014.2.724.45. So what is the issue?

Ivan Danchev
Telerik team
 answered on 26 Aug 2016
3 answers
223 views

I have combo added to every cell header of my grid to provide row filtering but I'm trying to load the data in the combo when it is clicked as per your sample:

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/comboboxvsdropdownlist/defaultcs.aspx?skin=Sunset

but no data is requested as per your sample. If I type something in the combo, it does trigger the ItemsRequested event, but I would like to load data when the combo is clicked. The reason I don't want to preloaded (as it is currently done!) is that if a user never uses any of the filters, he/she should not have to be penalized having to wait additional time for these to be filled, queries to get this data should not be executed, etc...

This is the code I'm currently using:

RadComboBox comboBox = new RadComboBox();
comboBox.ID = GetFilterID(columnIndex);
comboBox.MarkFirstMatch = true;
comboBox.AutoPostBack = true;
comboBox.CssClass = "Filter";
comboBox.TextChanged += new EventHandler(comboBox_TextChanged);
comboBox.ShowDropDownOnTextboxClick = true;
comboBox.AppendDataBoundItems = true;
comboBox.EnableLoadOnDemand = true;
comboBox.DataTextField = filterableField.DataField;
comboBox.DataValueField = filterableField.DataField;
//comboBox.DataSource = GetFilterData(filterableField.DataField);
comboBox.ItemsRequested +=new RadComboBoxItemsRequestedEventHandler(comboBox_ItemsRequested);
comboBox.EnableVirtualScrolling = false;
comboBox.ShowMoreResultsBox = false;
comboBox.AllowCustomText = false;

headerCell.Controls.Add(comboBox);

private void comboBox_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
    Debug.WriteLine("");  //Load additional data from here.
}

There is no html code as this is all done at run-time. Based on your sample as per link above, I can't spot any difference except that you have a RenderMode to "LightWeight" but I don't think that's the problem.

Any ideas?

Thanks.

Peter Milchev
Telerik team
 answered on 26 Aug 2016
6 answers
189 views
Hi,

I have a strange behaviour when dragging and dropping appointments in RadScheduler. What I am seeing is that under some circumstances, if the mouse button is released, the cursor still has a drag/drop helper tracking it - on clicking the mouse button again, the drop completes, but the helper still follows the cursor, if I click again, the drag completes again, in fact the ghost does not go away at all!

It appears to occur if the mouse button is accidentally released during the start of the drag - often happens with laptop panels rather than mice.

I suspect that this is my fault however, because I have inserted icons into each appointment using JQuery, and it appears that the drag operation sometimes doesn't start properly when the icon is dragged, but seems to start fine if I drag the appointment background (or the text).

Does anybody know either:

A) How I can make my inserted IMG tag act as in integral part of the appointment, or
B) Have I overlooked a RadScheduler ClientLib method of adding an icon to an appointment.

Thanks in advance for your help on this.
Veselin Tsvetanov
Telerik team
 answered on 26 Aug 2016
1 answer
185 views

When I change an image in IE11, Radeditor insert the image to different position. There is no issue with Chrome and Firefox.

Repro Step:

1. Go http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

2. Copy following HTML with HTML tab.

3. Chage an image with Desigh tab.

Result: <img> tab is inserted to differint position. 

Is there any workaround on this?

 

<div class="col-sm-12">
<div class="row child_container">
<div class="col-sm-6" style="float: left;">
<div class="row">
<div class="img col-sm-12">
<img alt="" src="/aspnet-ajax/Editor/images/UserDir/Marketing/Tokyo.png" />
</div>
<div>
<dl class=" col-sm-12">
    <dt>xxxxxxxxxxxxxxxxxxxxxx</dt>
    <dd>xxxxxxxxxxxxxxx</dd>
    <dd><a class="link">xxxxxxxxxxxxxxxxx</a>          </dd>
</dl>
</div>
</div>
</div>
<div class="col-sm-6" style="float: left;">
<div class="row">
<div class="img col-sm-12">
<img alt="" src="/aspnet-ajax/Editor/images/UserDir/Marketing/Tokyo.png" />
</div>
<div>
<dl class=" col-sm-12">
    <dt>xxxxxxxxxxxxxxxxxxxxxx</dt>
    <dd>xxxxxxxxxxxxxxx</dd>
    <dd><a class="link">xxxxxxxxxxxxxxxxx</a>          </dd>
</dl>
</div>
</div>
</div>
</div>
</div>

Joana
Telerik team
 answered on 26 Aug 2016
2 answers
169 views
Hi,

I am trying to use export to csv  functionality of RadGrid on my Hierarchical grid.   When I click on Export to csv link on grid, it only exports headers, I do not see any data in csv file.
Do I need any extra settings/code for this?

Thanks,
Prava
Danniel
Top achievements
Rank 1
 answered on 25 Aug 2016
1 answer
151 views

Hi,

I have extracted the xml for radorgchart.  Within this I have some rendered fields
When I attempt to use this xml to rebind another orgchart, within the databinding event I’d like to display the text of one rendered field within a label control.
I’m nearly there; I can see the rendered fields for a particular node:

 

node.GroupItems[0].RenderedFields


But I can’t figure out how to extract something from this collection, where the label is equal to something.
Any suggestions?

Ivan Danchev
Telerik team
 answered on 25 Aug 2016
1 answer
137 views

Hi,

When the editor is in Div-mode and set to Auto Resize height, then you can't set focus by clicking on the lower part of the editor.

Do the following in the online-demo:

http://demos.telerik.com/aspnet-ajax/editor/examples/contentareamodediv/defaultcs.aspx

  1. Clear the content of the Editor
  2. Set the "Auto Resize to Fit Content Height"

When this is done, you can only set focus by clicking in the top region of the editor!

Regards
Andreas

Joana
Telerik team
 answered on 25 Aug 2016
2 answers
150 views

I can see that he OnClientLoad is not fired when Enabled="false" is set, if I change this to true its working like a charm, is this by design?

seems weird as the control should have a load event on the client either way, problem is i need to declare the editor as a variable to set the enabled state manually with JS.

 

var _editor;
 
function edtRotator_onClientLoad(editor, args) {
    _editor = editor;
}
 
$(".rotator-images").dblclick(function () {
    _editor.enableEditing(true);
     _editor.set_editable(true);
 });

 

 

 

Vessy
Telerik team
 answered on 25 Aug 2016
1 answer
770 views

Been battling this error for a full day for a fully programmatically created RadGrid. Looked through so many posts that concentrate on making sure the RadGrid is created at the correct point in the page lifecycle, making sure columns and groups and created in the correct order etc etc.

I was seeing the error on entering a context header menu after the grid data had been modified at least once.

The fix.... make sure the RadGrid.ID property is set!

Hope this saves somebody else a full day of head scratching!

Eyup
Telerik team
 answered on 25 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?