Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
Hello,

I'm wondering if there is a way to add a new data without refreshing the grid. The problem I'm having is that whenever invoking showInsertItem(), it refreshes the entire form and that causes calling database again and again.

I looked for a property of MasterTableView to prevent the calls, but I couldn't find one.

The reason why it refreshes the entire page is probably because I'm binding data. Does it mean that if data is bound to RadGrid, refreshing is invevitable when inserting/updating/deleting a record?

Please let me know if there is any clue how to resolve this issue.

Thanks!
Nikolay Rusev
Telerik team
 answered on 19 Feb 2010
1 answer
70 views
hi,
i am using rad calendar and the rad calendar is appearing in firefox and i used the css class for calendar. and in ie8 i am unable to see the image it is displaying the text as "open the Calendar Popup" it is displaying the message.


can u give me the solution ASAP

Thanks in advance

Vara Prasad.M
Dimo
Telerik team
 answered on 19 Feb 2010
2 answers
251 views
Hi
How to databind to a textbox using where clause?

In my follwoing code,
I want the user to enter his Surname name and using this name I want to display his picture.
Can I use the where clause in LinqDataSource.
Family = Request.form("txtSurname") ?

It doesnt work in my LinqDataSource.
Any help is appreciated.


<div>  
<asp:ScriptManager ID="ScriptManager1" runat="server">     </asp:ScriptManager>  
              
<telerik:RadPanelBar ID="RadPanelBar1" Runat="server" DataSourceID="LinqDataSource1" DataTextField="pictures" DataValueField="pictures" Width="300px">  
   <ItemTemplate>  
        <fieldset class="FramesetStyle">  
              <asp:Label ID="lbSurname" runat ="server" Text="Family Name: " AssociatedControlID="txtSurname"> </asp:Label>       
               <telerik:RadTextbox ID="txtSurname" runat="server"    
Text='<%# Eval("First") %>' MaxLength="150" Width="200px">         </telerik:RadTextbox>  
              
           <asp:Image ID="Image1" runat="server" CssClass="FramesetStyle"   
                    ImageUrl='<%# Eval("pictures") %>'   
             AlternateText='<%# Eval("pictures""No Image Available") %>' />  
              
            </fieldset>  
            </ItemTemplate>  
              
        </telerik:RadPanelBar>  
        <asp:LinqDataSource ID="LinqDataSource1" runat="server"   
            ContextTypeName="ABCDataContext"   
            Select="new (Notes, email, pictures, First, Family)" TableName="tblTel">  
        </asp:LinqDataSource>  
         
Sucheta Patil
Top achievements
Rank 1
 answered on 19 Feb 2010
3 answers
213 views

The following AutoCompleteType settings have no effect:

<telerik:RadTextBox ID="RadTextBox1" runat="server"    
     EmptyMessage="Username"   
     AutoCompleteType="None" 
/>   

or

<telerik:RadTextBox ID="RadTextBox1" runat="server"    
     EmptyMessage="Username"   
     AutoCompleteType="Email" 
/>   
 

I've tested in both IE8 and FireFox 3.5. Both browsers have autocomplete enabled and regular TextBoxes work fine. Is there an additional setting that I'm missing? Thanks!
Dimo
Telerik team
 answered on 19 Feb 2010
2 answers
73 views
Hello,
I am having a problem where the FilterMenu is clipping the right side and bottom of the filtermenu when it is displayed for a Date column. The FilterMenu displays correctly for all other columns until the Date column is selected and then it is displayed clipped for all columns.
We are limiting the available FilterFormatString to:
 "NoFilter"
"Contains"
"StartsWith"
"GreaterThanOrEqualTo"
"LessThanOrEqualTo"
"IsEmpty"

Mark Galbreath
Top achievements
Rank 2
 answered on 19 Feb 2010
1 answer
94 views
Hello

I'm trying to use the RadColorPicker inside a custom control.

When I try to run my project I get an error in a dynamically generated js file.

The error occurs at a line that says:
_17.style.background=_13.value;

I do have a script manager loaded.

Im using RadControls for ASPNET AJAX Q3 2008



Tsvetie
Telerik team
 answered on 19 Feb 2010
2 answers
80 views
I have a paginated radgrid that connects to a table with 23k records, of which I have 500 records displayed per page.  Now, it takes a long time to get this first display, as I would expect for such a large DataSet.  The problem is that it takes just as long to display another page of the radgrid, like it is going back to the database, refilling the DataSet, and then paging the data into the new display.

I am using the object source design pattern (simplified MVC), where (1) view (ASPX) requests data -> (2) controller (ASP .NET) invokes data access object -> (3) DAO queries database and stores DataSet as model in Application scope if it is not already present -> (4) controller delivers requested data to view

When radgrid needs another page of data, isn't that data readily available in the DataSet?  Is the entire DataSet sent to the client (which is what I want) for quicker page transitions?

Relevant ASPX:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="RadGrid1">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelRenderMode="block" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
 
<telerik:RadGrid ID="radGrid1" runat="server">  
    <MasterTableView> 
    <Columns> 
        <telerik:GridHyperLinkColumn DataTextField = "LIN" HeaderText = "LIN" DataNavigateUrlFields = "LIN" UniqueName = "lin"></telerik:GridHyperLinkColumn> 
 
    * * *  
    </Columns> 
    </MasterTableView> 
</Telerik:RadGrid> 

Relevant Codebehind:
Protected Sub radGrid1_Load( sender As Object, e As EventArgs) Handles radGrid1.Load  
    Try  
        If Application( "lins" ) Is Nothing Then  
            Application( "lins" ) = dao_LIN.Get_LINs()  
        End If  
 
        radGrid1.DataSource = DirectCast( Application( "lins" ), DataSet )  
        radGrid1.DataBind()  
 
    Catch ex As HttpException   
        RadAjaxManager1.Alert( "Communication with the database failed: " & ex.Message())  
        Response.Redirect( "/Lexis/Lexis_error.aspx?module=rcm" )  
    End Try  
End Sub 

The DAO (without exception code):
<DataObject( True )> _  
Public Class dao_LIN  
    <DataObjectMethod( DataObjectMethodType.Fill )> _  
    Public Shared Function Get_LINs() As DataSet  
        Dim ds As DataSet = New DataSet()  
        Dim cmd As OracleCommand = New OracleCommand( "select * from VW_LIN_REF_WITH_COSTS order by LIN", dao_Conn.Instance( "OracleConnectionString" ))  
 
        Dim da As OracleDataAdapter = New OracleDataAdapter( cmd )  
        da.Fill( ds )  
 
        Return ds  
End Function     

Seems pretty straight-forward to me.  What am I missing so that I can get the pagination on the client to be very fast?

Cheers!
Mark
Mark Galbreath
Top achievements
Rank 2
 answered on 19 Feb 2010
1 answer
83 views
We're having an issue with a calendar implementation.  When the user navigates to the page with the calendar on it, everything works fine.  But after clicking the back button (to go to the previous page) and then clicking the forward button (to go back to the calendar page), all JavaScript on the calendar stops working.  In the error console, I see the following error:  "a.Month is undefined."  Is anybody else having trouble with this?  Is there a workaround?
Peter
Telerik team
 answered on 19 Feb 2010
2 answers
155 views
This functionality works great on my local machine.  However, on our dev server it's blowing up when I try to export the grid to the body of an email in outlook.

Why is this happening?


Error: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154. at pricing_refresh_RefreshSummary.SendMail(Stream msOffers) at pricing_refresh_RefreshSummary.RadGrid1_GridExporting(Object source, GridExportingArgs e) at Telerik.Web.UI.RadGrid.OnGridExporting(GridExportingArgs e) at Telerik.Web.UI.Grid.Export.TableViewExporter.ExcelExportRenderForm(HtmlTextWriter nullWriter, Control form) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) at Telerik.Web.UI.Grid.Export.TableViewExporter.ExcelExportRenderPage(HtmlTextWriter nullWriter, Control page) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Adapters.ControlAdapter.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Adapters.ControlAdapter.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.pricing_reports_refreshsummary_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Mike
Top achievements
Rank 1
 answered on 19 Feb 2010
3 answers
144 views
Hello,

As it is said by another user in this thread : http://www.telerik.com/community/forums/aspnet-ajax/scheduler/timeline-view-height.aspx
I am not able to fix the height of the scheduler in timeline view without feeding it with data. So, I cannot see the whole popup calendar to choose a specific date.

Do you know additionnal information on the corrective release date ?
Are there any workaround to get through this ? (I do not want to hide the timeline link)


Peter
Telerik team
 answered on 19 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?