Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
105 views
Good morning,
I have used in my application RadDatePicker to get date.Now I need to get just days of week Monday thru Friday(single day of the week or multiple days of the week).
How can I do that?

Thanks so much for your help.
Kostadin
Telerik team
 answered on 04 Mar 2014
4 answers
99 views
Hi,

I am getting following javascript error while clicking on combo box

 'top' is null or not an object
but with up and down arrows i am able to change the items in combo box
I am declared combo as follows:and this combo is in popup window
<telerik:RadComboBox ID="rad1" runat="server">
   <Items>
     <
telerik:RadComboBoxItem Text="1" Value="1" />
<telerik:RadComboBoxItem Text="2" Value="2" />
<telerik:RadComboBoxItem Text="3" Value="3" />
<telerik:RadComboBoxItem Text="4" Value="4" />
<telerik:RadComboBoxItem Text="5" Value="5" />
<telerik:RadComboBoxItem Text="6" Value="6" />
<telerik:RadComboBoxItem Text="7" Value="7" />
<telerik:RadComboBoxItem Text="8" Value="8" />
<telerik:RadComboBoxItem Text="9" Value="9" />
</Items>
   </telerik:RadComboBox>

can any one help in solving the issue?

Thanks,
Wesley
Top achievements
Rank 1
 answered on 04 Mar 2014
4 answers
187 views
We are using Tererik's RadHtmlChart in sparkline layout mode with a single line series.  I am trying to figure out how to display the vertical line in the tooltip as demonstrated on the MEAN TEMP chart via https://demos.telerik.com/aspnet-ajax/htmlchart/examples/charttypes/sparklinechart/defaultcs.aspx.  I need to accomplish this via server-side C#, not ASCX markup (I am configuring all 14 sparkline controls on our web page via a single C# method to minimize the amount of duplicate ASCX code).  I suspect the vertical line may be controlled by the unusual background settings within the sparklines-wrapper CSS style but I can find no documentation on this specific feature to help guide me.

Thanks for your time and attention.

Troy

My ASCX:
                    <div class="sparklineWrapper">
                        <telerik:RadHtmlChart ID="RadHtmlChart_Sales" runat="server" Layout="Sparkline" class="sparkline" />
                    </div>

My C#:
        protected void ConfigureSparklineControl(string id)
        {
            RadHtmlChart sparkline = this.FindControl(id) as RadHtmlChart;

            // turn off transitions so there's no flicker when the graph is repainted with new data
            sparkline.Transitions = false;

            // hide the Legend area to prevent displaying the clickable 1-pixel link
            sparkline.Legend.Appearance.Visible = false;

            // ... other configuration code here
        }


Troy S.
Top achievements
Rank 1
 answered on 04 Mar 2014
1 answer
47 views
Hello.

This code is working in ASP.NET Web Application, but is not working in SharePoint 2007 WebPart?
When I click on Detail Table, page is postback.
Wherein maybe cause?


<telerik:RadScriptManager ID="RadScriptManager" runat="server" />

        <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All"
            EnableRoundedCorners="false" />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdateInitiatorPanelsOnly="true">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1">
                        </telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
            
            <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False">
            
                <MasterTableView Width="100%">
                <Columns>
                    <telerik:GridBoundColumn DataField="Column1" HeaderText="Column1">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Column2" HeaderText="Column2">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Column3" HeaderText="Column3">
                    </telerik:GridBoundColumn>
                </Columns>

                <DetailTables>
                <telerik:GridTableView Name="OrderDetails" Width="100%">
                    <ItemTemplate>
                        
                        <table>
                            <tr>
                                <td>
                                    A
                                </td>
                                <td>
                                    B
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    C
                                </td>
                                <td>
                                    D
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    E
                                </td>
                                <td>
                                    F
                                </td>
                            </tr>
                        </table>

                    </ItemTemplate>
                </telerik:GridTableView>
                </DetailTables>

                </MasterTableView>
            
            </telerik:RadGrid>

        </telerik:RadAjaxPanel>
Angel Petrov
Telerik team
 answered on 04 Mar 2014
2 answers
68 views
Hi All,

I have an editable RadGrid, and the RadDateInputs, in edit mode, look different from the standard alpha-numeric textboxes.  Is there a way to convert them to textboxes while maintaining date validation?

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 04 Mar 2014
3 answers
131 views
Hi Team,

Am using a RadPanelbar as a Menu structure for my website. V 2013.2.717.40

This PanelBar is populated from a SQL Datasource and is placed in a Masterpage.

Now when I click on the item, It will go to the corresponding page. I want the Panelbar to be expanded and the selection on the selected page.

When I was using static Panelbar, it was working perfect.

Once I changed it to Databinding to SQL Datasource, the FindItemByText method is returning 'Nothing'

So I cant make the item expanded..

Here is my masterpage code.
<telerik:RadPanelBar ID="rdMenuBar" Runat="server" Width="200px"
               ExpandMode="FullExpandedItem" DataFieldID="Forms_PK_ID"
               DataSourceID="SqlDataSource1"
               DataValueField="Forms_PK_ID" DataFieldParentID="Forms_ParentID"
               DataNavigateUrlField="Forms_Url" DataTextField="Forms_Name"  
                    OnItemDataBound
="rdMenuBar_ItemDataBound">
<DataBindings>
<telerik:RadPanelItemBinding Depth="0" ImageUrlField="Forms_Icon" TextField= "Forms_Name" />
<telerik:RadPanelItemBinding Depth="1" ImageUrlField="Forms_Icon" TextField= "Forms_Name" />
</DataBindings>
</telerik:RadPanelBar>

Am using the Databound event also

Protected Sub rdMenuBar_ItemDataBound(sender As Object, e As Telerik.Web.UI.RadPanelBarEventArgs) Handles rdMenuBar.ItemDataBound
      Dim dataRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView)
      e.Item.Attributes("Text") = dataRow("Forms_Name").ToString()
      e.Item.Text = e.Item.Attributes("Text")
  End Sub

And to make the Selection expanded in the other page, am using the code as below in page_load event

Dim rdMenuBar As RadPanelBar = Master.FindControl("rdMenuBar")
Dim ExpandedItem As RadPanelItem = rdMenuBar.FindItemByText("Configurations")
Dim SelectedItem As RadPanelItem = rdMenuBar.FindItemByText("Service")
ExpandedItem.Expanded = True
SelectedItem.Selected = True


Can anyone help me to sort out this..

Thanks and Regards

Renju

Kate
Telerik team
 answered on 04 Mar 2014
1 answer
534 views
Hello All.

I am using rad grid with batch editing ,  in the edit mode I am changing the radcombobox description value and want pass the selected value to database.

on the grid batch edit command for command type update,  I want to pull the selected value instead of text for command.NewValues["Description"],

    <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">    

         <telerik:RadListBox runat="server" ID="SavedChangesList" Width="100%" Height="100px" Visible="false"  ForeColor="Red"></telerik:RadListBox>

    <telerik:RadGrid  id="rgReleaseSchedule" runat="server"  AutoGenerateColumns="false"        OnNeedDataSource="rgReleaseSchedule_NeedDataSource"   OnBatchEditCommand="rgReleaseSchedule_BatchEditCommand" OnPreRender="rgReleaseSchedule_Prerender" AllowAutomaticInserts="true" 

        AllowAutomaticUpdates="true" >

        <MasterTableView  CommandItemDisplay="TopAndBottom"  ClientDataKeyNames="ID,Description" EditMode="Batch"  DataKeyNames="ID,Description" NoMasterRecordsText="No records found"  >       

            <BatchEditingSettings EditType="Cell" />

            <Columns>

                <telerik:GridBoundColumn  HeaderText="ScheduleID" DataField="ID" UniqueName="ID" ></telerik:GridBoundColumn>

              

            

               

              <telerik:GridTemplateColumn   HeaderText="Description" DataField="Description"    ColumnEditorID="TitleID" UniqueName="Description" HeaderStyle-Width="65%" >

                    <ItemTemplate>

                        <%# Eval("Description") %>                                             

                        </ItemTemplate>                  

                    <EditItemTemplate  >

                        <telerik:RadComboBox  runat="server" ID="rdDescription" Width="650" Height="400"   OnClientSelectedIndexChanged="SelectedChanged" AutoPostBack="true"   OnSelectedIndexChanged="rdDescription_selectedIndexChanged"></telerik:RadComboBox>                          

                        <asp:RequiredFieldValidator runat="server" ID="rfvdesc" ErrorMessage="Required" ForeColor="Red" ControlToValidate="rdDescription"  Display="Dynamic" ></asp:RequiredFieldValidator>

                    </EditItemTemplate>

                </telerik:GridTemplateColumn>              

              

                <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="Delete" ConfirmText="Are you sure you want to delete this Release?" ConfirmDialogType="RadWindow"

                    ConfirmTitle="Delete" HeaderText="Delete" ButtonType="ImageButton" HeaderStyle-Width="50px">

                </telerik:GridButtonColumn>                                  

               </Columns>

          

                 </MasterTableView>

          <ClientSettings>

          <ClientEvents OnBatchEditCellValueChanging="BatchEditCellValueChanging"  OnBatchEditCellValueChanged="CellValueChanged" OnRowSelected="RowSelected"    OnRowClick="rowClick"/></ClientSettings>

         

     </telerik:RadGrid>

        </telerik:RadAjaxPanel

>






protected void rgReleaseSchedule_BatchEditCommand(object sender, Telerik.Web.UI.GridBatchEditingEventArgs e)

{

try

{

SavedChangesList.Items.Clear();

SavedChangesList.ForeColor = System.Drawing.Color.Red;

foreach (GridBatchEditingCommand command in e.Commands)

{

Hashtable newvalues= command.NewValues;

if (command.Type == GridBatchEditingCommandType.Update)

{

if (command.NewValues["Date"].ToString() != "" && command.NewValues["Time"].ToString() != "" && command.NewValues["Description"].ToString() != "")

{

Int32 result = IoC.Current.Resolve<IReleaseService>().ReleaseListUpdate((Int32)command.Item.OwnerTableView.DataKeyValues[command.Item.ItemIndex]["ID"],

command.NewValues["Description"]);

}

protected void rgReleaseSchedule_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

{

rgReleaseSchedule.DataSource = IoC.Current.Resolve<IReleaseService>().ReleaseListSelect(_userContext.CurrentUser.UserId, Convert.ToInt16(ddlYear.SelectedText));

}

protected void rgReleaseSchedule_Prerender(object sender, EventArgs e)

{

{

SavedChangesList.ForeColor = System.Drawing.Color.Red;

RadComboBox ddlDesc = rgReleaseSchedule.FindControl(rgReleaseSchedule.MasterTableView.ClientID + "_Description").FindControl("rdDescription") as RadComboBox;

var description = IoC.Current.Resolve<IReleaseService>().ReleaseListScheduleTitle();

ddlDesc.DataSource = description;

ddlDesc.DataTextField = "Description";

ddlDesc.DataValueField = "TitleID";

ddlDesc.DataBind();

}

}

 

Maria Ilieva
Telerik team
 answered on 04 Mar 2014
1 answer
145 views
Hi,

I spent a lot of time to fix the bug in my page.
I have a "div", where i can drop files for my Telerik AsyncUpload-Control. This "div" changes color, when i'm dragging files to it, but not in IE, and i don't know why. 
When i try the demo-page in IE it works fine (http://demos.telerik.com/aspnet-ajax/asyncupload/examples/draganddrop/defaultcs.aspx)

I debugged my JavaScript-File and saw, that the $telerik.isIE10Mode isn't true. In Chrome the "isFile" gets true, so the color-change works (RadAsyncUpload.cs line 52).

Do you know, how i can fix this bug?
Boyan Dimitrov
Telerik team
 answered on 04 Mar 2014
2 answers
111 views
Hello,

What is the maximum value of RadScheduler.TimelineView.NumberOfSlots?

I am getting errors (System.ArgumentOutOfRangeException) when I go over a certain number, but I have not determined what that number is. I would like to reduce the number of slots to the maximum if I am about to exceed the maximum value.

Thanks!
T.J.
Top achievements
Rank 1
 answered on 04 Mar 2014
3 answers
80 views
Hi All,

I have an entirely code-behind (C#) RadGrid that is being used in a SharePoint web-part, and I would like to use a RadAjaxManager with it.  Can anyone please tell me and/or point me in the right direction for implementing one?

Thanks,
Mark
Maria Ilieva
Telerik team
 answered on 04 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?