Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
78 views
I've got radgrid control which is inside a user ascx file. I'm doing this because I should use radgrid in mvc(so there is no other way - is should wrap it in user control)


<%@ Control Language="C#" AutoEventWireup="true" Inherits="MvcBeaWeb.ProductsShowTile" CodeFile="ProductsShowTile.ascx.cs" %><br><%@ Import Namespace="MvcBeaWeb" %><br><%@ Register Assembly="Telerik.Web.UI" TagPrefix="telerik" Namespace="Telerik.Web.UI" %><br><%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %><br><br><br><form id="form_TilesShow" runat="server"><br><br><telerik:RadScriptManager ID="RadScriptManager1" runat="server" ><br></telerik:RadScriptManager><br>  <br>     <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanelTilesShow" LoadingPanelID="RadAjaxLoadingPanelTilesShow"<br>         HorizontalAlign="Center"   Width="472px" ><br><br>         <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"><br>        <AjaxSettings><br>            <telerik:AjaxSetting AjaxControlID="radGrid1"><br>                <UpdatedControls><br>                    <telerik:AjaxUpdatedControl ControlID="radGrid1" /><br>                </UpdatedControls><br>            </telerik:AjaxSetting><br>        </AjaxSettings><br>    </telerik:RadAjaxManager><br>         <div class="mainHolder"><br>                 <div class="qsf-ib tileListHolder">        <br>                      <telerik:RadGrid runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" ID="RadGrid1" AutoGenerateColumns="false" AllowPaging="True" PageSize="3" OnPageIndexChanged="RadGrid2PageIndexChanged"  ><br>                          <PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" PageSizeControlType="RadComboBox"></PagerStyle><br>                             <MasterTableView><br>                                <Columns><br>                                      <telerik:GridBoundColumn DataField="ArticlegroupID" HeaderText="idddd" UniqueName="groupID">                           <br>                                      </telerik:GridBoundColumn><br>                                 <br>                                       <telerik:GridBoundColumn DataField="SpecialWord" HeaderText="ProductDescription" UniqueName="ProductDescr" ><br>                                       </telerik:GridBoundColumn>  <br>                                       <telerik:GridImageColumn DataType="System.String" DataImageUrlFields="ImageFile"<br>                                            AlternateText="Customer image" <br>                                            ImageAlign="Middle" ImageHeight="100px" ImageWidth="82px" HeaderText="Image Column"><br>                                       </telerik:GridImageColumn>   <br>                                </Columns><br>                             </MasterTableView><br>                     <br>                          <br><br>                      </telerik:RadGrid>    <br>                     <br>                                              <br>                 </div><br>         </div><br>     </telerik:RadAjaxPanel> <br>    <br></form>



As I want to use paging  I have set allow pagin to true; In my ascx.cs file I only have Onneeddata source function in which I bind the datasource of the grid. The strangest thing is that it showas me - 3 items of 4/ page1 but nothing happens when I click the second page. There is not even a javascript error  


nam
espace MvcBeaWeb<br>{<br>    public partial class ProductsShowTile: System.Web.Mvc.ViewUserControl<br>    {<br>        protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)<br>    {<br>           <br><br>            RadGrid p_RadIconProducts = this.FindControl("RadGrid1") as RadGrid;<br><br>            List<WebServiceBeaMenu> radTileIcon = new List<WebServiceBeaMenu>();<br>            radTileIcon = MvcBeaDAL.WebServiceBea.GetArticle(p_menuID, p_articlegroupID, p_id).ToList();<br>            p_RadIconProducts.DataSource = radTileIcon;<br>      <br>    }<br>


I'm starting to wonder if I would be able to use paging in mvc as here in mvc there is no postback and I would be happy if you advise me how to overcome this probklem




Radoslav
Telerik team
 answered on 12 Jun 2014
2 answers
183 views
I have a wrapper class over RadDatePicker.
public class DatePicker : Telerik.Web.UI.RadDatePicker
{
    public DatePicker()
        : base()
    {
        //
        // Some code her
        //
    }
}
Now, I have my own implementation here. I want to use the event's like DateInput-ClientEvents-OnBlur:
<tele:DateTimePicker id="date" runat="server" autopostback="true" DateInput-ClientEvents-OnBlur="alert('Ding');"/>

But, I couldn't get it working. Not getting what did I miss.
Thanks.
IO
Gun
Top achievements
Rank 1
 answered on 12 Jun 2014
2 answers
114 views
Hi guys,

I've an aspx web form with a radAjaxManager, which handles some autopostback input and refreshes a custom ascx

In the ascx there is some hiddenField which is setted server side, depending on aspx' input values, and some javascript

I want to execute some javascript function depending on the hiddenField value, so I'm checking it in a js pageLoad event

The problem is, despite the fact html values are updated (I can see it with firebug), the pageLoad sees always the same value

If I do something simple as alert($(hiddenField).val()) I see always the original, entire-page-loaded value, and not the ajax updated value

What's wrong? Some clue?

Thank you,

Martino
Martino
Top achievements
Rank 1
 answered on 12 Jun 2014
3 answers
129 views
Hello,

I'm using OLAP connection to pivot grid with version [2014 Q1 Sp1]. Fallowing steps illustrate the issue I experience.

1) Add dimension attribute to a row or column  field using the dimension attribute's check-box.
2) Hit update button
3) notice that attributes data doesn't show up.

Further, Same data field is repeated when dimension attribute check-box is used. 

Adding attributes using context menu works fine. 

Thanks and Regards,
Yohan
Maria Ilieva
Telerik team
 answered on 12 Jun 2014
10 answers
308 views
Hello,

I'm currently trying to save and load the current selected state of pivot grid in MSSQL database. I've managed to get mentioned functionality working although noticed that Persistence Framework fail to load the persisted view on get request (fields not getting added to grid when loading the persisted view on get request), It only work on post request. Is this a limitation of Persistence Framework? is this achievable? I have attached my sample project (rename the extension as rar).

Steps to reproduce :

1) set some fields on pivot grid using configuration panel.
2) persist the selected view using save  button.
3) press "F5" and refresh the browser.
4) Press "load" button to reload the persisted view.

Thanks and Regards,
Yohan
Vasil
Telerik team
 answered on 12 Jun 2014
1 answer
162 views
Hi,

If you look here, you will see that Lynne had to make changes to her application to get radasyncupload working in a web farm environment:
http://www.telerik.com/forums/radasyncupload-in-web-farm

She says she had to "create a separate application pool for the web application. Change the Identity on the application pool from ApplicationPoolIdentity to LocalSystem.  Change web application to use the new application pool. "

This really worries me. I do not want to touch my app pool identity, and I still need the radasyncupload to work in a web farm environment.

Is it possible that the UseApplicationPoolImpersonation property has been introduced to fix this issue? Can anyone confirm that the radasyncupload control will work properly, out of the box, in a web farm environment, when the Temporary Folder is pointed through the web.config to a shared location that everyone has full access to?

Thanks

Daniel
Hristo Valyavicharski
Telerik team
 answered on 12 Jun 2014
1 answer
160 views
Hello,

  Here i have two questions :-

1.  How  to hide image button from properties, find the attachment

2.  On clicking on that image button i need to call javascript function,  here i am using

     OnClientCommandExecuting="changeImageManager"   its working when i click "imagebutton from tools" but its not working when i click on  "image manager properties" imagebutton.

Please answer me for these questions.
Ianko
Telerik team
 answered on 12 Jun 2014
5 answers
454 views
Hi,

Baed on http://demos.telerik.com/aspnet-ajax/editor/examples/validators/defaultcs.aspx, how can I hide the required filed validator of RadEditor immediately after filling the content and clicking out of it, without clicking on the "Submit" button? exactly like the required filed validators of other controls in the form.

Regards,
Bader
Satbir
Top achievements
Rank 1
 answered on 11 Jun 2014
1 answer
684 views
Hi, I have a template column titled 'FileID' and am trying to access it. Unfortunately whenever it comes across a template column, it will error out saying that FileID is not a column.

ASPX:

<telerik:GridTemplateColumn DataField="FileID" HeaderText="File / Link" HeaderStyle-Width="55px" SortExpression="FileID" HeaderStyle-ForeColor="White" AllowFiltering="false" ItemStyle-Width="20%" ItemStyle-Wrap="true" ShowSortIcon="false">
                            <ItemTemplate>
                                <asp:HyperLink ID="hlLink" runat="server" Target="_blank" Visible="false"></asp:HyperLink>
                            </ItemTemplate>
</telerik:GridTemplateColumn>

From this you can see that my GridTemplateColumn's DataField is named "FileID"

VB.NET:
For Each col In dg.Columns
                If (col.GetType() Is GetType(Telerik.Web.UI.GridBoundColumn)) Then
                    If col.HeaderText = ColumnName Then
                        If HideOrShow Then
                            dg.MasterTableView.GetColumn(col.DataField).Display = True
                        Else
                            dg.MasterTableView.GetColumn(col.DataField).Display = False
                        End If
                    End If
                Else
                    If (col.GetType() Is GetType(Telerik.Web.UI.GridTemplateColumn)) Then
                        If HideOrShow Then
                            dg.MasterTableView.GetColumn(col.DataField).Display = True
                        Else
                            dg.MasterTableView.GetColumn(col.DataField).Display = False
                        End If
                    End If
                End If
            Next

And this is what throws the error:  dg.MasterTableView.GetColumn(col.DataField).Display = True underneath the TemplateColumn part.

Did I not name the column correctly? I thought DataField was what I used, and it works on the rest of the BoundColumns. Can I get some pointers here?

Thanks!
Alexander
Top achievements
Rank 1
 answered on 11 Jun 2014
4 answers
150 views
Hello,

We've recently upgraded our Telerik asp.NET controls to v2014.1.403.40

We noticed that when browsing our pages in IE10 many different javascript errors are being thrown. Such as "Error: Unable to get property 'PageRequestManager' of undefined or null reference" We've done testing with IE11 and IE10 in compatibility mode and both are working properly. This problem is also affecting our screen layouts.

Let me know if you need more information to investigate this problem.
Thanks.
Michael
Top achievements
Rank 1
 answered on 11 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?