Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
210 views
When using the asynchUpload control, the file uploaded appears above the select box after clicking on the select button.
It also allows you to remove it.

But, in the following example:http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultcs.aspx?product=upload

when you to edit an existing record, the filename is displayed in a textbox, and you don't see it with the remove button.

This seems like a little bit of a hack. Is there any way to get the file to display in edit mode the way it does in insert mode?
Plamen
Telerik team
 answered on 07 Mar 2013
1 answer
146 views
It seems the aggregate count function just counts the number of rows in a group, ignoring any field values.  Is this correct?  Is there a way to count the number of non-null values for a field (like how the SQL COUNT function works) without wiring up a custom aggregate?
Antonio Stoilkov
Telerik team
 answered on 07 Mar 2013
1 answer
97 views
When you set a MinDate on a RadDatePicker, the Calendar's arrows are hidden to prevent straying into the wrong month... however in the Calendar, the arrows aren't hidden and instead I get a JavaScript alert:

---------------------------
Message from webpage
---------------------------
Date is out of range.
---------------------------
OK   
---------------------------

How do I hide the arrows?
Antonio Stoilkov
Telerik team
 answered on 07 Mar 2013
5 answers
872 views

Hi,

I am using raddatepicker for selecting the dates. my scenario when i select the startdate , on click of enddate raddatepicker, the start date value should be pre-populated. I am using javascript to achieve this function. But i am unable to achieve the same. Below is the code.

I am passing the clientId because the raddatepicker is in userControl and i am calling the javascript method in parent page.

Problem is when i am passing clientId it is always going as string.  Let me know if anything i need to do.

 <telerik:RadDatePicker ID="rdDPStartDate" runat="server" Height="20px" onclick=" def(this, 'acd' );"
                    Width="223px">
                </telerik:RadDatePicker>
                <br />
       
            <div id="divEndDatePicker" class="DivTxtBox">
                <telerik:RadDatePicker ID="rdDpEndDate" runat="server" value="Set Date"
                    onclick=" setdate(this,'<%=rdDPStartDate.ClientID %>');" Height="20px" Width="223px">
                </telerik:RadDatePicker>
               

function setdate( start,end) {debugger;
          dateVar = new Date();
         var sd =  $find('end');
         var startDate = sd.get_selectedDate();
         var endDate = $find(start.Id).set_selectedDate(startDate);
//          varDate = datePicker.get_selectedDate();
//          
//          endDatePicker.set_selectedDate(varDate);
      }
Andrey
Telerik team
 answered on 07 Mar 2013
1 answer
60 views
Hi,

I am using telerik radgrid in my application. The problem I am facing here is that the when I set the headerstyle and itemstyle width in percentage header table and the item table columns are not aligned .  I have set the mastetableview's tablelayout property to fixed and also. This issue does not occur when I set the width of  headerstyle and item style  in px. The grid ItemTable has a scrollbar and I think the scrollbar is creating an issue for this. Please help in this.


Thanks,
Shinu
Top achievements
Rank 2
 answered on 07 Mar 2013
3 answers
314 views
Hi folks,
Can anyone let me know if it is possible to add a custom close image button to the Radwindow and hide all other button control in titlebar?

Thanks,
Henry.
Princy
Top achievements
Rank 2
 answered on 07 Mar 2013
1 answer
54 views
Hi,

looks like the below link is moved or renamed...
http://demos.telerik.com/aspnet/prometheus/Window/Examples/CommunicationBetweenRadWindows/DefaultCS

kindly provide the current URL for the same...
Princy
Top achievements
Rank 2
 answered on 07 Mar 2013
2 answers
258 views
Hi,

I am attempting to extract the HTML markup from a RadGrid, but I am having a problem.  Specifically, when the

grd.RenderControl(htmlWriter)

 

line is executed, an error is being thrown stating that the GridLinkButtons must be placed within a form tag.  My goal is to extract the HTML markup of the header columns and grid data items only - if this approach won't work, then I will probably have to look into a technique that will iterate each row of the grid and manually write the HTML (I'd like to avoid this if at all possible).  Here is the code that I have at this point:

public static string ConvertRadGridToHTML(ref Telerik.Web.UI.RadGrid grd)
{
    var stringwriter = new StringWriter();
    var htmlWriter = new HtmlTextWriter(stringwriter);
    string result;
    try
        {
            htmlWriter.RenderBeginTag(HtmlTextWriterTag.Html);
            htmlWriter.RenderBeginTag(HtmlTextWriterTag.Body);
            grd.RenderControl(htmlWriter);
            htmlWriter.RenderEndTag();
            htmlWriter.RenderEndTag();
            htmlWriter.Flush();
            result = htmlWriter.ToString();
        }
    catch
        {
            result = String.Empty;
        }
    finally
        {
            htmlWriter.Close();
            stringwriter.Close();                   
        }
        return result;
}
Princy
Top achievements
Rank 2
 answered on 07 Mar 2013
1 answer
49 views
I have a radgrid with a column for comments.  Its purpose is for the user to explain why they made a change to that particular item. To enable that I have made it a template column and in the EditItemTemplate, I've added a required field validator.  So far so good.  However, the requirement means that EVERY time a change is made, a new comment is required.  As it is, when the user clicks the edit button, the text from the previous comment is shown in the textbox.  If the user clicks update, the required field validator sees that text and validates the field. 
That code looks like this

 

<telerik:GridTemplateColumn DataField="Comments" AllowFiltering="false" FilterControlAltText="Filter Comments column" HeaderText="Comments" SortExpression="Comments" UniqueName="Comments">

 

<EditItemTemplate>

 

<asp:TextBox ID="txtComments" runat="server" Text='<%# Bind("Comments")%>' TextMode="MultiLine"></asp:TextBox>

 

<asp:RequiredFieldValidator ID="rfvComments" ControlToValidate="txtComments" Display="Dynamic" runat="server" ErrorMessage="Please enter a reason for changing this budget item."></asp:RequiredFieldValidator>

 

</EditItemTemplate>

 

<ItemTemplate>

 

<asp:Label ID="CommentsLabel" runat="server" Text='<%# Eval("Comments") %>'></asp:Label>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>




I tried replacing the  Text='<%# Bind("Comments")%>'  with  Text='' but then the new text was not returned.  ( A trace showed that parameter value to be null).  I have tried to keep the application simple and so am not currently using any code-behind.  If possible, I'd like to avoid that.

So, I'm looking for some help in how to clear the textbox when the edit button is pushed so the required field validator will do its work, while still having the new comment included when the page is posted back.

I appreciate any help you can give.
Thanks
Rick

 

 

 



Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Mar 2013
1 answer
161 views
I am using a RadWindow as a modal popup and can't seem to find a way to prevent the scroll bars from appearing on the window. If anyone know how I can eliminate the scroll bars from showing up on my popup please reply with your suggestions.

Thanks,

Jaime
Princy
Top achievements
Rank 2
 answered on 07 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?