Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
124 views
I've got some Javascript bound to the click event for a bunch of buttons in an asp:repeater representing time slots. Once the buttons are updated through the RadAjaxManager, the Javascript no longer works. If I remove the RadAjaxManager stuff (so it does full PostBacks), it works fine. I've tried moving the Javascript into various places. I've tried using .on rather than just binding .click directly but can't seem to make it work.

jQuery(function($) {
            $(".SelectScheduleDate").on("click", selectTime);
}

Any thoughts on what I need to do differently?

David
Eyup
Telerik team
 answered on 13 Apr 2012
1 answer
102 views
Hi,

We have recently installed the radeditor as the default editor in our Sharepoint 2010 installation. One request that has been mentioned is the ability to have different tools available based on the users permissions in sharepoint. e.g. a power user or sharepoint administrator may wish to have the HTML view availaible to do some more advanced customisations / fix user errors.

Is it possible to control toolbar / editor configurations on a per user basis?

I have searched around the internet and forums and found no reference as to how to achieve this in sharepoint environment.
Stanimir
Telerik team
 answered on 13 Apr 2012
1 answer
117 views
Is that possible to make a boundcolumn readonly in edit mode and user should be able to insert new record to that field?
Princy
Top achievements
Rank 2
 answered on 13 Apr 2012
1 answer
438 views

hi I have a RadGrid bound to an openaccess data source on the radgrid

 

_UpdateCommand event I want to save the text value of a combobox not the selected value because we have allowcustomtext on the dropdown set to true

we are useing a "GridDropDownColumn" in the grid, have "radComboBox.AllowCustomText = true" in the Itemdatabound event, and now I am getting the value with "ExtractValues" method in the _UpdateCommand event

Hashtable values = new Hashtable();
gridEditableItem.ExtractValues(values);
values["School"] = radComboBox.Text;

 

I am just not sure how to get the orm to save the changed value?

I tried this but that did not work

gridEditableItem.UpdateValues(values);

what am I missing?

 

 


 

 

 

 

 

 

 

 

 

 

 

 

 

Pavlina
Telerik team
 answered on 13 Apr 2012
1 answer
188 views
I have a radgrid bound to a sqldatasource, I have the columns using a radcombobox. What I want to do is switch some of the columns to use checkboxes like on this example:
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx 
The only other thing I've been able to find on this is from this forum from 2009:
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-filtering-using-a-radcombobox-of-checkboxes.aspx 

But first mine is all declared in the aspx file, and second everything else is changing the filter using a js call like:
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
tableView.filter("CustomerName", args.get_item().get_value(), "EqualTo");

While that forum post ends with a:
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("ContactTitle," + text ); 
That calls a function on the code behind:
private void RadAjaxManager1_AjaxRequest(object  sender, AjaxRequestEventArgs e) 
 
  if(e.Argumnet.ToString().Split[','][0]=="ContactTitle"
    { 
     //Access the rest of the string and set the filter Expression 
     
    } 
}  

What is the best way to do what I'm trying to do, and if that's the only way to do the checkboxes (using the ajax call) how do I modify the sqldatasource from the ajax call so that it doesn't mess up the rest of the filtering?

Update:
I created a control that inherits from GridTemplateColumn,
In there I do:
RadComboBox rcBox = new RadComboBox();
            rcBox.ID = "DropDownList_" + DataField;
            rcBox.AutoPostBack = true;
            rcBox.DropDownWidth = DropDownWidth;
            rcBox.Width = FilterControlWidth;
            rcBox.CheckBoxes = true;
            rcBox.ItemChecked += rcBox_ItemChecked;
            rcBox.Height = Unit.Pixel(200);
 	    DataTable table = GetDataTable(string.Format("SELECT DISTINCT cast({0} as varchar) as {0} FROM {1} Where 1=1 {2} order by {0} asc"this.DataField, TableName, where));
            rcBox.DataTextField = this.DataField;
            rcBox.DataValueField = this.DataField;
            rcBox.DataSource = table;
            cell.Controls.Add(rcBox);

my rcBox_ItemChecked looks like this:
private void rcBox_ItemChecked(object sender, Telerik.Web.UI.RadComboBoxItemEventArgs e)
        {
            ((GridFilteringItem)(((RadComboBox)sender).Parent.Parent)).FireCommandEvent("Filter"new Pair());
        }

in the:
protected override void SetCurrentFilterValueToControl(TableCell cell)
and:
protected override string GetCurrentFilterValueFromControl(TableCell cell)
How can I access the checkboxs?
And how do I add or filtering best?
Pavlina
Telerik team
 answered on 13 Apr 2012
1 answer
102 views
G'Day Guys,

I have been asked to place a copyright notice in small lettering on the very bottom right of each chart.

Should be a simple thing to put some text down there, but I am struggling to find out how to do it.  If it were within the plot area then I gather I could use markedzones, but even reading through the examples I do not see a clear way to put text on the chart using marked zones.  I followed the demo and I can make lovely colorful back strips ..... not what I need right now though.

1.  How can I add something like "Copyright 2012, XYZ Company" to the bottom right hand corner of the chart.
2. If it can't go on the bottom can you show me a simple example of placing text on the plot area.

Many thanks in advance.

Attatched a pic to show what I want, follow the red arrow :).

Cheers

Ian.
Yavor
Telerik team
 answered on 13 Apr 2012
6 answers
189 views
Does anyone know how to refresh the get_count() value after removing a menu item on client side?
I use the following to remove the menu header item after the last child item is removed but the get_count() function keeps returning the maximum amount of child items that were created by get_items().add(...).

Here is the code I use:

function AddNewMenuItem(itemText,itemValue) {
    var menu = $find(MainMenu_ID);
    var menuTabsItem = menu.findItemByText("Tabs");
    var menuItem = new Telerik.Web.UI.RadMenuItem();
    if (!menuTabsItem) {
        menuItem.set_text("Tabs");
        menuItem.set_value("");
        menu.get_items().add(menuItem);
        menuTabsItem = menu.findItemByText("Tabs");
    }
    menuItem = new Telerik.Web.UI.RadMenuItem();
    menuItem.set_text(itemText);
    menuItem.set_value(itemValue);
    menuTabsItem.get_items().add(menuItem);
}
 
function RemoveMenuItem(itemValue) {
    var menu = $find(MainMenu_ID);
    var menuTabsItem = menu.findItemByText("Tabs");
    var menuTabsItemToRemove = menu.findItemByValue(itemValue);
    if (menuTabsItem) {
        alert("a " + menuTabsItem.get_items().get_count())
        menu.get_items().remove(menuTabsItemToRemove);
        alert("b " + menuTabsItem.get_items().get_count())
        if (menuTabsItem.get_items().get_count() == 0) {
            menu.get_items().remove(menuTabsItem);
        }
    }
}

It works to add and remove items under the item "Tabs" but when a child item is removed from the menu "Tabs" the get_count() returns the same value for point "a" and point "b" in the alert functions of RemoveMenuItem. Just to make myself clear, the item does get removed as expected.
Ioannis
Top achievements
Rank 1
 answered on 13 Apr 2012
1 answer
145 views
We are evaluating various html editor control and telerik is one of them. So far we have found telerik html editor to be very impressive viz-a-viz other vendors out there. There is one important feature we are looking for, seems to be missing from telerik is populating custom drop down from client side. This could be a make or break a deal kind of situation for us. To give you more details, here is the scenario. 

We have a page that has multiple tabs on it, one of the tabs accepts contact list, the list is a tabular screen, so users can enter multiple contacts, in this case all the operations are done on client side, the information is still not persisted on database. There is a second tab in which we show HTML Editor and we need a custom drop down. This custom drop down will show first and last name from the contact list that is populated by users on first tab page screen. As you can make out , the site is highly dynamic and doesn't do a round trip to server. 

We looked at this sample - http://demos.telerik.com/aspnet-ajax/editor/examples/customdropdowns/defaultcs.aspx 

But they are all populated from server side, in our case, we need to populate drop downs from client side. Would appreciate if anyone from telerik could shed a light on this issue, because our telerik evaluation has hit a roadblack. 

Cheers
Yogesh 
Rumen
Telerik team
 answered on 13 Apr 2012
1 answer
107 views
Hi,

Wondering if you can have different ascx forms for inserting informaiton and updating information, becuase sometimes I do not want they to update all the information but only certain portions.  Is there a way to do via ascx pages or inline with the grid as well.

Thanks
Princy
Top achievements
Rank 2
 answered on 13 Apr 2012
2 answers
118 views
Is there a way i can attach one of my grid commands (In this case update all) to a standard radbutton? I can't find any info on this so your help would be greatly appreciated.
Shinu
Top achievements
Rank 2
 answered on 13 Apr 2012
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?