Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
511 views
I am using a radgrid with GridClientSelectColumn as one of the column.
i changed the item row color using

e.Item.BackColor ="Red" in itemdatabound event based on some condition


I selected that checkbox which row is already highlighted by this RED color ,  its overwriting my red color background.

I want to prevent this

i tried this .rgSelectedRow
        {
            background-color:Red;
            color: Red !important;
        } also
its making the font color for the row as RED but bg color is not still changing

shall i use

ClientEvents-OnRowSelecting events?

Pavlina
Telerik team
 answered on 10 Oct 2011
3 answers
158 views
Hello,

I have my Radgrid binded to a first SQLDataSource.
But, I need to have a column (i have created manually) from my RADGrid binded to another SQLDataSource(informations from another table)

Is this possible ?
Thank you in advance for your help!
Shinu
Top achievements
Rank 2
 answered on 10 Oct 2011
6 answers
214 views
I have a requirement to edit the parent row but child rows should not be editable. when a value in the parent cell updated, the same cell in all the child rows should be updated with the same value.
Please let me know how to make parent row editable but at the same time child rows should not be editable and how to udpate the values to child rows on modification of a parent row?
Tsvetina
Telerik team
 answered on 10 Oct 2011
12 answers
347 views
Hello,

I need to set an initial value to a combo which uses LoadOnDemand with a web service as in your sample.
As the combo items collection is initially empty, I am unable to select the value for my initial choice.

I must says that apart from this little pb, load on demand works perfectly.

CS
Dimitar Terziev
Telerik team
 answered on 10 Oct 2011
1 answer
131 views
Inside repeater i had placed radgrid and a button outside the repeater, when i click on button i want to validation input data inside radgrid control, using javascript.

how to find radtextbox inside radgrid which is in repeater control.

<asp:Repeater ID="rptrGroup" runat="server" OnItemDataBound="rptrGroup_ItemDataBound">
  <ItemTemplate>
   <table class="table_data">
        <tr><td colspan="2">
              <telerik:RadGrid ID="rgdGroup" runat="server" Width="100%" GridLines="Vertical" AutoGenerateColumns="False"  OnItemDataBound="rgdGroup_ItemDataBound"  OnItemCommand="rgdGroup_ItemCommand" CellSpacing="0">                     <MasterTableView DataKeyNames="Id">
                <Columns>
               <telerik:GridCheckBoxColumn HeaderText="Status" DataField="Status" UniqueName="Status">
              </telerik:GridCheckBoxColumn>
              <telerik:GridTemplateColumn HeaderText="Order" DataField="Order" UniqueName="ActionOrder">
              <ItemTemplate>
             <telerik:RadTextBox ID="rtbOrder" runat="server" Text='<%# Eval("Order") %>'  Width="48px" MaxLength="3" />
           </ItemTemplate>
            </telerik:GridTemplateColumn>
           <telerik:GridBoundColumn HeaderText="Item" DataField="ItemName" UniqueName="ItemName">
           </telerik:GridBoundColumn>
          <telerik:GridTemplateColumn HeaderText="Date" DataField="Date" UniqueName="Date">
          <ItemTemplate>
         <telerik:RadDatePicker ID="rdpDate" runat="server" Culture="en-US" Width="100px" SelectedDate='<%# Eval("Date") %>'>
         <Calendar ID="cldrDate" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"
           ViewSelectorText="x" runat="server" >
        </Calendar>
        <DateInput ID="diDate" DisplayDateFormat="MM/dd/yyyy" DateFormat="MM/dd/yyyy"  runat="server">
         </DateInput>
         <DatePopupButton ImageUrl="~/App_Themes/images/calendar_ico.png" HoverImageUrl="~/App_Themes/images/calendar_ico.png">
         </DatePopupButton>
       </telerik:RadDatePicker>
        </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn HeaderText="Remark" DataField="Remark" UniqueName="Remark">
        <ItemTemplate>
     <telerik:RadTextBox ID="rtbRemark" runat="server" Text='<%# Eval("Remark") %>' />
     </ItemTemplate>
      </telerik:GridTemplateColumn>
      <telerik:GridButtonColumn HeaderText="Active/Inactive" ButtonType="LinkButton" UniqueName="lnkItemActiveInActive"  ItemStyle-VerticalAlign="Middle" CommandName="ItemStatus">
     </telerik:GridButtonColumn>
    </Columns>
    </MasterTableView>
    </telerik:RadGrid>
</td>
 </tr>
 </table>
 </ItemTemplate>
</asp:Repeater>
Princy
Top achievements
Rank 2
 answered on 10 Oct 2011
3 answers
79 views
Hi,
I'd like to show only Group and Ungroup  options on the headercontext menu of a RadGrid so i've done in this way
void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e)
       {
           switch (e.Item.Text)
           {                
               case "Columns": e.Item.Visible = false;break;               
               case "Sort Ascending": e.Item.Visible = false; break;
               case "Sort Descending": e.Item.Visible = false; break;
               case "Clear Descending": e.Item.Visible = false; break;
               case "Clear Sorting": e.Item.Visible = false; break;
                      }
       }
If i leave the "element "Columns visible" it works fine, but if i putcase "Columns": e.Item.Visible = false;break;  i get this error:
Microsoft JScript runtime error: 'findItemByValue(...)' is null or not an object

What is the problem of  hiding the item "Columns" of the context mennu ?

Thank You !!

Iana Tsolova
Telerik team
 answered on 10 Oct 2011
7 answers
92 views
Hi,

I want to attach client side  events to StartDate and StartTime controls inside Advanced Edit Form.
On changing  start time I want to modify end time using javascript fxns, similarly I want to modify end time on changing start time.
Is it possible to overwrite existing fxns.

  function ClientFormCreated(sender, e) {
         var advancedEditStartDate= $telerik.$("[id$='Form_StartDate']");
                      advancedEditStartDate.onchange(function() {
                       ModifyEndDate();
                   });

    var advancedEditStartTime = $telerik.$("[id$='Form_StartTime']");
                     advancedEditStartTime.onchange(function() {
                      ModifyEndTime();
                   });


}



 <telerik:RadScheduler ID="rsTicketsSchedule"      OnClientFormCreated="ClientFormCreated" ..

...
 </telerik:RadScheduler>

Thanks,
Prava
Plamen
Telerik team
 answered on 10 Oct 2011
3 answers
190 views

I am using RadTabstrip with RadMultipage.

I have 3 tabs with 3 pageviews. I am using ContentURL property of pageview to load the page as a main page’s content.

How do I get a reference to Main page’s controls  in content page ?


Thanks!
Dimitar Terziev
Telerik team
 answered on 10 Oct 2011
8 answers
544 views
Hi there,

We currently use RadDatePicker / Calendar to get a user input of the current date. We have followed the tutorials accordingly and setup different rules such as DisplayDateFormat and DateFormat.

We are currently experiencing a problem on certain machines where the DateFormat rule is not followed! (i.e. when the selected date is stored in a property, it is stored in U.S. culture, even though we have explicitly stated that the RadDatePicker use U.K format and that the stored DateFormat is "dd/MM/yyyy")

Is there anything else that we need to set in order to ensure that the properties are applied to all? Would you recommend this is done in code-behind rather than setting it on design-side? What machine settings are likely to override the properties set for the RadDatePicker?

Code attached below:

<telerik:RadDatePicker ID="radDateAssessment" runat="server" Culture="English (United Kingdom)" EnableTyping="True">
<Calendar runat="server" 
UseRowHeadersAsSelectors="False"
UseColumnHeadersAsSelectors="False"
ViewSelectorText="x">
</Calendar>
<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
<DateInput runat="server" 
 DisplayDateFormat="dd-MMM-yyyy"
DateFormat="dd/MM/yyyy">
    </DateInput>
</telerik:RadDatePicker>


Hope you can be of help

Regards

Ahmed
Maria Ilieva
Telerik team
 answered on 10 Oct 2011
1 answer
331 views
Hi,

 Is it possible to implement progress bar as a column in radgrid? If so how can I do this?

Any sample code would be appreciated.

Thanks
Shinu
Top achievements
Rank 2
 answered on 10 Oct 2011
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?