Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
156 views

hi 

I use radGrid with the following code:

         <telerik:RadGrid  
                ID="RadGrid_Fibers"  
                RenderMode="Auto"
                GridLines="Both" runat="server"
                Skin="Sunset"
                DataSourceID="SqlDataSource1_SP_Tow_Prog_Fibers_Select"
                AutoGenerateColumns="False">

                <MasterTableView Width="100%" ShowFooter="True"
                    DataSourceID="SqlDataSource1_SP_Tow_Prog_Fibers_Select"
                    DataKeyNames="TowProgFibers_ID">

                    <GroupByExpressions>
                        <telerik:GridGroupByExpression>
                            <SelectFields>
                                <telerik:GridGroupByField FieldAlias="Tow_Had" FieldName="Tow_Had" FormatString="" HeaderText="" />
                            </SelectFields>
                            <GroupByFields>
                                <telerik:GridGroupByField FieldAlias="Tow_Had" FieldName="Tow_Had" FormatString="" HeaderText="" />
                            </GroupByFields>
                        </telerik:GridGroupByExpression>
                    </GroupByExpressions>


  that when a skin such as sunset is used, radGrid works without problems.

But when I don't want to use skin and Skin ="" is set with an error:

Unable to cast object of type 'Telerik.Web.UI.GridImageButton' to type 'Telerik.Web.UI.ElasticButton'

How to solve this problem? please help.

Mohamad Javad
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 24 Apr 2023
1 answer
140 views

Hello, everyone. I'm a novice. I don't how to use the <GridImageColumn>, I have a request to display qualified  photos from a remote computer.

For example, A textbox inputs 'abc',then I click the button of 'submit', the <GridImageColumn> or another control should find and display the 'abc.jpg' from the remote computer. The remote TargetFolder url just like '\\123.**.***.***\photo' and I hope it will be shown in <DetailTables> .

How should I edit the back-end code, so that I could get the pictures and also display it. I will post my code.

I'd really appreciate it if you could help me!

<telerik:RadPageView runat="server" ID="RadPageView3">
                 <telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" BackColor="#FFFFFF">                 
                     <div class="ContentRow">
                        <div class="column c1 ">
                            <telerik:RadLabel ID="labcrate" runat="server" Text="LabCrate" CssClass="LabOnRight" ForeColor="#000000"></telerik:RadLabel>
                        </div>
                        <div class="column c2 ">
                             <telerik:RadTextBox ID="txtCrate" runat="server"></telerik:RadTextBox>
                        </div>
                         <div class="column c3 ">
                            <telerik:RadButton ID="btnSubmit" runat="server" Text="Submit" AutoPostBack ="true"></telerik:RadButton>
                        </div>
                    </div>

                     <telerik:RadGrid RenderMode="Lightweight" runat="server" ID="RG_Carrier" Height="740px" AllowPaging="true" PageSize="10" AllowAutomaticDeletes="false"
                        AllowAutomaticUpdates="false" AllowAutomaticInserts="false" AllowFilteringByColumn="false" AllowMultiRowSelection="true"  OnNeedDataSource="RadGrid_NeedDataSource" >
                         <PagerStyle Position="Bottom" AlwaysVisible="true" PageSizes="10,20,30"></PagerStyle>
                        <ClientSettings EnableAlternatingItems="true" AllowKeyboardNavigation="False" EnablePostBackOnRowClick="true">
                            <Selecting AllowRowSelect="false" />
                            <Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling>
                        </ClientSettings>
                         <AlternatingItemStyle BackColor ="LightBlue" />
                          <MasterTableView DataKeyNames="CrateNo" AutoGenerateColumns="false" CommandItemDisplay="Top" EditMode="PopUp">
                            <CommandItemSettings ShowAddNewRecordButton="false" />
                            <Columns>
                                  <telerik:GridBoundColumn AllowFiltering="false" FilterControlWidth="120px" AutoPostBackOnFilter="true" DataField="CrateNo" UniqueName="CrateNo" HeaderText="CrateNo">
                                    <HeaderStyle Width="150px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn AllowFiltering="false" DataField="Qty" UniqueName="Qty" HeaderText="Qty">
                                    <HeaderStyle Width="60px" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn AllowFiltering="false" FilterControlWidth="120px" AutoPostBackOnFilter="true" DataField="ProductName" UniqueName="ProductName" HeaderText="ProductName">
                                    <HeaderStyle Width="150px" />
                                </telerik:GridBoundColumn>  

                                
                            </Columns>                                     
                               <DetailTables>
                                <telerik:GridTableView DataKeyNames="CratePhoto" ClientDataKeyNames="CratePhoto" runat="server" CommandDisplay="None" AutoGenerateColumns="true" AllowPaging="false" EditMode="PopUp">
                                    <Columns>
                                        <telerik:GridImageColumn DataType="System.String" 
  DataImageUrlFormatString="" 
  ImageAlign="Middle" ImageHeight="110px" ImageWidth="90px" HeaderText="CratePhoto">
</telerik:GridImageColumn>
    
                                    </Columns>
                                </telerik:GridTableView>
                            </DetailTables>
                        </MasterTableView>

                    </telerik:RadGrid>
                     
                      </telerik:RadAjaxPanel>
            </telerik:RadPageView>

Attila Antal
Telerik team
 answered on 24 Apr 2023
1 answer
243 views

Does the functionality exist to format a range of cells as a table like can be done in Excel?

I use the data provider to read the format of an existing Excel file.

But, a range of cells formatted as a table is not copied into the RadSpreadsheet.

Attila Antal
Telerik team
 answered on 24 Apr 2023
12 answers
2.8K+ views
I'm unclear as to what is causing this error but until recently this error was never being thrown. 
Here's the details:
1. Clicking on  a nav bar to load an .ascx page that's inside another .ascx page
2. Page never loads and appears to hang.
3. No server side errors are found during debugging so it appears to be client side

Here's the error message from Google Chrome's Developer Tools Console:
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…e35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:6
Error.create Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…e35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:6
Sys.WebForms.PageRequestManager._createPageRequestManagerServerError Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:15
Sys.WebForms.PageRequestManager._parseDelta Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:15
Sys.WebForms.PageRequestManager._onFormSubmitCompleted Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:15
(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…e35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:6
(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…e35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:6
Sys.Net.WebRequest.completed Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…e35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:6
_onReadyStateChange Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…e35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:6

Any ideas how I should try to trouble shoot this? Is it a page lifecycle issue?
Jason
Archana
Top achievements
Rank 1
Iron
 answered on 21 Apr 2023
1 answer
192 views

Is there a purpose of the Save Icon on the Home tab toolbar?

I would like to capture some kind of event when a user clicks this icon to direct it to my SaveWorkbook method override in my custom provider.

But, I don't see any such method implemented that can override.

If no ability exists to do this, why then is the icon even there?

 

Doncho
Telerik team
 answered on 21 Apr 2023
0 answers
134 views

So I have a organization chart and a button. When I click on the button, I will fill in a DataTable stored in ViewState to be the data source of the org chart. Since I'm still having the problem in another post that nobody replied yet: Databinding keeps disappearing when post back in UI for ASP.NET AJAX | Telerik Forums  So I add some handling in Page_Load to avoid the org chart from becoming blank.

My Page logic is as follows:


<Telerik:RadButton ID="btn1" OnClick="btn_click">
...
<Telerik:RadOrgChart ID="OrgChart1">



protected DataTable table1 { get { if (ViewState["table1"] != null) return (DataTable)ViewState["table1"]; else

return null; } set { ViewState["table1"] = value; } } protected DataTable table2 { get { if (ViewState["table2"] != null) return (DataTable)ViewState["table2"]; else return null; } set { ViewState["table2"] = value; } } protected void Page_Load(object sender, EventArgs e) { if (!PostBack) // do something

if (table1 != null && table2!=null) { OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldID = "aaa"; OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldParentID = "bbb"; OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataCollapsedField = "ccc"; OrgChart1.RenderedFields.NodeFields.Add(new OrgChartRenderedField() { DataField = "A" }); OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataSource = table1; OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldNodeID = "aaa"; OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldID = "ddd"; OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataSource = table2; OrgChart1.DataBind(); } }



protected void btn_click(object sender, EventArgs e) {

               // do something to provide data for table1 and table2

                OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldID = "aaa";
                OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataFieldParentID = "bbb";
                OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataCollapsedField = "ccc";
                OrgChart1.RenderedFields.NodeFields.Add(new OrgChartRenderedField() { DataField = "A" });
                OrgChart1.GroupEnabledBinding.NodeBindingSettings.DataSource = table1;

                OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldNodeID = "aaa";
                OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataFieldID = "ddd";
                OrgChart1.GroupEnabledBinding.GroupItemBindingSettings.DataSource = table2;

                OrgChart1.DataBind();

}

    

And then, when the page is post back, suddenly there are duplicate group names in the org chart as you can see in the screenshot.

Can somebody help me?

yuki
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 21 Apr 2023
0 answers
154 views
Is it possible to add a radbutton to org chart nodes? I would like to add a button to org chart nodes, and when the button is clicked, something happens to the webpage. I looked through demos and didn't find anything related? Could someone tell me if this is feasible? Thanks.
yuki
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 21 Apr 2023
0 answers
128 views

I am using telerik version 2014.3.1024.45 with Asp.Net Webforms and Recently i have upgraded to jQuery Version from 2.0.3 to 3.6.3.

 

i am using Telerik Grid control in my application. Every row in a grid has a checkbox. if clicked on checkbox or on a row, that particular row will get selected. This functionality is used to work with jQuery 2.0.3. but after upgrading jQuery Version to 3.6.3, row is getting selected only when clicked on row, row is not getting selected when clicked on checkbox.

S
Top achievements
Rank 1
 asked on 21 Apr 2023
0 answers
285 views

Hi All,

I am trying to provide read-only access to certain users. This user should not be able to remove the uploaded file. 

How do I hide/disable the remove button from server side? 

 

 

Neil
Top achievements
Rank 2
 updated question on 20 Apr 2023
0 answers
152 views

So we have BatchEdit working and used in multiple pages. On one though one of the fields that gets edited is via a RadComboBox. No issues with changing, submitting with a CommandButton to save. All good. The only issue is that when you change the item in the Combo a little red glyph shows up in the cell upper left corner to indicate the data is changed. This happens with other cells as well and is expected and good.

When we click the save button the BatchEditCommand event fires and the data is saved.  If the Combo box was changed the data is changed correctly, but the Red Glyph doesnt go away. Even if we rebind the grid the glyph doesnt go away. If we change only cells that are just textboxes the Red Glyph goes away after the save.

What are we missing?

Keith
Top achievements
Rank 1
Iron
Iron
 asked on 19 Apr 2023
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?