Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
222 views

I'm trying to utilize a RadProgressArea to keep track of a task's progress on my ASP page.  I have a relatively simple setup that is functioning fine.  However, the actual progress bar is appearing as a white bar on a white background, which is different from any other demo I've come across.  I've gone through the properties and style options, but there doesn't seem to be any way to specifically set the color of the progress bar.  Is there a way to change it to, say, blue?  Here's what I'm currently working with.

 

<Telerik:RadAjaxPanel runat="server">
  <Telerik:RadProgressArea ID="rpaProgress" runat="server" ProgressIndicators="TotalProgress,TotalProgressBar,TotalProgressPercent"></Telerik:RadProgressArea>
</Telerik:RadAjaxPanel>

I have a RadAjaxManagetProxy and a RadProgressManager defined elsewhere in the page.  In the code behind, I set RadProgressContext.Current.PrimaryTotal, PrimaryValue, PrimaryPercent, and OperationComplete as they need to update.  I get the attached result.
Magdalena
Telerik team
 answered on 04 Apr 2016
1 answer
265 views

Hello everyone,

I've been facing issues with RadTextBox for ASP in MultiLine mode when pressing the enter key. Actually no new line is displayed. When I set the text from codebehind or using binding the text is correctly displayed on multiple lines. This is illustrated in the radtextbox.png file attached.

Below is my code for the RadTextBox element :

<telerik:RadTextBox ID="RadTextBox1"
    Text='<%# DataBinder.Eval(Container, "DataItem.MyField") %>'
    runat="server" TextMode="MultiLine" Rows="8" Columns="40"
    RenderMode="Lightweight">
</telerik:RadTextBox>

In the struct.png file attached you'll find the structure of my web page.

By googling around and visiting many forum threads (including of course telerik) I found many potentials sources and fixes for the issue :

  • DefaultButton : tried with and without but no luck
  • white-space ccs attribute : the pre-wrap is what I need and what is set by default. I also tried normal and pre but still no luck
  • onkeypress event : captured the enter key event but did not work out in the end
  • AcceptsReturn : supposed to be for WinForms but at least I tried

I am using .Net Framework 4.0 and UI for ASP.NET AJAX v.2016.1.225.40.

Does anyone have a clue about this ?

Regards,
Benjamin

Benjamin
Top achievements
Rank 1
 answered on 04 Apr 2016
7 answers
295 views
The code that Telerik provides for a Use custom modal advanced template includes many css classes such as rsAdvanceEdit and rsAdvanceModal.  I would like to style these but I don't know where they are defined. 

Can someone please tell me where I can find the css for them?

<AdvancedEditTemplate>
   <div class="rsAdvancedEdit rsAdvancedModal" style="position: relative">
       <div class="rsModalBgTopLeft">
       </div>
       <div class="rsModalBgTopRight">
       </div>
       <div class="rsModalBgBottomLeft">
       </div>
       <div class="rsModalBgBottomRight">
       </div>    
       <div class="rsAdvTitle">         
           <h1 class="rsAdvInnerTitle">
               <%# Container.Appointment.Owner.Localization.AdvancedEditAppointment %></h1>
           <asp:LinkButton runat="server" ID="LinkButton1" CssClass="rsAdvEditClose"
               CommandName="Cancel" CausesValidation="false" ToolTip='<%# Container.Appointment.Owner.Localization.AdvancedClose %>'>
<%# Container.Appointment.Owner.Localization.AdvancedClose%>
           </asp:LinkButton>
       </div>
       <div class="rsAdvContentWrapper">
           <telerik:RadTextBox ID="SubjectTextBox" runat="server" Text='<%# Bind("Subject") %>'
               Label='<%# Container.Appointment.Owner.Localization.AdvancedSubject%>'>
           </telerik:RadTextBox>
           <p>
               Custom content here...
           </p>
           <asp:Panel runat="server" ID="Panel1" CssClass="rsAdvancedSubmitArea">
               <div class="rsAdvButtonWrapper">
                   <asp:LinkButton CommandName="Update" runat="server" ID="LinkButton2" CssClass="rsAdvEditSave">
<span><%# Container.Appointment.Owner.Localization.Save%></span>
                   </asp:LinkButton>
                   <asp:LinkButton runat="server" ID="LinkButton3" CssClass="rsAdvEditCancel" CommandName="Cancel"
                       CausesValidation="false">
<span><%# Container.Appointment.Owner.Localization.Cancel%></span>
                   </asp:LinkButton>
               </div>
           </asp:Panel>
       </div>
   </div>
</AdvancedEditTemplate>
Ivan Danchev
Telerik team
 answered on 04 Apr 2016
3 answers
243 views

Hi,

In my project we are replacing the grid view controls in to Rad Grid controls.

Please let me know how to implement the below code through the Rad Grid control.

for (int i = 0; i < gvEmployee.Rows.Count; i++)
{
employee = ((DropDownList)gvEmployee.Rows[i].FindControl("ddlEmployee")).SelectedValue;
for (int j = i + 1; j < gvEmployee.Rows.Count; j++)
{
if (string.Compare(employee, ((DropDownList)gvLOB.Rows[j].FindControl("ddlEmployee")).SelectedValue) == 0 && employee != "--SELECT--")
{
DoAlert("Please select distinct " + gvHeaderemployee);
return;
}
}
if (employee != "--SELECT--")
{
dtemployeelocal.Rows.Add(employee);
}
}

I need to check the distinct record added in my grid view on Submit button click event

 

Viktor Tachev
Telerik team
 answered on 04 Apr 2016
0 answers
37 views

Hello,

I want to change the text and command name for the LinkButton per row depending on another cell value. I saw this code for reading cells during binding. So when a read a cell and it means to change the link button how can I do it?

Thanks

Private Sub gvLevel3_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles gvLevel3.ItemDataBound
    If TypeOf e.Item Is GridDataItem Then
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
        Dim cell As TableCell = DirectCast(item("Uniquename"), TableCell)
        Dim value As String = cell.Text
    End If
End Sub

Warren
Top achievements
Rank 1
 asked on 04 Apr 2016
1 answer
232 views

Hi,

 Based on parent dropdowntree i have to bind child dropdowntree.

when i select --select-- in parent dropdowntree child should be blank.

 

i used

dd.DataSource=Nothing

dd.Databind()

but it not working

 

 

Ivan Danchev
Telerik team
 answered on 04 Apr 2016
2 answers
72 views

Hi

I have a RadGrid with grouping, and the expand / close the group with the icon on the left hand side. We have a request that the groups be expanded / closed from the cell that has the group header text, is this possible.

The action would have to toggle so it closes when open and opens when closed.

I have attached an image that shows our requirement.

Andy

Andy Green
Top achievements
Rank 2
 answered on 04 Apr 2016
2 answers
120 views

Hello, 

Sorry in advance for my English because I'm not the best.

I hope that you can help me, because I search since 3 days.

I would like use a custom datasource (Get by WCF, but the signature of the method isn't the same that for a databinding) that I initialise to start the web page.

And after , I would like use the datasource for a radgrid. The radgrid must filter to client side (Because the radgrid is in a modal Popup and if I interact with the server, the modal disappears)

I hope I have understood

 

thank you for taking time for myself

Adrien
Top achievements
Rank 1
 answered on 04 Apr 2016
6 answers
112 views
Any way to substitute drag&drop action for copy not to move?.
thanks
Vessy
Telerik team
 answered on 01 Apr 2016
1 answer
329 views

Hi,
I have a problem with resizing image editor control based on the given width and height. Also resize the control based on image size. Now it looks like by default it is taking some width and height and I can't resize it smaller than that default size.

 

Thanks

Sankar

Vessy
Telerik team
 answered on 01 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?