Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
256 views
I have a radgrid.
The dataitem row has several controls but two in particular have values I need for a javascript ajax call I need to make.
The user story is this...
A user sees a series of rows with a CampusID  - a simple label  and a copiesNeeded - a radnumerictextbox.
The ROW is NOT in edit mode, nor will it be...
The user clicks in the radtextbox and enters a value.
When they leave the textbox an onBlur  event is fired.

Now in a client side javascript function I want to get the value they have entered in the radnumerictextbox and determine the value of the CampusID from the CampusNameLabel-- unless of course there is an easier means to do this clientside...
For example:

//================================================
//===   Save the value entered in the grid for copies needed.
//================================================
function saveCopiesNeeded(src, args) {
// Get the row the user had made changes in so I can get the campusID
// Get the radNumericTextbox so I can get the value the user typed
                 
}



<telerik:GridTemplateColumn FilterControlAltText="Filter column" UniqueName="CampusID"
                       HeaderText="Campus ID" SortExpression="CampusID">
                       <ItemTemplate>
                           <asp:Label ID="CampusIDLabel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CampusID") %>'></asp:Label> 
                       </ItemTemplate>
                       <HeaderStyle HorizontalAlign="Center" />
                       <ItemStyle HorizontalAlign="Center" Wrap="False" VerticalAlign="Middle" />
                   </telerik:GridTemplateColumn>




<
telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" UniqueName="TemplateColumn">
                    <ItemTemplate>
                        <telerik:RadNumericTextBox ID="CopiesToOrderRadNumericTextbox" runat="server" Culture="en-US" DbValueFactor="1" LabelWidth="64px" MinValue="0" Width="70px">
                            <NumberFormat DecimalDigits="0" ZeroPattern="n" />
                            <ClientEvents OnBlur="saveCopiesNeeded"></ClientEvents>
                        </telerik:RadNumericTextBox>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
Wired_Nerve
Top achievements
Rank 2
 answered on 23 Apr 2013
2 answers
276 views
Hello,

today, I spent hours trying to solve a
"Sys.WebForms.PageRequestManagerParserErrorException"
on the radgrid.

It happened only for some records. After some time, I narrowed it down to one single record.
Then I noticed, even in SQL Server, the record was truncated. Impossible to read beyond a certain point.
The radgrid was still able to show the whole record, but only on the page load: any async request would cause a:
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near ' to move '.

After a few more hours of digging, I noticed firefox had no problems at all displaying the record, even in async postbacks...
And finally, I noticed the cause:  in the middle of the record.
(Not even sure this will display for IE users)
A little ascii square!

So much pain, for one ascii square...
So many articles, so many forum threads... None ever mentionned this.. So I thought there should be at least one forum thread about this...
Good luck to anyone stumbling on this while searching for a mystical "Sys.WebForms.PageRequestManagerParserErrorException".
Those are hard...
Tom Rasmussen
Top achievements
Rank 1
 answered on 23 Apr 2013
3 answers
105 views
I am currently using RadAsyncUpload with ManualUpload="true". I have  MultipleFileSelection="Disabled" but will allow multiple file inputs.

I am also using RadProgressArea.

Is there a way to check for invalid files before I fire startUpload(); ??
Or if not, can I stop the upload without removing all of the inputs? 

If I cancel, can I restart the upload without removing all of the inputs?

Thanks, Marty
Hristo Valyavicharski
Telerik team
 answered on 23 Apr 2013
2 answers
127 views
I am using RadControls for ASP.NET AJAX, v.2012.2.912.40

I am trying to set the Time on my RadTimePicker using the SelectedTime member in the C# code-behind, but I get the compiler error:  
        'Telerik.Web.UI.RadTimePicker' does not contain a definition for 'SelectedTime'

I am able to set it using the SelectedDate property, so my code works, but the on-line documentation states that the SelectedTime member should work. http://www.telerik.com/help/aspnet-ajax/p_telerik_web_ui_radtimepicker_selectedtime.html

Mostly I'm just curious why the compiler doesn't recognize the SelectedTime member.

Here's the ascx code fragment:
<telerik:RadDateInput ID="DateIN" runat="server"> </telerik:RadDateInput>
<telerik:RadTimePicker ID="TimeIN" runat="server"> </telerik:RadTimePicker>

Here's the C# code behind:
DateTime? dateIN = DateTime.Now;
TimeSpan? timeIN = dateIN.Value.TimeOfDay;
DateIN.SelectedDate = dateIN;
 
// this works
TimeIN.SelectedDate = myData.DateIN.Value.Date.AddMinutes(myData.TimeIN.Value.Minutes);
 
// this doesn't compile & it should
TimeIN.SelectedTime = timeIN;




Pavlina
Telerik team
 answered on 23 Apr 2013
8 answers
122 views
FYI: I am using version Q2 2011.

Here is the situation: I am using the FormDecorator control to style my radio buttons and checkboxes. These look great in the latest versions of Firefox, IE, Chrome and Safari (Windows and Mac).

However, with the ipad and iPhone, these controls show an odd border. I've attached a picture for your viewing pleasure. I'm not sure that "border" is even the right word. It is very odd looking.

I thought it might be my skin, but it appears even with a test project where I just created a radiobuttonlist, add the form decorator control and set the skin to Default.

To see this in action on your iphone/ipad, you can look here.
Niko
Telerik team
 answered on 23 Apr 2013
5 answers
177 views
I cannot seem to get the pauseUpload example to work.  Is the example just set up wrong?

RadAsyncUpload1 is set to ManualUpload but RadAsyncUpload2 is not but the buttons to pause and resume refer to RadAsyncUpload2.

If pauseUpload() and resumeUpload() are part of  manual upload then the buttons should refer to  RadAsyncUpload1  right?

I am still using q3 2012 so I cannot test locally. 

Marty
Hristo Valyavicharski
Telerik team
 answered on 23 Apr 2013
1 answer
163 views
We are using Opera Mobile Version 10.
We had just upgraded the Telerik Tools to Q1 2013 from Q2 2012.

While using the Q2 2012 tools every thing appear to be working.  However after we upgraded to Q1 2013, the AutoCompleteBox seems to not be working correctly.  While the AutoCompleteBox is on the page none of the Telerik controls appear to work, removing the AutoCompleteBox they will.

Is there something that has changed that I need to change?

Also to note: We have used other browsers and it appears to be working as intended - only noticing this on the Opera Mobile browser.

Any help would be appreciated.

Thanks.
Nencho
Telerik team
 answered on 23 Apr 2013
13 answers
320 views
When i click the ComboBox for the very first time it works just as expected. Then it collapses and gets disabled.
Am i missing some setting? Btw, i populate the Combo using DataBind call.

cmb.DataTextField = "fieldname" 
cmb.DataValueField = "ID" 
cmb.DataSource = table 
cmb.DataBind()

Thanks


neebs
Top achievements
Rank 2
 answered on 23 Apr 2013
3 answers
81 views
Hi;

Does your editor support the AUTOTAGLIST field (in the same categor of fields like PAGE, PRINTDATE, etc.)

thanks - dave
David Thielen
Top achievements
Rank 1
 answered on 23 Apr 2013
1 answer
103 views
Hey

Story:

I using RadGrid with ExpandCollapseColumn and I want to show for every user his Departments + Leader if you click on a departments it is Expanding and you can see the members of the departments  click on one user and again the column is Expanding then you can see from date to date the working time in % and his vacation days so far its working 


Problem:

In the last step when I want to show the specific from date to date the working time in % etc... it not working I have know for testing inserted that only one user in a specific department has from date to date the working time in % etc.. and so the  problem is IT is displaying it to every user it doesn't meter if he has inserted from date to date the working time in % etc.. or not ..
<asp:Content ID="Content1" ContentPlaceHolderID="MainRegionContentPlaceHolder" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="DepEmpGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="DepEmpGrid"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadGrid ID="DepEmpGrid" OnPreRender="DepEmpGrid_PreRender" ShowStatusBar="True" DataSourceID="LeaderViewSQL" runat="server" AutoGenerateColumns="False"
        AllowSorting="True" AllowPaging="True" GridLines="None" CellSpacing="0" OnNeedDataSource="DepEmpGrid_NeedDataSource" >
        <PagerStyle Mode="NumericPages" />
        <MasterTableView DataKeyNames="DepartmentId" DataSourceID="LeaderViewSQL" AllowMultiColumnSorting="true"  ExpandCollapseColumn-CollapseImageUrl="~/Image/SingleMinus.gif" ExpandCollapseColumn-ExpandImageUrl="~/Image/SinglePlus.gif">
            <DetailTables>
                <telerik:GridTableView DataKeyNames="UserId" DataSourceID="DepartmentSQL" Width="100%" runat="server">
                    <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="DepartmentId" MasterKeyField="DepartmentId" />
                    </ParentTableRelation>
                    <DetailTables>
                        <telerik:GridTableView DataKeyNames="AnnualVacationId" DataSourceID="AnnualVacationSQL" Width="100%" runat="server">
                            <ParentTableRelation>
                                <telerik:GridRelationFields DetailKeyField="UserId" MasterKeyField="UserId" />
                            </ParentTableRelation>
                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
 
                            <Columns>
                                <telerik:GridBoundColumn SortExpression="FromDate" HeaderText="From date" HeaderButtonType="TextButton" DataField="FromDate" UniqueName="FromDate" DataFormatString="{0:dd/MM/yyyy}"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="ToDate" HeaderText="To date" HeaderButtonType="TextButton" DataField="ToDate" UniqueName="ToDate" DataFormatString="{0:dd/MM/yyyy}"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="WorkingTime" HeaderText="Working time in %" HeaderButtonType="TextButton" DataField="WorkingTime" UniqueName="WorkingTime"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="VacationDays" HeaderText="Vacation days" HeaderButtonType="TextButton" DataField="VacationDays" UniqueName="VacationDays"></telerik:GridBoundColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                            </EditFormSettings>
                        </telerik:GridTableView>
                    </DetailTables>
                    <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
                     
                    <Columns>
                        <telerik:GridBoundColumn SortExpression="Name" HeaderText="Name" HeaderButtonType="TextButton" DataField="Name" UniqueName="Name"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="Email" HeaderText="Email" HeaderButtonType="TextButton" DataField="Email" UniqueName="Email"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn SortExpression="AdDomain" HeaderText="AdDomain" HeaderButtonType="TextButton" DataField="AdDomain" UniqueName="AdDomain" Visible="false"></telerik:GridBoundColumn>
                    </Columns>
                    <EditFormSettings>
                        <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                    </EditFormSettings>
                </telerik:GridTableView>
            </DetailTables>
            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn SortExpression="DepartmentName" HeaderText="DepartmentName" DataField="DepartmentName" UniqueName="DepartmentName"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn SortExpression="Leader" HeaderText="Leader" DataField="Leader" UniqueName="Leader"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="DepartmentId" DataType="System.Int32" FilterControlAltText="Filter DepartmentId column" HeaderText="DepartmentId" SortExpression="DepartmentId" UniqueName="DepartmentId" Visible="false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UserId" DataType="System.Int32" FilterControlAltText="Filter UserId column" HeaderText="UserId" SortExpression="UserId" UniqueName="UserId" Visible="false">
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False"></FilterMenu>
    </telerik:RadGrid>
 
 
    <asp:SqlDataSource ID="LeaderViewSQL" runat="server" ConnectionString="<%$ ConnectionStrings:HolidayTrackerConnectionString %>"
        SelectCommand="SELECT * FROM [LeaderView]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="DepartmentSQL" runat="server" ConnectionString="<%$ ConnectionStrings:HolidayTrackerConnectionString %>"
        SelectCommand="SELECT * FROM [UserView] WHERE ([DepartmentId] = @DepartmentId)">
        <SelectParameters>
            <asp:SessionParameter Name="DepartmentId" SessionField="DepartmentId" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="AnnualVacationSQL" runat="server" ConnectionString="<%$ ConnectionStrings:HolidayTrackerConnectionString %>"
        SelectCommand="SELECT * FROM [AnnualVacation] WHERE UserId =@UserId">
        <SelectParameters>
            <asp:SessionParameter Name="UserId" SessionField="UserId" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>





Thanks for help and fast answer 

Feel free to ask if you need something more 

Pavlina
Telerik team
 answered on 23 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?