Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
379 views

Hi from France !

In my project i've got problem with this situation :

I've got a radgrid, x columns.

My first column is used for generate my rowSpan.
<telerik:GridBoundColumn UniqueName="idMaille" DataField="idMaille" Display="false"></telerik:GridBoundColumn>    

while idMaille is the same, Merge my gridTemplate column : "M0" 

i've set Freezecolumn to 2

HTML generate is like this :

Row 1 :
<tr>
 <td>FirstColumn(idMaille) not displayed</td>
 <td rowspan="2">My Text rowspanned </td>
 <td> next column </td>
</tr>

Row 2 :
<tr>
 <td>FirstColumn(idMaille) not displayed</td>
 <td> next column </td>
</tr>

But because rowspan is set in my 2nd row, my 2nd column is in reality the third !
and when i move scrollbar, javascript set "display:none"

i think this problem can it resolved if we can specify fixed columns (id/property) and generate a css class for reference for javascript.
i'm remember in old project with infragistics, we specify columns who want freeze.

 

<ClientSettings><Scrolling AllowScroll="true" FrozenColumnsCount="2" UseStaticHeaders="true" /></ClientSettings>
<MasterTableView HeaderStyle-HorizontalAlign="Center" ShowHeadersWhenNoRecords="False" >
  <Columns>        
<telerik:GridBoundColumn UniqueName="idMaille" DataField="idMaille" Display="false"></telerik:GridBoundColumn>               
                <telerik:GridTemplateColumn UniqueName="M0">
                    <ItemTemplate>
                        <div class="rw0">
                                test                              
                        </div>
                    </ItemTemplate>   
                </telerik:GridTemplateColumn>
  <telerik:GridTemplateColumn UniqueName="M1">
                    <ItemTemplate>
                        <div class="rw1">
                                test 1
                        </div>
                    </ItemTemplate>   
                </telerik:GridTemplateColumn>
  </Columns>        
</MasterTableView>

 

Attila Antal
Telerik team
 answered on 20 Sep 2019
1 answer
124 views

Hi,

Does anyone experience an issue with the menu not triggering the itemclick event.

I have recently had a forced windows 10 major update on my local development PC, but when I started to work on debugging a code, it looks like the item click event is no longer triggering.

I have the below code

AddHandler MainMenu.ItemClick, AddressOf MenuItemSelected

Then have the following eventhandler

Private Sub MenuItemSelected(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs)

But on putting a breakpoint, the eventhandler function never get triggered when I clicked on the menu, 

Please let me know if I am missing something because this seems to be quite a simple code.

 

Thank you

Peter Milchev
Telerik team
 answered on 19 Sep 2019
1 answer
164 views

Hi 

Is there a way to optimize reports results. We are trying to use it in one of our products at ZTABS but when data gets larger, reports get really slow. What to do ? Specially in case of joins in the queries. 

 

Todor
Telerik team
 answered on 19 Sep 2019
1 answer
126 views

I have a rad grid full of keys assigned to an employee, which is populated from an employee selected in a combo box, and that information is pulled in from sql. I have the allow edit column turned on as there is one column that will need updating, the key status. All other columns are hidden when I hit edit. When the edit button is hit, a drop down box appears under the selected row, full of options for the status of the key. One should be selected, and then when update is hit, it should then change the key status in the grid. To do this, I need to pass a parameter, ID, to the update key store procedure I want to use for updating to the database. Each key has an ID, and upon editing a row, the parameter of course needs to be the value of the ID column in that selected row upon editing. How exactly do I implement this? Pictures attached to show what I am working with, things blurred out as necessary. I am working in VB.

 

 

 
Attila Antal
Telerik team
 answered on 18 Sep 2019
4 answers
110 views

I have 2 objects:

Checkbox1
ComboBox1

When the checkbox1 is checked Combobox1 becomes visible="true" and enabled.
I've used the AJAXManager UpdatedControls and this is working perfectly but the issue is that when im trying to use an eventhandler for example "OnIndexChanged" of Combobox1 it never gets fired.

Below is my sample code:

AjaxManager
 

<telerik:RadAjaxManager runat="server" ID="RadAjaxManager"
       DefaultLoadingPanelID="RadAjaxLoadingPanel1">
       <AjaxSettings>
 <telerik:AjaxSetting AjaxControlID="ComboCompanies">
               <UpdatedControls>
               </UpdatedControls>
           </telerik:AjaxSetting>
           <telerik:AjaxSetting AjaxControlID="chkCompany">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="ComboCompanies" />
               </UpdatedControls>
           </telerik:AjaxSetting>
       </AjaxSettings>
   </telerik:RadAjaxManager>

 

    

Eyup
Telerik team
 answered on 18 Sep 2019
3 answers
186 views
I am noticing that everything on my page is successfully caching except the calls to the RadScriptManager and RadStyleSheetManager resource handlers.   Here's an example of the firebug output from the style sheets:

Last Modified   Wed Mar 31 2010 10:52:18 GMT-0400 (Eastern Daylight Time)
Last Fetched   Wed Mar 31 2010 10:52:18 GMT-0400 (Eastern Daylight Time)
Expires   Thu Mar 31 2011 10:51:28 GMT-0400 (Eastern Daylight Time)
Data Size   11318
Fetch Count   8
Device   disk


Response Headers
Cache-Control   public, max-age=31535988
Content-Type   application/x-javascript
Content-Encoding   gzip
Expires   Thu, 31 Mar 2011 14:51:29 GMT
Vary   User-Agent
Server   Microsoft-IIS/7.5
X-AspNet-Version   2.0.50727
X-Powered-By   ASP.NET
Date   Wed, 31 Mar 2010 14:51:40 GMT
Content-Length   11318

Request Headers
Host   localhost:81
User-Agent   Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2) Gecko/20100105 Firefox/3.6
Accept   text/css,*/*;q=0.1
Accept-Language   en-ca,en;q=0.5
Accept-Encoding   gzip,deflate
Accept-Charset   ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive   115
Connection   keep-alive
Referer   http://localhost:81/
Cookie   ASP.NET_SessionId=wyuncl55hepul5aai14evaqg
Cache-Control   max-age=0

Any thoughts on why it isn't caching?

Thanks,
Colin
Rumen
Telerik team
 answered on 17 Sep 2019
7 answers
62 views

Hello guys,

 

We've faced an issue with context menu on several RAD controls when running on MacOS 10.14.x (Mojave) with FireFox 66.0.x (Quantum).

Using touchpad or mouse, when right clicking for context menu, it just flashed and doesn't stay open: it opens and then suddenly closes.

We are using Telerik Asp.Net Ajax version 2017.2.503.40 but it can be also replicated on your demo version:

https://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/columns/context-menu/defaultcs.aspx

https://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultcs.aspx

 

Not sure if you can provide a fast workaround for this but I just wanted to let you know.

I've checked for some open cases before creating this thread and hope I didn't duplicate something. Please move/close it if necessary.

 

Regards,

Andrei V.

 

Andrei
Top achievements
Rank 2
 answered on 17 Sep 2019
1 answer
130 views

Dear All,

 

i am new to telerik, especially radgrid. right now i am creating windows popup Employee selector using RadWindows, triggered by button show employee, and then calling another page with radgrid showing Employee record include filter on and paging, it's worked perfectly. But, there some error that i faced, everytime i'm doing filtering or paging on radgrid, after i clicked button close on popup radwindows and then i've clicked button show employee again, popup open but with previously action state that i've done on grid, either filtering or paging.

How can i refresh Radgrid into original state, like first time opening popup and showing radgrid data without filtering or paging state ? 

Thanks.

<%@ Register TagPrefix="UC" TagName="UCEmploye" Src="../SIM/UcEmployeeBrowser.ascx" %>
 
<asp:Button ID="btnSearch" runat="server" Text="..." OnClick="btnSearch_Click" CausesValidation="false" CssClass="btn btn-primary" Height="28px" ToolTip="Click here to browse employee" />
 
<telerik:RadWindow ID="RwEmployeeBrowser" runat="server" Width="1200px" Height="550px" KeepInScreenBounds="true" Title="Select Employee">
    <ContentTemplate>
        <UC:UCEmploye ID="UCEmploye" runat="server" />
    </ContentTemplate>
</telerik:RadWindow>
Attila Antal
Telerik team
 answered on 17 Sep 2019
1 answer
150 views

Using file explorer I am uploading files to my web server. The problem that I am facing is when I try to upload a file which contains <script></script> tags from a cross-origin (CORS), it fails showing a tiny red dot. However,the uploading of files containing script tags from 'same origin' succeeds.

Also note that Temporary folder is given enough permissions and I my web server is IIS. The error occurs in RadAsyncUploadScript.js while making an ajax request.

To be more specific the line "n.send(this.formData);" in RadAsyncUploadScript.js throws an error stating:

"Failed to load resource: the server responded with a status of 403 ()"

 

Thanks and Regards

Bhanu

Vessy
Telerik team
 answered on 16 Sep 2019
15 answers
2.2K+ views
I am trying to access the DataItem for the parent of a detail grid.  Currently I am using the below code.  However, the DataItem is returning null for the parentItem.

protected

 

void grdOrderItems_ItemDataBound(object sender, GridItemEventArgs e)

 

{

 

  if (e.Item.OwnerTableView.Name == "Steps")

 

  {

 

    if (e.Item is GridDataItem && !e.Item.IsInEditMode)

 

    {

 

      string stepId = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["Id"].ToString();

 

 


      GridDataItem
item = e.Item as GridDataItem;

 

 

      // item.DataItem is valid here

 

 


      GridDataItem
parentItem = item.OwnerTableView.ParentItem;

 

 

      // parentItem.DataItem is returning null

 

 

    }

 

  }

}

Attila Antal
Telerik team
 answered on 16 Sep 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?