Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
96 views
I have followed numerous tutorials and example and I have several problems with my simple example below.

1. Paging controls don't show
2. The OnInsertCommand gets called and my code actually inserts a record using a class I have created for that purpose.
3. The grid populates with my IEnumerable<myclass> data returned.
4.The Insert Record row shows at the top after clicking on "Add New Record" link; but does not go away after the record inserts!
5. The grid does not refresh after inserting a new record.

What am I doing wrong?

 

<
telerik:RadAjaxManager ID="radAjaxManager" runat="server">
                   <AjaxSettings>
                       <telerik:AjaxSetting AjaxControlID="radAjaxManager">
                           <UpdatedControls>
                               <telerik:AjaxUpdatedControl ControlID="radGridAchievements" />
                           </UpdatedControls>
                       </telerik:AjaxSetting>
                   </AjaxSettings>
               </telerik:RadAjaxManager>
 
               <telerik:RadGrid ID="radGridAchievements" runat="server"
                   AutoGenerateColumns="false" DataSourceID="odsAchievements"
                   AllowAutomaticInserts="true"
                   PageSize="5" AllowPaging="true"
                   OnInsertCommand="radGridAchievements_InsertCommand" OnItemInserted="radGridAchievements_OnItemInserted">
                   <PagerStyle Mode="NextPrevAndNumeric" />
                   <MasterTableView DataKeyNames="Id" DataSourceID="odsAchievements"
                       EditMode="InPlace" CommandItemDisplay="TopAndBottom">
                       <Columns>
                           <telerik:GridEditCommandColumn ButtonType="LinkButton" />
                           <telerik:GridTemplateColumn DataField="Title" HeaderText="Title" >
                               <ItemTemplate>
                                   <%# Eval("Title") %>
                               </ItemTemplate>
                               <InsertItemTemplate>
                                   <telerik:RadTextBox ID="txtTitleInsert" runat="server" />
                               </InsertItemTemplate>
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn DataField="Description" HeaderText="Description">
                               <ItemTemplate>
                                   <%# Eval("Description") %>
                               </ItemTemplate>
                               <InsertItemTemplate>
                                   <telerik:RadTextBox ID="txtDescriptionInsert" runat="server" />
                               </InsertItemTemplate>
                           </telerik:GridTemplateColumn>
                        </Columns>
                   </MasterTableView>
                   <ClientSettings AllowKeyboardNavigation="true">
                       <KeyboardNavigationSettings AllowSubmitOnEnter="true"/>
                       <ClientEvents
                                     OnGridCreated="OnAchievementGridCreated" />
                   </ClientSettings>
                   <ValidationSettings EnableValidation="true" CommandsToValidate="PerformInsert, Update" />
               </telerik:RadGrid>
 
               <asp:ObjectDataSource ID="odsAchievements" runat="server"
                   TypeName="GamesPlatform.External.Web.App.AchievementManager"
                   SelectMethod="GetAchievements"
                   OnObjectCreating="odsAchievements_ObjectCreating"
                   OnObjectDisposing="odsAchievements_ObjectDisposing" />
Eyup
Telerik team
 answered on 12 Oct 2012
3 answers
47 views
Hello! I ndeed someone to help me!
I have a GridbounColumn and a GridTemplateColumn like this:

  <telerik:GridBoundColumn DataField="PROCESVERBAL" DataFormatString="{0:N2}"   HeaderText="PROCESVERBAL"  
                                 UniqueName="PROCESVERBAL" FooterText=" " DataType="System.Text">
                                <FooterStyle HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Center" />
                                </telerik:GridBoundColumn>  

  <telerik:GridTemplateColumn ItemStyle-HorizontalAlign="center" HeaderStyle-Width="35px" HeaderText=""                 
                                UniqueName="viewCert2" Visible = "true">
                                <ItemTemplate>
                                <asp:ImageButton ID="viewCert2" runat="server" ImageUrl="~/Resources/IMG/viewformular.png"
                                ToolTip='<%# viewform %>'  />
                                </ItemTemplate>
                                </telerik:GridTemplateColumn>

I need to show the image button only if the value of "PROCESVERBAL" is different form null .
Is it possible??
Yllka
Top achievements
Rank 1
 answered on 12 Oct 2012
1 answer
101 views
Hello,

I want to capture when a node was clicked (in fact right clicked) in an OrgChart. I want the event to pass the ID of the node clicked.

Can anyone please suggest how to do it.

Thanks
Peter Filipov
Telerik team
 answered on 12 Oct 2012
2 answers
124 views
Hello,

I have to display multiple text items in a node in an Telerik OrgChart control.

So I am using RenderedFields like this:
</RenderedFields>
 <ItemFields>
 <telerik:OrgChartRenderedField DataField="Certificates" Label="Certificates" />
 </ItemFields>
<ItemFields>
 <telerik:OrgChartRenderedField DataField="Role" Label="Role" />
 </ItemFields>

 </RenderedFields>


However I want to style each OrgChartRenderedField differently. Infact some of these fields will be hidden in some situations.

Can anyone suggest how to do it.

Thanks
Peter Filipov
Telerik team
 answered on 12 Oct 2012
1 answer
49 views
Hi, I'm using a rad window inside a usercontrol to display the content which was referred by an another usercontrol on a button Click,
The rad window is displaying the data in Chrome, Safari, Firefox, IE7 & IE8 . In IE9 when i click on the Button Its giving an error for the first time 
"DOM Exception: INVALID_CHARACTER_ERR (5)" & from second click onwards its just opening the rad window but its not displaying the content. 

This is the line where i'm getting the error.
var o=($telerik.isIE)?document.createElement("<iframe name='"+c+"'>"):document.createElement("iframe");

I have approached the following threads:
http://www.telerik.com/community/forums/aspnet/window/radwindow-ie9.aspx

Please find the error message in image file "IMG_12102012_134211.png" in the attachment.

Please suggest a work around to solve this problem.




Marin Bratanov
Telerik team
 answered on 12 Oct 2012
1 answer
59 views
In Android Enviornment Rad Grid Expand/Collapse not working. Can I get a patch/fix for this.
Thanks,
Sathya
Marin
Telerik team
 answered on 12 Oct 2012
2 answers
67 views
this does not work.

RadButton myBtn = new RadButton();
     myBtn.Text = "Button";
     myBtn.ToggleType="Radio";
     PlaceHolder1.Controls.Add(myBtn);

Any help would be appreciated

Marty
moegal
Top achievements
Rank 1
 answered on 12 Oct 2012
1 answer
53 views
I am using a basic RadUpload control on Windows 2008R2 (server and client on the same machine in the hopes of avoiding network problems, although the problem also happens with separate machines).  When using Chrome I can see an upload progress indication in the lower-left corner of the window, and it runs from 0% to 100% three complete times before the transaction finished.  For large files this is taking quite some time and I don't understand the triple-upload.  Has anyone else seen this?

<telerik:RadTextBox ID="tbAppName" ClientEvents-OnKeyPress="KeyPress"
    ReadOnly="true" runat="server" Width="99%" AutoPostBack="True" ClientIDMode="Static"
    OnTextChanged="tbAppName_TextChanged">
</telerik:RadTextBox>

(the tbAppName_TextChanged function is some javascript that collects the basename from the path, but even if I leave out the OnTextChanged attribute the problem still occurs).
Peter Filipov
Telerik team
 answered on 12 Oct 2012
3 answers
123 views

When I visit the RadAsyncUpload demo (http://demos.telerik.com/aspnet-ajax/upload/examples/async/multiplefileselection/defaultcs.aspx?product=asyncupload) in IE9, with Flash, but not Silverlight installed, it only allows me to select one file at a time.

Turning on Silverlight, I can select multiple files.
Switching Browser Mode in IE to IE8 allows me to select multiple files.
But IE9 is single select only.

I'm running Windows 7 Pro, with Flash version 11.4.402.278, which is currently the most recent version. I don't have any other add-ons installed, and all settings are the base install settings for IE.

All the upload documentation says that multiselect is available if Flash is installed, but I'm not seeing that behavior.

Thank you.

Plamen
Telerik team
 answered on 12 Oct 2012
1 answer
63 views
Hi, I am new to telerik. I having problem with checking the last item in the listbox. Basicly it will loop alll the item in the listbox and combine it become a string, When listbox item reach end it will replace with "." instead of "',". Please help.Thanks
 
Dim sb As New StringBuilder    
 
For Each item As RadListBoxItem In radCustomer.Items
       
  If  radNotMemberOf.Items.Count.ToString.Length - 1 Then
 hdnCustomerList.Value = hdnCustomerList.Value & sb.Append(item.Value.Replace(",", ".")).ToString
Else
  hdnCustomerList.Value = sb.Append(item.Value & ",").ToString()
 
End If
      Next
Princy
Top achievements
Rank 2
 answered on 12 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?