Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
Hi
Is it possible to clear all items at client side before I add new items in rotator at client side?
Edwin
Slav
Telerik team
 answered on 10 Oct 2011
2 answers
157 views
I have a form that appears in a RadWindow. On this form I have RadDatePicker.

There is a button on this form that calls some javascript to clear all of the form fields.

All get cleared, except for the RadDatePicker. Reason being, I cant find it.

The code I am trying to use looks like this.

var StartDatePicker = $find("<%=dpActivitytStartDate.ClientID %>");
if (StartDatePicker){
    StartDatePicker.clear();
}

However StartDatePicker is never found, therefore, never cleared.

I figure this might have something do to with the iFrame that the radWindow is in

So I tried finding the RadDatePicker like this.

$("#rwAdvancedSearchForm").contents().find("[id$='dpActivityEndDate']")

That does not find it either.

So I tried this.

var StartDatePicker = $("[id$='rwAdvancedSearchForm']").contents().find("[id$='dpActivityEndDate']");
if (StartDatePicker){
    StartDatePicker.clear();
}

In this case StartDatePicker is NOT null,

However I then get the error..

StartDatePicker.clear is not a function

What is the trick here? How to I clear a RadDatepicker that is in a RadWindow?
Shinu
Top achievements
Rank 2
 answered on 10 Oct 2011
1 answer
110 views
Hi,

I am using RadListbox in my page.in IE8 its works fine but in IE 9 all listbox items dissappears.
I have attached sceenshot .
I am using following markup.     
            
 <telerik:RadListBox ID="rlReportGroupList" runat="server" AllowReorder="false" AllowTransfer="true"
ButtonSettings-VerticalAlign="Middle" EnableDragAndDrop="true" Height="200px"
 SelectionMode="Multiple" Style="text-align: left" TransferToID="rlSelectedGroupList"
   OnClientTransferred="ChangeWithoutLoadingImage" Width="200px" Sort="Ascending" Culture="<%$ Resources:Culture%>">
 <HeaderTemplate>
  <b>
  <asp:Literal ID="headerGroupList" runat="server" Text="<%$ Resources:headerGroupList %>" />
      </b>
   </HeaderTemplate>
 </telerik:RadListBox>
<telerik:RadListBox ID="rlSelectedGroupList" runat="server" EnableDragAndDrop="true"
 Height="200px" SelectionMode="Multiple" Style="text-align: left" Width="170px"
  Sort="Ascending" Culture="<%$ Resources:Culture%>">
 <HeaderTemplate>
  <b>
<asp:Literal ID="headerSelectedGroups" runat="server" Text="<%$ Resources:headerSelectedGroups %>" />
  </b>
   </HeaderTemplate>
 </telerik:RadListBox>

Please suggest solution for the above

Princy
Top achievements
Rank 2
 answered on 10 Oct 2011
2 answers
187 views
Dear Telerik,

Could you please advice me how to get rid of the visible cell borders of the html table which I use inside the <AppointmentTemplate> of my scheduler?

CSS settings for the table similar to <table width="100%" style="border-width: 0px; border-style:none;"> does not seem to work...

The screen-shot is attached.

Many thanks!

- Stepan.
Stepan
Top achievements
Rank 1
 answered on 10 Oct 2011
2 answers
84 views

Hii...
I'm using the Radchart inside the radgrid Gridtemplate column.
 I need to handle some code in tha Rachart_databound event. But in that event I'm not able to get the radchart since it placed in the radgrid.
Please help me in how t

<telerik:RadGrid ID="dispatcherGrd" runat="server" CssClass="gridView1" GridLines="None"
                                          AutoGenerateColumns="false" OnItemDataBound="dispatcherGrd_ItemDataBound" ShowHeader="false"
                                          Width="99%" Height="102px" BorderColor="White" BorderWidth="0" OnPreRender="dispatcherGrd_PreRender"
                                          OnItemCommand="dispatcherGrd_ItemCommand">
                                          <ClientSettings>
                                              <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="false" />
                                          </ClientSettings>
                                          <AlternatingItemStyle BackColor="White" />
                                          <HeaderStyle HorizontalAlign="Left" />
                                          <ItemStyle Font-Names="Arial" Font-Size="12px" ForeColor="#000000"/>
                                          <MasterTableView>
                                              <Columns>
                                                  <telerik:GridBoundColumn DataField="DispatcherName" HeaderStyle-Width="150px" HeaderText="Dispatcher Name">
                                                  </telerik:GridBoundColumn>
                                                  <telerik:GridBoundColumn DataField="RegularCount" HeaderStyle-Width="90px" HeaderText="Regular">
                                                  </telerik:GridBoundColumn>
                                                  <telerik:GridBoundColumn DataField="EmergencyCount" HeaderStyle-Width="90px" HeaderText="Emergency">
                                                  </telerik:GridBoundColumn>
                                                  <telerik:GridBoundColumn DataField="DirectCount" HeaderStyle-Width="90px" HeaderText="Directed">
                                                  </telerik:GridBoundColumn>
                                                  <telerik:GridBoundColumn DataField="TotalCount" HeaderStyle-Width="90px" HeaderText="Total">
                                                  </telerik:GridBoundColumn>
                                                  <telerik:GridTemplateColumn DataField="" UniqueName="chartcolumn">
                                                      <ItemTemplate>
                                                          <telerik:RadChart ID="dispatcherChrt" runat="server" Width="230px" Style="margin-top: 0px;"
                                                              SeriesOrientation="Horizontal" ChartTitle-Visible="false" SkinsOverrideStyles="true"
                                                              CreateImageMap="false">
                                                              <Series>
                                                                  <telerik:ChartSeries Type="StackedBar">
                                                                      <Appearance BarWidthPercent="85" LabelAppearance-Visible="false">
                                                                          <FillStyle FillType="Solid" MainColor="ForestGreen">
                                                                          </FillStyle>
                                                                      </Appearance>
                                                                  </telerik:ChartSeries>
                                                                  <telerik:ChartSeries Type="StackedBar">
                                                                      <Appearance BarWidthPercent="85" LabelAppearance-Visible="false">
                                                                          <FillStyle MainColor="#f2180d" FillType="Solid">
                                                                          </FillStyle>
                                                                      </Appearance>
                                                                  </telerik:ChartSeries>
                                                              </Series>
                                                              <PlotArea Appearance-Dimensions-Margins="0,0,0,0" Appearance-Border-Color="White"
                                                                  XAxis-Appearance-MajorGridLines-Visible="false" YAxis-Appearance-MajorGridLines-Visible="false"
                                                                  Appearance-FillStyle-MainColor="White" Appearance-FillStyle-FillType="Solid"
                                                                  Appearance-Border-Width="2" />
                                                              <Legend Visible="false"></Legend>
                                                          </telerik:RadChart>
                                                      </ItemTemplate>
                                                  </telerik:GridTemplateColumn>
                                              </Columns>
                                          </MasterTableView>
                                      </telerik:RadGrid>

o get the radchart which has placed inside the Gridtemplate column obj in radchart_databound event.

Ram
Top achievements
Rank 1
 answered on 10 Oct 2011
1 answer
165 views
<td>
                                      <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Quation, QtNo %>"></asp:Label>
                                  </td>
                                  <td>
                                      <asp:Label runat="server" ID="lbcaption" Visible="false"></asp:Label>
                                      <telerik:RadComboBox runat="server" ID="txt_QuotationNo" Height="190px" Width="300px"
                                          MarkFirstMatch="true" EnableLoadOnDemand="true" HighlightTemplatedItems="true"
                                          DataSourceID="SqlDataSource1" OnClientItemsRequested="UpdateItemCountField" OnItemDataBound="txt_QuotationNo_ItemDataBound"
                                          OnItemsRequested="txt_QuotationNo_ItemsRequested" OnDataBound="txt_QuotationNo_DataBound"
                                          OnSelectedIndexChanged="txt_QuotationNo_SelectedIndexChanged" AutoPostBack="true">
                                          <HeaderTemplate>
                                              <ul>
                                                  <li class="col1">Quation No</li>
                                                  <li class="col2">Revise No</li>
                                              </ul>
                                          </HeaderTemplate>
                                          <ItemTemplate>
                                              <ul>
                                                  <li class="col1">
                                                      <%# DataBinder.Eval(Container.DataItem, "quotationno")%></li>
                                                  <li class="col2">
                                                      <%# DataBinder.Eval(Container.DataItem, "revnumbr")%></li>
                                              </ul>
                                          </ItemTemplate>
                                          <FooterTemplate>
                                              A total of
                                              <asp:Literal runat="server" ID="RadComboItemsCount" />
                                              items
                                          </FooterTemplate>
                                      </telerik:RadComboBox>
                                      <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DBConnectionString %>"
                                          SelectCommand="select quotationno,revnumbr from DSQUOTATIONMAS where status <> 'del' order by quotationno,revnumbr asc">
                                          <%--<SelectParameters>
                                              <asp:Parameter Name="projectcode" Type="String" />
                                          </SelectParameters>--%>
                                      </asp:SqlDataSource>
                                  </td>

Hello all,
Here this comobobox is multi value showing combo ,
i want to bind the value from server side ,

here i bind from asp:SqlDataSource

how i bind that ,
reply as soon as possible

Thanks,
Mohamed.
Shinu
Top achievements
Rank 2
 answered on 10 Oct 2011
1 answer
84 views
Hi,

I have a RadGrid that must support insertion of new records, but there are some required values that must not be inserted by the user. I need to be able to compute the correct values for them before the record is inserted using the LinqDataSource.

What's the correct way to amend the object that is going to be inserted? Since some of those values are not nullable, not giving them a value makes it impossible to insert the record anyway.

Thank you in advance.
Mira
Telerik team
 answered on 10 Oct 2011
2 answers
155 views
I am using datepicker inside telerik window. The problem is when i close the window after opening the datepicker, the opened portion of datepicker still exists and window gets closed. Plz help.
Princy
Top achievements
Rank 2
 answered on 10 Oct 2011
2 answers
162 views
Hi,
I'm using rachart of bar type inside the "Radgrid" in my application.
I'm having 3 serieses in chart.
I want to show the tooltip on mouse over for bars.
I tried as follows
I was tried to handle the code in chart itemdatabound event but this event itself notfiring.

 

 

 

 

here is my aspx page
<telerik:RadGrid ID="dispatcherGrd" runat="server" CssClass="gridView1" GridLines="None"
                                           AutoGenerateColumns="false" OnItemDataBound="dispatcherGrd_ItemDataBound" ShowHeader="false"
                                           Width="99%" Height="102px" BorderColor="White" BorderWidth="0" OnPreRender="dispatcherGrd_PreRender"
                                           OnItemCommand="dispatcherGrd_ItemCommand">
                                           <ClientSettings>
                                               <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="false" />
                                           </ClientSettings>
                                           <AlternatingItemStyle BackColor="White" />
                                           <HeaderStyle HorizontalAlign="Left" />
                                           <ItemStyle Font-Names="Arial" Font-Size="12px" ForeColor="#000000"/>
                                           <MasterTableView>
                                               <Columns>
                                                   <telerik:GridBoundColumn DataField="DispatcherName" HeaderStyle-Width="150px" HeaderText="Dispatcher Name">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn DataField="RegularCount" HeaderStyle-Width="90px" HeaderText="Regular">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn DataField="EmergencyCount" HeaderStyle-Width="90px" HeaderText="Emergency">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn DataField="DirectCount" HeaderStyle-Width="90px" HeaderText="Directed">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn DataField="TotalCount" HeaderStyle-Width="90px" HeaderText="Total">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridTemplateColumn DataField="" UniqueName="chartcolumn">
                                                       <ItemTemplate>
                                                       <telerik:RadChart ID="dispatcherChrt"  runat="server" Width="230px" Style="margin-top: 0px;"                                                      SeriesOrientation="Horizontal" 
                                                              ChartTitle-Visible="false" OnitemDataBound="dispatcherChrt_ItemDataBound" SkinsOverrideStyles="true" CreateImageMap="false" >
                                                               <Series>
                                                                   <telerik:ChartSeries Type="StackedBar">
                                                                       <Appearance BarWidthPercent="85" LabelAppearance-Visible="false">
                                                                           <FillStyle FillType="Solid" MainColor="ForestGreen">
                                                                           </FillStyle>
                                                                       </Appearance>
                                                                   </telerik:ChartSeries>
                                                                   <telerik:ChartSeries Type="StackedBar">
                                                                       <Appearance BarWidthPercent="85" LabelAppearance-Visible="false">
                                                                           <FillStyle MainColor="#f2180d" FillType="Solid">
                                                                           </FillStyle>
                                                                       </Appearance>
                                                                   </telerik:ChartSeries>
                                                               </Series>
                                                               <PlotArea Appearance-Dimensions-Margins="0,0,0,0" Appearance-Border-Color="White"
                                                                   XAxis-Appearance-MajorGridLines-Visible="false" YAxis-Appearance-MajorGridLines-Visible="false"
                                                                   Appearance-FillStyle-MainColor="White" Appearance-FillStyle-FillType="Solid"
                                                                   Appearance-Border-Width="2" />
                                                               <Legend Visible="false"></Legend>
                                                           </telerik:RadChart>
                                                       </ItemTemplate>
                                                       </telerik:GridTemplateColumn>
                                                       </Columns></MasterTableView>
                                                       </telerik:RadGrid>

 

protected void dispatcherChrt_ItemDataBound(object sender, ChartItemDataBoundEventArgs e)
   {
       e.ChartSeries[0].ActiveRegion.Tooltip = "state";
       e.ChartSeries[1].ActiveRegion.Tooltip = "Vox";
   }


but I'm not able to see any result I added tooltipmanager too.
Please help me How cloud I achieve this.

Ram
Top achievements
Rank 1
 answered on 10 Oct 2011
1 answer
281 views
Hi,
I am try to change the height of a radcombobox with separate file css, the tag height change the list of this component but i need to change a component height, How can i do it?

In this way does not work:
 
div.RadComboBox_Transparent mesa td.rcbInputCell
 { 
     height: 50px; 
     line-height: 50px;
 }


Shinu
Top achievements
Rank 2
 answered on 10 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?