Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
235 views
Hi,

Can we use Ribbion Asp.net Ajax control in Asp.net Mvc project?

If yes, Please provide some sample.

Thanks & Regards
Ritesh Singh
Plamen
Telerik team
 answered on 11 Feb 2014
2 answers
407 views
Hi,

I am using version Q3 1114 2013 of your controls.

I want to use the slider for a date range, where the start and end dates vary so they have to be set at runtime.

I want to show ticks of the dates between the start and end date range, so the user will be able to see the timeline.  I am currently using SmallChange="7" and LargeChange="28" so that each small change is a week and each large change is 4 weeks.

If I understand correctly, I need to set ItemType="Item" and then add RadSliderItems to create the ticks.

Of course since I don't have a fixed date range, I will have to add RadSliderItems at runtime as well.

I have the slider working correctly until I programatically add the RadSliderItems.  If I add the RadSliderItems programatically, the RadSlider's SelectionStart and SelectionEnd are no longer set correctly.  Instead of them being set to the leftmost and rightmost dates in the range, they are both set to the far right.

My first question is:  Do you have an example of doing this?  Please don't refer me to your online demo for adding RadSliderItems.  It doesn't show how to do all of this programatically using dates.

Here is my code.  Can you tell me what I might be doing wrong, that would cause my SelectionStart and SelectionEnd to be wrong when I add my RadSliderItems?
If I comment out the code that adds the RadSliderItems, the code below that (that sets the minimum / maximum / selectionstart / selectionend) works fine and the slider works fine.

Dim firstDate As Date = Today
Dim lastDate As Date = Today

If (Not Page.IsPostBack) Then
firstDate = filteredTaskList(0).apTaskPlannedStart
lastDate = filteredTaskList(filteredTaskList.Count - 1).apTaskPlannedEnd

Do Until firstDate >= lastDate
Dim rsi As New RadSliderItem(firstDate.ToShortDateString, firstDate.ToShortDateString)
RadSlider1.Items.Add(rsi)
firstDate = firstDate.AddDays(28)
Loop
End If

If (Not Page.IsPostBack) Then
RadSlider1.MinimumValue = CInt(filteredTaskList(0).apTaskPlannedStart.ToOADate)
RadSlider1.MaximumValue = CInt(filteredTaskList(filteredTaskList.Count - 1).apTaskPlannedEnd.ToOADate)

RadSlider1.SelectionStart = CInt(filteredTaskList(0).apTaskPlannedStart.ToOADate)
RadSlider1.SelectionEnd = CInt(filteredTaskList(filteredTaskList.Count - 1).apTaskPlannedEnd.ToOADate)
Else
filteredTaskList = From tasks In filteredTaskList _
 Where tasks.apTaskPlannedStart >= Date.FromOADate(RadSlider1.SelectionStart.ToString) AndAlso tasks.apTaskPlannedEnd <= Date.FromOADate(RadSlider1.SelectionEnd.ToString) _
 Select tasks
End If

Regards,
Brent
Brent Hetland
Top achievements
Rank 1
 answered on 11 Feb 2014
1 answer
644 views
hi there

we have an application where we use telerik dll 2012.3.1308.40

recerntly we have upgraded to 4.5 framework and i just want to know following

1. will this verison of dll will work for 4.5 framework?
2. do we need to do any upgrade steps?
3. do we need to purchase a new licence if 2012.3.1308.40 does not support 4.5 framework?

Please let us know

Thanks,
Roshan
Marin Bratanov
Telerik team
 answered on 11 Feb 2014
1 answer
93 views
Hi,

I'd like to display my combobox text that I change in the edit mode in the itemTemplate, in a disabled combobox or a label. Here's my aspx : 

<telerik:GridTemplateColumn HeaderText="Catégorie Profil" SortExpression="catProfil" >
                       <ItemTemplate>
                           <telerik:RadComboBox ID="cbxCatProfilDisabled" runat="server" Enabled="false">
                           </telerik:RadComboBox>
                       </ItemTemplate>
                       <EditItemTemplate>
                           <telerik:RadComboBox ID="cbxCatProfil" runat="server">
                           </telerik:RadComboBox>
                       </EditItemTemplate>
</telerik:GridTemplateColumn>

I've tried many things, but no one work.
Thanks for your help
Hristo Valyavicharski
Telerik team
 answered on 11 Feb 2014
3 answers
1.1K+ views
Hi.  I've attached an image of a hierarchical RadGrid 3 levels deep (Category-Subcategory-Standard).  I'm having a problem removing the useless expand/collapse button (or arrow) at the Standard (3rd) level.  I've used the following recursive function but it only goes 2 layers deep in removing the buttons as you can see in the image.  I'm not even sure why there is an expand/collapse button at the 3rd level because it is the innermost detail table.  Any advice as to how I could remove ALL expand/collapse buttons in the grid?  What am I missing?

Here is my code for creating the grid from the code behind.

            rgStandards = new RadGrid { ID = "rgStandards", EnableEmbeddedSkins = false, AutoGenerateColumns = false};
            rgStandards.PreRender += rgStandards_PreRender;
            StandardsSet.Tables[0].TableName = "categories";
            StandardsSet.Tables[1].TableName = "subcategories";
            StandardsSet.Tables[2].TableName = "standards";


            //Standard Categories
            rgStandards.MasterTableView.DataMember = "categories";
            rgStandards.MasterTableView.DataKeyNames = new string[] { "category" };
            rgStandards.MasterTableView.HierarchyDefaultExpanded = true;
            rgStandards.AllowPaging = false;
            GridBoundColumn boundColumn;
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "category";
            boundColumn.HeaderText = "Category";
            rgStandards.MasterTableView.Columns.Add(boundColumn);

            //Standard Subcategories
            GridTableView gtvSubcategories = new GridTableView(rgStandards);
            gtvSubcategories.DataMember = "subcategories";
            gtvSubcategories.DataKeyNames = new string[] { "subcategory" };
            GridRelationFields grfSubcategories = new GridRelationFields();
            grfSubcategories.MasterKeyField = "category";
            grfSubcategories.DetailKeyField = "category";
            gtvSubcategories.ParentTableRelation.Add(grfSubcategories);
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "subcategory";
            boundColumn.HeaderText = "Subcategory";
            gtvSubcategories.Columns.Add(boundColumn);
            rgStandards.MasterTableView.DetailTables.Add(gtvSubcategories);

            //Standard Details
            GridTableView gtvStandards = new GridTableView(rgStandards);
            gtvStandards.DataMember = "standards";
            gtvStandards.DataKeyNames = new string[] { "standardText" };
            GridRelationFields grfStandards = new GridRelationFields();
            grfStandards.MasterKeyField = "subcategory";
            grfStandards.DetailKeyField = "subcategory";
            gtvStandards.ParentTableRelation.Add(grfStandards);
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "standardText";
            boundColumn.HeaderText = "Standard";
            gtvStandards.Columns.Add(boundColumn);
            gtvSubcategories.DetailTables.Add(gtvStandards);
            gtvSubcategories.HierarchyDefaultExpanded = true;

            rgStandards.DataSource = StandardsSet;
            rgStandards.DataBind();

And here is my recursive function for removing the expand/collapse buttons:

        protected void rgStandards_PreRender(object sender, EventArgs e) {
            HideExpandColumnRecursive(rgStandards.MasterTableView);
        }

        public void HideExpandColumnRecursive(GridTableView tableView) {
            GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView);
            foreach (GridNestedViewItem nestedViewItem in nestedViewItems) {
                foreach (GridTableView nestedView in nestedViewItem.NestedTableViews) {
                    TableCell cell = nestedView.ParentItem["ExpandColumn"];
                    cell.Controls[0].Visible = false;
                    if (nestedView.HasDetailTables) {
                        HideExpandColumnRecursive(nestedView);
                    }
                }
            }
        }
Viktor Tachev
Telerik team
 answered on 11 Feb 2014
1 answer
85 views
I am using a RadGrid with a user control - on the control are Update/Cancel buttons. I added some jquery to enable them when a user changes something. I've noticed though that it only works on the topmost row in the grid. Can someone help me get the jquery correct to enable the buttons on the correct row. Currently the btnUpdate.ClientID is not grabbing the correct row update button - I assume I need to be passing the event somehow - the clientIDs change by row - for example the srcElement.id of the textbox is "ctl00_ContentPlaceHolder1_ctrlReviews_rgReview_ctl00_ctl05_EditFormControl_txtVendorEngagementID" but the textBoxChanged button found is
ctl00_ContentPlaceHolder1_ctrlReviews_rgReview_ctl00_ctl07_EditFormControl_btnUpdate. It should be ct105.


<script type="text/javascript">
var ischanged = false;

$(document).ready(function () {
$('input').keydown(function (event) {
if (event.srcElement.id.indexOf("ctrlReviews_rgReview") != -1) {
textBoxChanged();
}
});
$('select').keydown(function (event) {
if (event.srcElement.id.indexOf("ctrlReviews_rgReview") != -1) {
textBoxChanged();
}
});
$('textarea').keydown(function (event) {
if (event.srcElement.id.indexOf("ctrlReviews_rgReview") != -1) {
textBoxChanged();
}
});
function textBoxChanged() {
$('#hdnIsChanged').value = "true";
var btn = $('#trButtons').find("#<%=btnUpdate.ClientID%>");
btn.removeAttr("disabled");
}
});

</script>
Marin
Telerik team
 answered on 11 Feb 2014
1 answer
128 views
Hi,

    Good Morning!

    I am using RadScheduler control to bind the appointments.To create the time slot, using TimeSlotCreated event. 
    If one drop down selected index changed, Timeslotcreated event is firing twice.
   (i.e)  before page_load event and after the page_load event.

   can anyone please assist me how to control event firing twice?
   I want to fire this event only one.

Thanks,
Sathy.
Plamen
Telerik team
 answered on 11 Feb 2014
4 answers
75 views
Hi,

I am using RadNumericTextBox inside a RadGrid and I am setting the values of each row from server side.  This works fine for the last 2 years and it has been tested with several browsers (IE, Firefox, Opera, Safari).
Now, I got the latest update of Firefox (version 27) and this isn't working. The RadNumericTextBox in each row remains empty. When I tested again with Firefox older version (e.g 24) this still works fine.
Could you please help me with this problem?

Kind regards,
Antonia
   
Viktor Tachev
Telerik team
 answered on 11 Feb 2014
3 answers
180 views
Rad Ratting is not working in chrome, previously it used to work in all browsers.
 <telerik:RadRating ID="RadEngaging" runat="server" ItemCount="5" SelectionMode="Continuous"
                                                                    Precision="Half" Orientation="Horizontal">
                                                                </telerik:RadRating>

Misho
Telerik team
 answered on 11 Feb 2014
1 answer
293 views
We have a bit in our master page like
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
CdnSettings-TelerikCdn="Enabled">
   </telerik:RadScriptManager>

As I understand from the documentation, if the site is http, the scripts and skins should be coming from http:....telerikstatic.com
And if the site is SSL/https the scripts and skins should be coming from the https....cloudfront.net url.

Unfortunately this is not what is happening.  When I go to the client's website on their server, view the site under https, and look at the source, I see that things are coming from cloudfront.net as they should.  
However, when I view the same site remotely using https, pieces of the page are missing, and looking at the view source, I see the items are pulling from the telerikstatic.com location instead.  This is a problem in firefox and other browsers set to only deliver secure content when its an SSL site, and causes our site to be non functional.   If I tell firefox yes I want nonsecure content too, then it works fine.  

Does anyone have any idea why the skins and scripts aren't coming from the https...cloudfront url like they should??  I even tried putting a section in the web.config to universally enable the cdn and use the cloudfront url, but it doesn't seem to have any effect.

I'm pulling my hair out, and not a network engineer.  All suggestions will be appreciated.

 

Dimitar Terziev
Telerik team
 answered on 11 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?