Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
120 views
I have a grid on the page.  I've setup the Self-Hierarchy settings properly, binded the data, and everything works absolutely great!  I then wrote some code to remove the ExpandCollapseColum's and wrote some more code to place a custom button in the first column or each row that would allow me to expand and collapse.  I did this so all the columns in the nested table views match up with the master table view. Up to here, everything works fine.

Problem:  When I resize a column, only the Master Table view column resizes, but not the corresponsding column in the Nested Table view.  This behavior is technically correct.  Obviously I want the column in question in the master table and in all of the nested tables to resize together.  Is there a way to do this?  If so, how do I get this to work?
Daryl
Top achievements
Rank 1
 answered on 17 Apr 2009
1 answer
206 views
Hello,

I try to clear the value of a RadNumericTextBox.

I write :

<telerik:RadNumericTextBox ID="RedemptionRightException" MinValue="0" MaxValue="100" 
    
EnableEmbeddedSkins="false" runat="server" ForeColor="Red" MinValue="0">
    <ClientEvents OnError="ErrorPercent" /> 
</telerik:RadNumericTextBox> 

function ErrorPercent(sender, args)     
{  
 alert('value is not correct');          
 sender.clear();  
 return false;  
}   

But the value after the clear is 100.

Can you help me ?

Thanks,

Sabrina
Daniel
Telerik team
 answered on 17 Apr 2009
3 answers
1.0K+ views
Is there a setting I can change so that the columns are formatted as text in the exported Excel document?

I'm exporting the RadGrid to excel using the following settings.  When I have a large number without dashes (for example a 13-digit ISBN like 9780071447997, it shows up as scientific format in the excel file (9.78007E+12).   It would be a lot more user-friendly if the value is exported without any modification (i.e., format all values as text). 

 <ExportSettings ExportOnlyData="true">
            <Excel Format="Html" />
        </ExportSettings>

 

string filename = "OrderImport";

 

MessageGrid.ExportSettings.FileName = filename;

MessageGrid.ExportSettings.IgnorePaging =

true;

 

MessageGrid.ExportSettings.OpenInNewWindow =

true;

 

MessageGrid.MasterTableView.ExportToExcel();

Daniel
Telerik team
 answered on 17 Apr 2009
4 answers
233 views
Development Environment:  Windows XP Pro SP3, VB2008 SP1 (therefore ASP.NET 3.5), IE7, Radcontrols for ASP.NET AJAX Q2 2008.
I am receiving about 9 messages on my MainMasterPage stating "Validation (ASP.NET): Attribute 'ID' is not a valid attibute of element 'RadTab'.  What is causing this as I see it used in your documentation on this url http://www.telerik.com/help/aspnet-ajax/change-tabs-mouseover.html?

Here is a portion of the code that is triggering these messages:

 

<

 

telerik:RadTabStrip ID="tabMain" runat="server" Skin="Outlook" SelectedIndex="1" CausesValidation="False"> 

 

 

 

 

 

<Tabs>

 

<telerik:RadTab ID="HomeTab" runat="server" NavigateUrl="/WebGT/Pages/Home/Home.aspx" Text="Home" ToolTip="Web-GT Home Page"></telerik:RadTab>

 

 

 

 

<telerik:RadTab ID="SummaryTab" runat="server"

 

NavigateUrl="/WebGT/Pages/Summary/Summary.aspx" Text="Summary"

 

ToolTip="Grant Summary" Selected="True"></telerik:RadTab>

 

 

 

 

<telerik:RadTab ID="GrantsTab" runat="server" NavigateUrl="/WebGT/Pages/Grants/Grants.aspx" Text="Grants" ToolTip="Enter and manage grants"></telerik:RadTab>

 

 

 

 

 

<telerik:RadTab ID="MessagesTab" runat="server" NavigateUrl="/WebGT/Pages/Messages/Messages.aspx" Text="Messages" ToolTip="View messages."></telerik:RadTab>

 

 

 

Thanks,
Alex 

 

 

 

 

 

 

 

 

Alex
Top achievements
Rank 1
 answered on 17 Apr 2009
7 answers
735 views
I have a couple of questions, but first let me explain my situation. I have a web page with multiple user controls. Three of these user controls contain a RadGrid embedded in them. I would like to use the RadAjaxManager with each of theses grids. So, I have a RadAjaxManager embedded directly on my main page. In order to add AjaxSettings for each of these grids I store the RadAjaxManager in the Session collection and reference it on the Page_Load event of each User Control in order to add the AjaxSetting for the embedded grid.

Here's an example of one of the grids:

        protected void Page_Load(object sender, EventArgs e) 
        { 
                ((RadAjaxManager)Session[Main.RadAjaxManagerKey]).AjaxSettings.AddAjaxSetting(radGrid, radGrid, RadAjaxLoadingDetailPanel); 
        } 

Where when the radGrid executes an AJAX callback it should update itself using the RadAjaxLoadingDetailPanel.

Now this executes a callback the first time. Every proceeding time, however, a postback is executed. Is there any obvious reason as to why this would be happening?

Also, if (the first time) I click the a column header for the radGrid it does a callback to sort the columns and updates itself. If I click a row it also does a callback, but what I'd really like is for it to do a postback on a row click and a callback on a column header click. I know why it does this currently: every postback for the radGrid is turned into a callback. Is there anyway to specifically limit which functions perform callbacks and which ones perform postbacks?

I really need help with these two issues. Without using the AJAX manager my grid functions in the desired manner, but I don't get a "LOADING" gif for non-postback functions (sorting for example) so the user is uncertain if any action is occurring.

Any solutions to these problems would be appreciated. Thanks.
Sebastian
Telerik team
 answered on 17 Apr 2009
6 answers
158 views
I have a combo box on the page that contains, say, 3 items. The combo box's dropdown has no height set on it. If I click the down arrow on the box, the dropdown shows up and I can see all 3 items.

However, if I click within the combo box (like on the text itself) and this is the first click on that combo box after a page refresh, the dropdown shows up with scrollbars. (Additionally, the horizontal scrollbar actually hides the last item, making it seem on first glance that the dropdown only contains 2 items.) After that first click, no matter what I click, the dropdown shows up fine without scrollbars.

The issue is only on that first click of a page refresh when I click on the text in the combo box. Is there a way to avoid those scrollbars (without having to explicitly set the height of the dropdown)?
Karim
Top achievements
Rank 1
 answered on 17 Apr 2009
1 answer
103 views
Dear all,

I am still learning both Ajax and Telerik so I may ask "stupid" questions...
Basically, we have a treeview on a form and want to trigger some update in the tree on the server side and see it reflected on the front end when the job is finished.

I initially implemented this in a "slightly home made" manner as follows:
  • my tree view was in a Ajax update panel
  • A hidden button was defined as a trigger for that panel
  • A javascript function was setting a couple of variables in hidden fields and then calling the Submit() on the button

It worked fine but I am trying to do this in a more "Ajax/Telerik" way.

My cuning plan is

  • My tree view is managed via a AjaxManagerProxy
  • A popup window gathers some details required for the update and calls a javascript callback function on close
  • the javascript function calls ajaxRequest(...) through RadAjaxManager.GetCurrent(Page).ClientID

So far everything works fine but I can't work out how to make sure the TreeView modifications are reflected on the client side because I can't work out how to express that the Treeview on the client must be updated when this javascript function fires...
I was hoping I would see AjaxManager(Proxy) itself in the controls "that will initiate Ajax Requests" in the AjaxManagerProxy configuration but nop!

Could someone tell me what I am missing?

Of course, I could re-use my hidden button but I was hoping for something more sophisticated...

Regards


Eric

PS: I forgot to mention that I have several content panes in that page

Eric
Top achievements
Rank 1
 answered on 17 Apr 2009
21 answers
1.9K+ views
I have a grid on a few of my pages which takes the user to a deatil page using Response.Redirect.
When i click on the grid the loading image shows but when the control is transfered to the detail page, before the page is rendered there is a blank screen.
I want to show a loading image there as well till the time the page is rendered.

How can I do that?
I tried the implementation as shown in this example :
http://www.telerik.com/help/aspnet-ajax/ajxshowloadingpaneloninitialpageload.html

But it did not work for me.
Kevin
Top achievements
Rank 2
 answered on 17 Apr 2009
9 answers
495 views
I'm running SP2 (actually the 1316 build) and I tried to implement the new compression module but it keeps saying that it can't be found.  I've rebuilt the project, verified the right DLL is in the folder etc.  This is occuring on the VS2008 webserver but the site itself is running IIS6.  Any ideas?

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load type 'Telerik.Web.UI.CompressionModule'.
Source Error:

Line 119:            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
Line 120: <add name="TelerikCompressionModule" type="Telerik.Web.UI.CompressionModule" />Line 121:        </httpModules>
Christian
Top achievements
Rank 1
 answered on 17 Apr 2009
2 answers
146 views
I have tried to use the "Confirm postback with radconfirm" technique as show in the demo http://demos.telerik.com/aspnet-ajax/window/examples/browserdialogboxes/defaultvb.aspx.  But when the asp panels that control the navigation of the page are Ajaxified in the Ajax manager, the OnClick sub of PostbackButton 1 (which makes one panel visible and another invisible) is not executed. What do I need to do to get the sub to execute?

Thanks,

David Ulf
David Ulf
Top achievements
Rank 1
 answered on 17 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?