Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
256 views
hello,

I have this column in a RadGrid :
<Telerik:GridTemplateColumn DataType="System.Int32" HeaderText="Impression Papier" UniqueName="NbPapier">
 <ItemTemplate>
  <asp:CheckBox ID="ChkBoxNb" runat="server" AutoPostBack="false" OnCheckedChanged="ToggleRadNumericState"/>
  <Telerik:RadNumericTextBox ID="RadNumericTextBoxNb" runat="server" AllowOutOfRangeAutoCorrect="true"
                                                AutoPostBack="false" DataType="System.Int32" Enabled="true" MinValue="0" NumberFormat-AllowRounding="false"
                                                NumberFormat-DecimalDigits="0" ShowSpinButtons="true" Type="Number" ValidationGroup="MyValidationGroup"
                                                MaxLength="3" Value="0" />
 </ItemTemplate>
</Telerik:GridTemplateColumn>


I
need to access a CheckBox and a RadNumericTextBox that are in the same GridTemplateColumn to affect the enabled property of the  RadNumericTextBox as CheckBox.checked and take into account the change is immediate without the need of a PostBack like this code but as javascript :

protected void ToggleRadNumericState(object sender, EventArgs e)
{
        (((sender as CheckBox).NamingContainer as GridItem).FindControl("RadNumericTextBoxNb") as RadNumericTextBox).Enabled = (sender as CheckBox).Checked;
}
Why can I do it?

Thanks for your help.
Aprajita
Top achievements
Rank 1
 answered on 25 Sep 2014
7 answers
411 views
http://www.telerik.com/support/code-library/prevent-losing-batch-editing-changes-on-paging-or-any-other-postback

Where do I set to ignore the [Save changes] button that will be doing the update?    I get the same prompt that changes will be lost.
Viktor Tachev
Telerik team
 answered on 25 Sep 2014
1 answer
117 views
Hi Team,

I have a radgrid with some rows in it .When i expand the each row there are three tabs inside it.
When i click on the first tab need to display the grid(grid name:compartmentgrid) under this tab.In this grid i have 8 coloumns and some columns have no data in it.
I need to find out the which column has no data and highlight that column with yellow color.
I am writing the code in the itemdatabound event for this grid.
How to find which column has null value because it is inside another grid and also this grid is displayed once you click on the tab.

Regards,
Sudhakar.


Viktor Tachev
Telerik team
 answered on 25 Sep 2014
12 answers
1.5K+ views
How can I enable the client side sorting (single column I guess is valid here) and paging without refreshing the page.
I mean whatever the grid gets from the bound datatable, it should be able to enable sorting on the client side and paging as well depending upon what page size I specify.
I don't want to refresh my page while sorting the grid or changing the page.

Thanks
Hary
Satish
Top achievements
Rank 1
 answered on 25 Sep 2014
0 answers
228 views
Securing web applications is a serious matter and no one can be cautious enough.

Check out what you need to know and look for in the following blog post, when you are implementing security measure for your users' content. Preventing XSS attack is easy, as long as you know how they work.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 25 Sep 2014
1 answer
134 views
Morning,

On the RadNumericTextBox, I want to set MaxValue for validation BUT I do not want it to set the MaxValue automatically when a greater value is entered.  e.g. with MaxValue="6", if I enter 8, the value automatically changes to 6 on blur.  However, I want it to remain as 8 but show invalid.

How can I do this?  Do I need to use a validator control instead?


Thanks
Angel Petrov
Telerik team
 answered on 25 Sep 2014
10 answers
394 views
Hi ,

I am using RadScheduler with telerik version 2013.3.1324.35. On my scheduler, I only want to show one time slot per day per employee. I disabled the timeslot if there is one appointment. 

protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
   {
       RadScheduler scheduler = (RadScheduler)sender;
 
       if (scheduler.SelectedView == SchedulerViewType.DayView || scheduler.SelectedView == SchedulerViewType.MonthView || scheduler.SelectedView == SchedulerViewType.WeekView)
       {
           e.TimeSlot.CssClass += "Disabled";
       }
       else
       {
           int count = e.TimeSlot.Appointments.Count;
 
           if (count >= 1)
           {
               e.TimeSlot.CssClass += "Disabled";
           }
           else
           {
               e.TimeSlot.CssClass += "Enabled";
           }
       }
   }

I like to disable it so that no one can insert new appointment but how can I remove grey part from my schedule? Please see attached file for sample. Thanks in advance for your help.

Thank you.

Best regards,
Ei
Plamen
Telerik team
 answered on 25 Sep 2014
3 answers
196 views
Hello,

Can the webservicesettings path property point to an external webservice, for example: Path="http://localhost/someservice/myservice.asmx" ?

Tom
Mr
Top achievements
Rank 1
 answered on 24 Sep 2014
1 answer
155 views

Hi,

My Website is using Telerik Version 2009.3.1208.20.
And we recently test the website on IE 11 and where ever the radcontrols try to do a postback its throwing javascript error
I tried one solution from the following post http://www.telerik.com/forums/incorrectly-rendered-webpage-when-using-internet-explorer-11
But then also its not working.Please advise on this

Thanks
Abhishek

Pavlina
Telerik team
 answered on 24 Sep 2014
3 answers
216 views
I try add control RadAsyncUpload from code behind as below, but doesn't work:
 
HtmlTable table = new HtmlTable();
for(int i=0;i<10;i++)
{
     HtmlTableRow row = new HtmlTableRow();
     HtmlTableCell cell = new HtmlTableCell();
    RadAsyncUpload radAU = new RadAsyncUpload();
    radAU.ID = "RadAsyncUpload" + i;
    radAU.MultipleFileSelection = Telerik.Web.UI.AsyncUpload.MultipleFileSelection.Automatic;
    radAU.TemporaryFolder = sTempPath;
    radAU.TargetFolder = sTargetPath;
    cell.Controls.Add(radAU);
}
divcontrol.Controls.Add(table); //with divcontrol runat="server" in .aspx file
 
Help me, please! Thanks!
Richard
Top achievements
Rank 1
 answered on 24 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?