Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
78 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
99 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
82 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
157 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
82 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
3 answers
84 views
Hi All,

            I am using RadAsyncUpload telerik control to upload the files. Here is the code.

<telerik:RadAsyncUpload runat="server" ID="rdUpload1" MultipleFileSelection="Disabled" ControlObjectsVisibility="None"    MaxFileInputsCount="1" OnClientFileUploaded="fileUploaded" Height="18px" AllowedFileExtensions="jpg,png,gif" OnClientValidationFailed="validationFailed" Width="85px"> 
    <Localization Select="Browse" />
    </telerik:RadAsyncUpload>
    <style type="text/css">       
    .RadUpload  .ruRemove
        {
    display:none
        }
    </style>

I wanted to display only first three characters of the file name, when it is uploading the file and after it uploads the file. Is it possible? If yes, can you please let me know. how to do it?


Thanks,
Geetha Rani.

 
Peter Filipov
Telerik team
 answered on 12 Oct 2012
2 answers
87 views
Please can someone look at my code and tell me where I've gone wrong.

Trying to use drag and drop to reorder grid rows.

 

 

<telerik:RadGrid ID="AssessmentGrid" runat="server" ShowHeader="True" ShowFooter="true"

 

 

 

BorderWidth="1" CellPadding="3" AutoGenerateColumns="false" Width="600px" Skin="WebBlue"

 

 

 

AllowPaging="true" PageSize="10" AllowCustomPaging="true" VirtualItemCount="50"

 

 

 

AllowMultiRowSelection="true" OnNeedDataSource="AssessmentGrid_NeedDataSource"

 

 

 

OnPreRender="AssessmentGrid_PreRender" OnUpdateCommand="AssessmentGrid_UpdateCommand"

 

 

 

EnableAJAX="true" ShowStatusBar="true" EnableEmbeddedSkins="false" OnRowDrop="AssessmentGrid_RowDrop">

 

 

 

<PagerStyle Mode="NumericPages" />

 

 

 

<MasterTableView ShowFooter="true" DataKeyNames="assessment_plan_reference" EditMode="PopUp"

 

 

 

EditFormSettings-PopUpSettings-Width="600px" EditFormSettings-PopUpSettings-Height="700px">

 

 

 

<RowIndicatorColumn Visible="true" UniqueName="RowIndicator">

 

 

 

<HeaderStyle Width="20px" BackColor="LightSkyBlue" />

 

 

 

</RowIndicatorColumn>

 

 

 

<Columns>

 

 

 

<telerik:GridEditCommandColumn HeaderText="Edit" HeaderStyle-Width="40px" ItemStyle-Width="40px">

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="assessment_plan_reference" DataField="assessment_plan_reference"

 

 

 

Visible="false" runat="server" ItemStyle-Width="50px" ReadOnly="true" />

 

 

 

<telerik:GridBoundColumn UniqueName="week_number" DataField="week_number" HeaderText="Week"

 

 

 

HeaderStyle-HorizontalAlign="left" HeaderStyle-Width="70px" ItemStyle-Width="70px"

 

 

 

runat="server" ReadOnly="true" />

 

 

 

<telerik:GridBoundColumn HeaderText="Content" UniqueName="content" DataField="content"

 

 

 

runat="server">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Activity" UniqueName="activity" DataField="activity"

 

 

 

runat="server">

 

 

 

</telerik:GridBoundColumn>

 

 

 

</Columns>

 

 

 

<EditFormSettings CaptionFormatString="Edit Plan: {0}" CaptionDataField="assessment_plan_reference"

 

 

 

EditFormType="Template">

 

 

 

<EditColumn UniqueName="EditCommandColumn1">

 

 

 

</EditColumn>

 

 

 

<FormTemplate>

 

 

 

<table id="Table1" cellspacing="1" cellpadding="10" width="400px" border="1" style="border-collapse: collapse;

 

 

 

 

border-width: 2px; background: white;">

 

 

 

<tr>

 

 

 

<td>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Week

 

 

<asp:Label ID="lblWeekno" runat="server" Text='<%#Bind("week_number")%>' />

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Content

 

 

<br />

 

 

 

<telerik:RadEditor ID="RadEditor1" runat="server" Content='<%# Bind("content") %>'

 

 

 

ToolsFile="WebBlue/ToolsFile.xml" Height="200px" Width="350px" Skin="WebBlue" />

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

Activity

 

 

<br />

 

 

 

<telerik:RadEditor ID="RadEditor2" runat="server" Content='<%# Bind("activity") %>'

 

 

 

ToolsFile="WebBlue/ToolsFile.xml" Height="200px" Width="350px" Skin="WebBlue" />

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<tr>

 

 

 

<td align="right" colspan="2">

 

 

 

<asp:Button ID="btnUpdate" Text='Update' runat="server" CommandName='Update'></asp:Button>&nbsp;

 

 

 

<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"

 

 

 

CommandName="Cancel"></asp:Button>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</FormTemplate>

 

 

 

</EditFormSettings>

 

 

 

</MasterTableView>

 

 

 

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

 

 

 

<Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />

 

 

 

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

 

 

 

<ClientEvents OnRowDropping="onRowDropping" />

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

 

Eyup
Telerik team
 answered on 12 Oct 2012
5 answers
190 views
Hi Everyone,

I have a usercontrol used to edit values in a radgrid, so standard code, user clicks row in grid, grid expands to display the usercontrol containing all the values for the various fields in the row.

Something I have noticed is that with IE9 compatibility the RadCombobox does not respond to clicking on the down arrow unless you first give the Radcombobox the focus by clicking in the text area which results in the dropdown being displayed and the RadCombobox getting the focus, thereafter the dropdown arrow will respond to mouse clicks until the radCombobox loses the focus.

The strange thing is that this only seems to be a problem in some of the usercontrols displayed by various grids in our application.
I have turned off our custom skin and used one of the standard skins which didn't make a difference.
Even more strange is that on one particular usercontrol there is also 2 RadNumericTextboxes which dissappear as soon as any of the other controls on the usercontrol get the focus.

Has anyone come across this before?

Thanks
Antony
Ivana
Telerik team
 answered on 12 Oct 2012
1 answer
401 views
Dear all,
I have an asp.net webapp (4.0) using the RadGrid. It works as expected. But after deploying to live system, the filter does not work anymore. On our live system we have a Web Application Firewall (WAF) which checks for some security problems. One rule (set up by our Headquarter) is to deny values like semi-colon and "and" in the same line, e.g. a filter like " a; and b" results in a denial message from the WAF. As said, it's setup by Headquarter so I could not discuss that.
Now I have the problem that even a filter like "a and b" would not work. It's still denied for security reasons. I've checked the post and saw that "__EVENTARGUMENT" contained "FireCommand:ctl00$MainContent$MyGrid$ctl00;Filter;Subject|a and b|Contains". So here we have again semicolon and "and". Probably that's the reason for the denial.
Is there any way to get the semi-colons removed or replaced in the __EVENTARGUMENT?
Thanks!
Antonio Stoilkov
Telerik team
 answered on 12 Oct 2012
2 answers
158 views

I have a multi-column comboBox which allows custom text and has "EnableLoadOnDemand" set to true. I want to populate the columns (4 in total) with a list of search results, based on an active directory search method (which returns UserID, Name, Email, Line Manager)

At present, the method works great when the user enters a surname into the text property and clicks a "Search" button (the method is assigned to the OnClick event of the button, obviously.)

What I would like to happen is for the user to enter the first few letters of a surname and the multi-column combobox will load the results on demand.

The results do not come from a datasource, as explained above.

Would this behaviour be possible at all?

As a framework, I have similar code structure to the example found here

Thanks.

 Markup:

<telerik:RadComboBox ID="UserIDComboBox" runat="server" AllowCustomText="True" DropDownWidth="400px" MarkFirstMatch="True" EnableLoadOnDemand="true" OnItemsRequested="UserID_ItemsRequested" OnItemDataBound="UserID_ItemsDataBound"
                  ToolTip="Type first 3 letters of Surname and click Search." Width="200px">
                  <HeaderTemplate>
                      <ul>
                          <li class="col1">User_ID</li>
                          <li class="col2">Name</li>
                          <li class="col3">Email</li>
                          <li class="col4">Line Manager</li>
                      </ul>
                  </HeaderTemplate>
                  <ItemTemplate>
                      <ul>
                      <li class="col1">
                      <%# DataBinder.Eval(Container.DataItem, "UserId") %>
                      </li>
                      <li class="col2">
                      <%# DataBinder.Eval(Container.DataItem, "Name")%>
                      </li>
                      <li class="col3">
                      <%# DataBinder.Eval(Container.DataItem, "Email") %>
                      </li>
                      <li class="col4">
                      <%# DataBinder.Eval(Container.DataItem, "Line Manager") %>
                      </li>
                      </ul>
                  </ItemTemplate>
              </telerik:RadComboBox>

C#

protected void UserID_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            List<User> searchResults = null;
 
            //AD Search (uncomment to test)
            ADSearch ads = new ADSearch();
            searchResults = ads.SearchAD(UserIDComboBox.Text, UserName, Password);
 
            if (null == searchResults)
            {
                UserIDComboBox.Text = "No User Found";
 
            }
            else
            {
                foreach (User adu in searchResults)
                {
                    "UserID field" = adu.UserId;
                    "Name field" = adu.Name;
                    "Email field" = adu.Email;
                   "Manager field" = adu.Manager;
                 }
            }
        }
        protected void UserID_ItemsDataBound(object sender, RadComboBoxItemEventArgs e)
        {
            e.Item.Text = ((DataRowView)e.Item.DataItem)["UserId"].ToString();
            e.Item.Text = ((DataRowView)e.Item.DataItem)["Name"].ToString();
            e.Item.Text = ((DataRowView)e.Item.DataItem)["Email"].ToString();
            e.Item.Text = ((DataRowView)e.Item.DataItem)["Manager"].ToString();
        }
Dimitar Terziev
Telerik team
 answered on 12 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?