Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
67 views

Hi!

I've noticed that when I have an ajaxified ASP.Net TextBox next to some characters, the Textbox will insert a space before the adjacent characters. Right after the first ajaxified postback, the space disappears. This makes my UI to move a space to the side when the user provokes the first partial postback.

Code example here:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="Button1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="txtRecord" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
 
    <asp:Button ID="Button1" runat="server" Text="Button" /> 
    <asp:TextBox ID="txtRecord" runat="server" Width="22px" Text="0" />| 
    <%-- !!! Atention to the vertical bar right after the textbox! !!!--%> 

How can I make the space introduced by the rendered div panel of the ajaxification disappear?


Regards,

Rodrigo S.
Pavlina
Telerik team
 answered on 28 Sep 2009
1 answer
103 views
HI,

I save blank date using date plicker. When i retrive date from using  '<% Bind("DateP")%>' it show  1900,01,01. I want stop that. If date blank i want show blank space. How can i do that?  Before save its show blank dates. But when i save some data with blank dates its show that date

lakmal
Martin
Telerik team
 answered on 28 Sep 2009
2 answers
112 views
I have a page with a grid I want to export to Excel (client side) via a button.

I got it working easily on a test page.
Drop a grid, populate it with data
add a button as follows
    <asp:Button ID="btnExportExcelClient" runat="server" Text="btnExportExcelClient" 
      OnClientClick="javascript:ExportToExcel();return false;" /> 
and the javascript below
        function ExportToExcel() {  
          var masterTable = $find("<%=RadGrid1.ClientID %>").get_masterTableView();  
          masterTable.exportToExcel();  
        }  
 

So far so good.

My "real life" page is a bit more complex...

The page is a kind of "generic report" page. I pass it a report number on the URL and it shows the various prompts and parameters related to this report.
Once the parameters entered, the user presses a button and I fire a sql server stored procedure that returns one or more "recordsets". Each recordset is shown as a grid with a couple of buttons under the grid allowing (I hope!) to export that particular grid in excel, word or CSV.
I don't do anything fancy with the grid. I had "myGrid.EnabledViewState = false" but I even removed that.
I have not setup any ExportSettings because I think this is required by the Server Side export only.

Since i can have more than one grid on the page, I pass it's clientId to the javascript call, which looks like
      function ExportToExcel(radGridId) {  
        var masterTable = $find(radGridId).get_masterTableView();  
        var result = masterTable.exportToExcel();  
        alert (result);  
      } 

The alert shows me that masterTable.exportToExcel() returns False.

Any idea what I might be doing wrong?

Many Thanks

Eric


Eric
Top achievements
Rank 1
 answered on 28 Sep 2009
2 answers
259 views
We are testing the Captcha control on one of our pages. It sometimes appears as a grey box, but hitting refresh sometimes clears this up.

Could this occur since we are running it currently in an unlicensed format? We are looking to evaluate & test the product before purchase.

My code looks like so:

<telerik:RadCaptcha ID="RadCaptcha1" runat="server" ErrorMessage="The text you entered does not appear to match." CaptchaTextBoxLabel="" ImageStorageLocation="Cache"></telerik:RadCaptcha>
Pero
Telerik team
 answered on 28 Sep 2009
6 answers
166 views
Hello

I have my page set up very simply. All of the controls on the page except the top menu and page title are inside an asp.net panel.
All of the controls in the panel that perform a postback are set up via the ajax manager to trigger an ajax postback where the target control is the panel itself. The page is set up to use a default loading panel which is used by every control that can trigger a postback.

One of the controls inside the panel is 'not working.' This is a third party control. When you click a control to trigger postback, the loading panel is displayed and all of the controls inside the panel 'disappear' except this third party control. When the postback is finished, the page is displayed and all of the other controls are visible except now the third party control has gone.

The third party control is from aspmap. It consists of a map object which displays a map and a toolbar object which zooms and pans the map. The map control works perfectly. It is the zoombar control that isn't working

Any help is much appreciated
Pavlina
Telerik team
 answered on 28 Sep 2009
3 answers
233 views
Hi,

I have to display the following paging format in the grid with Ajax feature.

<<Previous 5 pages | <Previous Page | 1 | 2 | 3 | 4 | 5 | Next Page> | Next 5 Pages>> 

The pager should be display below after hitting "Next  Page"
<<Previous 5 pages | <Previous Page | 2 | 3 | 4 | 5 | 6 | Next Page> | Next 5 Pages>> 

 The pager should be display below after hitting "Next 5 Pages"
<<Previous 5 pages | <Previous Page | 6 | 7 | 8 | 9 | 10 | Next Page> | Next 5 Pages>> 

Viceversa with previous link button.

Thanks in advance.
Naresh.
Pavlina
Telerik team
 answered on 28 Sep 2009
1 answer
202 views
Hi.

I'm trying to boost the performance by loading appointments with a async-method.
But it doesn't seem to work.

Here's my code:

        IAsyncResult beginLoad(Object sender, EventArgs e, AsyncCallback cb, object state) 
        { 
            return loadActivityDataAsync(cb, state); 
        } 
 
 
        private void loadActivityData() 
        { 
            DateTime startDate = radSched.VisibleRangeStart; 
            //6 veckor 
            DateTime endDate = radSched.VisibleRangeEnd; 
 
            //Om sista veckan Ã¤r helt utanför mÃ¥naden 
 
            actList = Activity.getActivities(Master.DB, Master.AresUser.UserID, startDate.AddMonths(-1), endDate.AddMonths(1), cbxShowCompleted.Checked); 
 
            if (actList != null
            { 
                string[] str = new string[actList.Count]; 
                bool hasCompanies = false
 
                for (int i = 0; i < str.Length; i++) 
                { 
                    hasCompanies = true
                    str[i] = actList[i].Company_Entityid.ToString(); 
                } 
 
                if (hasCompanies) 
                    companies = Master.DB.executeDataTable("SELECT * FROM company WHERE author_companyid = " + Master.AresUser.CompanyID + " AND entityID IN (" + string.Join(",", str) + ")"); 
                else 
                    companies = new DataTable(); 
 
                //lblTest.Text = "Start: " + DateTime.Now.ToLongTimeString(); 
            } 
        } 
 
        private void EndLoadActivityData(IAsyncResult res) 
        { 
            radSched.Rebind(); 
            //lblTest.Text = "Stop: " + DateTime.Now.ToLongTimeString() + " Items: " + actList.Count; ; 
        } 
 
        private delegate void GenericDelegate(); 
 
        private IAsyncResult loadActivityDataAsync(AsyncCallback cb, object state) 
        { 
            GenericDelegate gd = loadActivityData; 
            return gd.BeginInvoke(cb, state); 
        } 


And I call the function by running this code:
PageAsyncTask task = new PageAsyncTask(beginLoad, EndLoadActivityData, nullnull); 
Page.RegisterAsyncTask(task); 

actList is a List<T>

If I run this without the async it works perfectly. Otherwise I get a blank scheduler, and some appointments in my actList.
Dimitar Milushev
Telerik team
 answered on 28 Sep 2009
3 answers
116 views
Is ASP.NET AJAX Upload MacBinary compatible?

Thanks in advance
Genady Sergeev
Telerik team
 answered on 28 Sep 2009
13 answers
1.2K+ views
Is there a way to change the font and it's size in buttons that are skinned with the FormDecorator? I've tried putting the values in the formdecorator css all over the place and it never seems to take effect.
Martin
Telerik team
 answered on 28 Sep 2009
1 answer
97 views
I have a radgrid on my web page with several columns of data. One of those columns contains a fairly large amount of text data in every row, so the row heights are pretty huge. I tried setting  ItemStyle-Height="20px". but that did absolutely nothing to resolve the problem. Clearly the height is adjusting to accommodate all the text in the cell, but that's not what I want in this case. I want the text overflow to be hidden.

One special note - This grid (and the text in particular) is going to be exported to XLS, so I don't want to shorten it (i.e. add some function to show only (x) characters). It needs to be available, just offscreen.

I'm on a tight timeline, so please help me!

Thanks,

-Todd
Dimo
Telerik team
 answered on 28 Sep 2009
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?