Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
135 views
Hello,
I have a 3 Tabs on my page(Tab1, Tab2, Tab3)
Let say if user click on the Tab2 and page got loaded. If User clicks on the same Tab2 again.. i want to reload the the page again

how can i do this?

Thank You
Venkata
Top achievements
Rank 1
 answered on 28 Mar 2014
1 answer
122 views
I have several textBoxes in a template edit form that I need to validate. The value could be null (no input) otherwise a number with max value 100. Moreover, I need to show/format the number with % but, being the db column an int, I do not have to write the % but only show it in the text box. How can I do the above?
Thanks,
Felice
<EditFormSettings EditFormType="Template">
  <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column">  </EditColumn>
     <FormTemplate>
          <table>
            <tr>
             <td> </td>
             <td>
              <asp:Label ID="Label1" runat="server" Text="Margins:"></asp:Label>
              </td>
              <td>
               <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind( "margins" ) %>'></asp:TextBox>
Felice
Top achievements
Rank 1
 answered on 28 Mar 2014
2 answers
89 views
Hello all,

I have a radGrid1 showing basic customer information and another RadGrid2 showing customer contacts, when I select a customer in Radgrid1 their contacts are shown in radGrid2, I put a button in RadGrid1 to edit the information of the customer and another button in RadGrid2 to edit the information of the contact, when the button is clicked, the Editform is shown, but if a select another customer the EditForm is still visible in the RadGrid1, and the same happens when I edit a contact in RadGrid2.

What I need is that the EditForm of RadGrid1 close or hide when another row is selected in RadGrid1 or when you click the edit button of RadGrid2 

Sorry about my spelling,
Regards
Gaby Miranda
Gabriela
Top achievements
Rank 1
 answered on 28 Mar 2014
2 answers
268 views
I have this line of code in a radGrid template:
<asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind( "valuePCS" ) %>'></asp:TextBox>
and it is working fine.

My problem is that I would like to show the format "€" but if I add the formatting like this:
<asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind( "valuePCS", "{0:C0}" ) %>'></asp:TextBox>

on the first insert of the new record the formatting is not shown yet then the record is saved without problems;
if I open again the record, this time the formatting is visible and if I update the record it gives an error on the input string formatting.

Error:
[FormatException: Formato della stringa di input non corretto.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +10896279
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +145
   System.String.System.IConvertible.ToInt32(IFormatProvider provider) +46
   System.Convert.ChangeType(Object value, TypeCode typeCode, IFormatProvider provider) +297
   System.Web.UI.WebControls.Parameter.GetValue(Object value, String defaultValue, TypeCode type, Boolean convertEmptyStringToNull, Boolean ignoreNullableTypeChanges) +126
   System.Web.UI.WebControls.Parameter.GetValue(Object value, Boolean ignoreNullableTypeChanges) +63
   System.Web.UI.WebControls.SqlDataSourceView.AddParameters(DbCommand command, ParameterCollection reference, IDictionary parameters, IDictionary exclusionList, String oldValuesParameterFormatString) +535
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) +324
   System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +87
   Telerik.Web.UI.GridTableView.PerformUpdate(GridEditableItem editedItem, Boolean suppressRebind) +430
   Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) +2063
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +205
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridEditFormItem.OnBubbleEvent(Object source, EventArgs e) +372
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +114
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +252
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724

How do I solve this problem?
Thanks,
Felice
Felice
Top achievements
Rank 1
 answered on 28 Mar 2014
4 answers
180 views
Hello,

I am trying to use the asyncupload control within a DNN (Dotnetnuke) module.

The control basically works but the control causes all the other controls on the page to refresh when the postback fires.

I've wrapped the asyncupload control in an ajaxpanel. It uploads the file fine and calls the 'onfileupload'  event with a parameter successfully. I use this event to copy the uploaded to a destination based on the parameter.

I can supply code snippets to give more detail, but am unable to paste into this thread.

But how can I stop it from loading all the other controls on the page?

I'd be very grateful for any helpful suggestions.

Best Regards,

Steve
Stephen
Top achievements
Rank 1
 answered on 28 Mar 2014
3 answers
209 views
According to the given screen shot i have added a Skill as a Resource Type for rad scheduler. but i need to display some additional columns such as employee name who has the skills and i know it is possible to display multiple content within a single resource. the requirement is to display multiple content in multiple columns. below code explain how i have achieved the result in screen shot.

                RadScheduler1.GroupBy = "EmployeeInfo";
                RadScheduler1.GroupingDirection = GroupingDirection.Vertical;
                RadScheduler1.SelectedDate =new DateTime( DateTime.Now.Year,DateTime.Now.Month,1);
                RadScheduler1.TimelineView.NumberOfSlots = DateTime.DaysInMonth(RadScheduler1.SelectedDate.Year, RadScheduler1.SelectedDate.Month); 


                RadScheduler1.DataRecurrenceParentKeyField = "RecurrenceParentID";
                ResourceType rt = new ResourceType("EmployeeInfo");
                rt.DataSource = Employees;
                rt.KeyField = "EmployeeNo";
                rt.ForeignKeyField = "EmployeeNo";
                rt.TextField = "Skill";
                rt.Name = "EmployeeInfo";
                
                RadScheduler1.ResourceTypes.Add(rt);                                                                                                                                                                                                        is there any  possibility  to display multiple columns or group by multiple resource types?                                                                                                                                      my second resource type is given below                                                                                                                                                                                                                                       ResourceType rt1 = new ResourceType("FirstName");
                rt1.DataSource = Employees;
                rt1.KeyField = "EmployeeNo";
                rt1.ForeignKeyField = "EmployeeNo";
                rt1.TextField = "FirstName";
                rt1.Name = "FirstName";
                
                RadScheduler1.ResourceTypes.Add(rt1);                                                                                                                                                                                                      if i set                                                                                                                                                                                                                                                                                                    RadScheduler1.GroupBy = "EmployeeInfo,FirstName";  it only display the first resource type in the resource type





Boyan Dimitrov
Telerik team
 answered on 28 Mar 2014
6 answers
306 views
i want columns of my radgrid should resize, and for this i have used AllowColumnResize property, but im getting error on rezise, and the error is  'this.HeaderRow.Cells[...].scrollWidth' is null or not an object.
The code is gien below:-

<

telerik:RadGrid ID="rdgCustomers" AllowMultiRowSelection="false" runat="server"

 

 

Skin="Outlook" Width="100%" PageSize="10" BorderStyle="None" AllowPaging="True"

 

 

AutoGenerateColumns="true" ItemStyle-Wrap="false" GridLines="None" OnItemCreated="rdgCustomers_ItemCreated"

 

 

OnItemCommand="rdgCustomers_ItemCommand">

 

 

<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="true">

 

 

<ClientEvents OnRowDblClick="OpenCustomer"/>

 

 

<Resizing AllowRowResize="False" EnableRealTimeResize="True" ResizeGridOnColumnResize="true"

 

 

AllowColumnResize="True"></Resizing>

 

 

<Scrolling AllowScroll="true" UseStaticHeaders="True" />

 

 

<Selecting AllowRowSelect="True" />

 

 

</ClientSettings>

 

 

<MasterTableView CommandItemDisplay="None" TableLayout="Fixed" ClientDataKeyNames="ID"

 

 

ItemStyle-Wrap="false" AutoGenerateColumns="true" DataKeyNames="ID" Width="100%">

 

 

<PagerStyle Wrap="false" Mode="NextPrevAndNumeric" PrevPageImageUrl="Images/arrowLeft.gif"

 

 

NextPageImageUrl="Images/arrowRight.gif" NextPageText="Next" PrevPageText="Prev"

 

 

AlwaysVisible="true" />

 

 

<Columns>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 


Pavlina
Telerik team
 answered on 28 Mar 2014
1 answer
108 views
We are having a tough time when the menu is used with IFRAME. The menu is in the parent and the screens to show the data are in the IFRAME. The menu does not auto close. Without the IFRAME it works well. Has anyone come across this and resolved ?? We could use some direction on this issue.
Dimitar
Telerik team
 answered on 28 Mar 2014
1 answer
123 views
Hi,

I have an issue when exporting the scheduler to PDF where on the resulting PDF the scheduler is 'squashed' to the left hand side and does not fill the page (please see attached image to see what I mean).

This only seems to occur if the width of the scheduler is set to '100%', i.e.
                            <telerik:RadScheduler ID="RadScheduler1" runat="server" Skin="Windows7" Height="530px"
                                Width="100%"  ShowAllDayRow="True" EnableDescriptionField="True"
                                EnableEmbeddedSkins="True" DataEndField="EndTime" DataKeyField="AppointmentID"
                                DataStartField="StartTime" DataSubjectField="AppTitle">
                            </telerik:RadScheduler>

If I change the width to a fixed size the resulting PDF from the export looks fine.  I am using Telerik UI for ASP.NET AJAX Q1 2014.

Any help would be appreciated.
Aneliya Petkova
Telerik team
 answered on 28 Mar 2014
1 answer
284 views
Hi,
I was checking Telerik UI for ASP.NET AJAX Q1 2014 trial version for feasibility.

I was testing RadGrid with my existing code but its behavior is strange compared to MS GridView with Simple-Databinding.

In my existing code, i am not assigning datasource and not binding grid on particular condition.
MS GridWorks keeps data as it is but RadGrid clears data.
I checked that with e.Canceled = True it preserves state.

the issue occurs when  if at the time of data fetching any error occurs. it clears previous data. in MS grid it keeps data from viewstate.

Grid should clear data only when .DataBind() or Rebind() called.
 
Is there any property or method to make its behavior equivalent.?

Please find sample code at https://mega.co.nz/#!YYtFCK5Q!PV5XczgbAeyLApV8UtO72O9BBbY6jKl2TJ984703eEo
Viktor Tachev
Telerik team
 answered on 28 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?