Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
159 views
http://www.telerik.com/help/aspnet-ajax/menu_appearancecreatingacustomskin.html

the above link point to a "Tutorial: Creating A Custom Skin", but that is based on your older version of controls. your newer version is using "rmSprite.png" and no longer use "Menu|MenuBackGround.gif" etc and css structure seems to change a lot becuase I can't find the nodes that are mentioned in the above tutorial.  This makes the above tutorial almost useless.  Is there a newer version?  where is it?  Thanks.
R
Top achievements
Rank 1
 answered on 19 Sep 2010
0 answers
89 views

Hello,

 

I've installed Visual Web Developer Express 2010 and Telerik ASP .NET Ajax Controls.

 

I'm trying to follow a tutorial.

At a certain point it says : "Add a RadMenu to the top of the web page."

I guess I have to drag and drop it from the Toolbox ? I think I've already seen someone doing this a year ago.

But my problem is : I have no Telerik's Rad controls in my toolbox and I have no idea how I'm supposed to add them.

 

Thank you if you can help.

Xrcr
Top achievements
Rank 1
 asked on 19 Sep 2010
0 answers
192 views
Dears,
me and my team colleagues have faced a very strange issue withthe RadComboBox with items bouded in ItemTemplate controls,
Our UI design Case is:
we have a radComboBox with items bouded into ItemTemplate controls in the server side with a datasource of
Lookup type (Key, Value). This rad combobox is placed in a rad update panel and set to autopostback = true.
It has another dependent comboboxes should be filtered on each user closing of the combobox with his/her checked items.
The item template contains ASP checkBox represents the data text and a hidden field represents the data Key.
After the user check some of the comboBox checkboxes and leave this control out, a client side function is called to collect the user checked items and show them in the combobox Text as comma separeated string. in addition, the combobox when is autopostback true should be notified that the user has selectedItemChanged so that the server side event (onSelectedIndexChanged) should be called after each user closig of the combobox control.
The Problem is:
The server side event is not called all the time after leaving the combobox. we supposed that the combobox know that the selectedIndexChanged when we write (comboBoxClientObj.set_selectedItem(0);) or any similier code re set the selected item in the client side so that firing the server side event.
Unfortuanitly, the server side onSelectedIndexChanged is not called on checking the Text#1, while called on all other cases !!
Our Code related part:
* on .ASCX

<

 

telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

 

<script type="text/javascript">

 

function CheckAll_CCRLoadChartFilter_Location() {

 

var chkboxs_Location = Chart_CCRLoadChartFilter_CheckBoxsLocation_IDs.split(",");

 

 

for (var i = 0; i < chkboxs_Location.length - 1; i++) {

 

 

        if (document.getElementById(chkboxs_Location[i]) != null) {

        document.getElementById(chkboxs_Location[i]).checked = document.getElementById(chkboxs_Location[0]).checked;

        }

    }

 

}

 

function RemoveCheckAll_CCRLoadChartFilter_Location() {

 

 

var chkboxs_Location = Chart_CCRLoadChartFilter_CheckBoxsLocation_IDs.split(",");

 

 

var d = $find("<%= ddlLocation.ClientID %>")

d.set_selectedItem(0)

document.getElementById(chkboxs_Location[0]).checked =

 

false;

}

 

 

function SetTextOfTheLocationComboBox_CCRLoadChartFilter(sender, eventArgs) {

 

 

var chkboxsLocation = Chart_CCRLoadChartFilter_CheckBoxsLocation_IDs.split(",");

 

 

var selectedLocation = "";

 

 

for (var i = 0; i < chkboxsLocation.length - 1; i++) {

 

 

var chkedItemLocation = document.getElementById(chkboxsLocation[i]);

 

 

var chkedItem_All_Location = document.getElementById(chkboxsLocation[0]);

 

 

if (chkedItemLocation != null && chkedItemLocation.checked) {

 

 

if (chkedItem_All_Location != null && chkedItem_All_Location.checked) {

selectedLocation = chkedItem_All_Location.nextSibling.firstChild.data;

sender.set_text(selectedLocation);

 

return;

}

selectedLocation = selectedLocation + chkedItemLocation.nextSibling.firstChild.data +

",";

 

}

}

 

if (selectedLocation == "")

selectedLocation =

 

"..."

 

else {

document.getElementById(

 

"<%= tdLocation.ClientID %>").title = selectedLocation;

 

 

if (selectedLocation.length > 25) {

selectedLocation = selectedLocation.substring(0, 22) +

 

"...";

}

}

 

sender.set_text(selectedLocation);

}

 

 

function SetTextOfTheLocationComboBox_CCRLoadChartFilter_Close(sender, eventArgs) {

 

 

var chkboxsLocation = Chart_CCRLoadChartFilter_CheckBoxsLocation_IDs.split(",");

 

 

var selectedLocation = "";

 

 

for (var i = 0; i < chkboxsLocation.length - 1; i++) {

 

 

var chkedItemLocation = document.getElementById(chkboxsLocation[i]);

 

 

var chkedItem_All_Location = document.getElementById(chkboxsLocation[0]);

 

 

if (chkedItemLocation != null && chkedItemLocation.checked) {

 

 

if (chkedItem_All_Location != null && chkedItem_All_Location.checked) {

selectedLocation = chkedItem_All_Location.nextSibling.firstChild.data;

sender.set_text(selectedLocation);

 

return;

}

selectedLocation = selectedLocation + chkedItemLocation.nextSibling.firstChild.data +

 

",";

}

}

 

if (selectedLocation == "")

selectedLocation =

 

"..."

 

else {

document.getElementById(

 

"<%= tdLocation.ClientID %>").title = selectedLocation;

 

 

if (selectedLocation.length > 25) {

selectedLocation = selectedLocation.substring(0, 22) +

 

"...";

}

}

 

sender.set_text(selectedLocation);

}

 

 

</script>

</

 

telerik:RadScriptBlock>

 

 

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

 

<table width="235px" dir="rtl" style="text-align: left">

 

<tr>

 

    <td>

 

        <telerik:RadComboBox Width="100%" ID="ddlLocation" runat="server" Skin="Office2007"

 

        MaxHeight="150px" AutoPostBack="true" CausesValidation="false" OnItemDataBound="ddlLocation_ItemDataBound"

 

        OnClientSelectedIndexChanged="SetTextOfTheLocationComboBox_CCRLoadChartFilter_Close"  OnSelectedIndexChanged="ddlLocation_OnSelectedIndexChanged"

 

        OnClientLoad="SetTextOfTheLocationComboBox_CCRLoadChartFilter">

 

            <ItemTemplate>

 

                <asp:CheckBox ID="chkDropLocationItem_CCRLoadChartFilter" AutoPostBack="false" Checked="true"

 

                        runat="server" Text='<%# Eval("Value")%>' />

 

                <asp:HiddenField ID="hdnDropLocationItem_CCRLoadChartFilter" runat="server" Value='<%# Eval("Key")%>' />

 

            </ItemTemplate>

 

            <CollapseAnimation Type="OutQuint" Duration="0"></CollapseAnimation>

 

        </telerik:RadComboBox>

 

    </td>

 

</tr>

 

</table>

</

 

telerik:RadAjaxPanel>

 

 

* on .CS

 

protected override void OnPreRender(EventArgs e)

 {

 

 

 

ScriptManager.RegisterClientScriptBlock(this.Page, typeof(Page), "Register_CCRLoadChart_checkBoxsLocation_ID", "<script> var Chart_CCRLoadChartFilter_CheckBoxsLocation_IDs='" + CheckBoxesLocationIds + "';</script>", false);

 

 

base.OnPreRender(e);

}

 

 

protected void Page_Load(object sender, EventArgs e)

{

 

    if (!this.IsPostBack)

    {

    FillLocationLookup();

 

    }  

 

 

}

 

 

protected

 

void ddlLocation_ItemDataBound(object sender, RadComboBoxItemEventArgs e)

 

 {

 

 

CheckBox chk = e.Item.FindControl("chkDropLocationItem_CCRLoadChartFilter") as CheckBox;

 

 

if (chk != null)

{

 

if (e.Item.Index == 0)

chk.Attributes[

"onClick"] = "CheckAll_CCRLoadChartFilter_Location()";

 

 

else

 

 

chk.Attributes[

"onClick"] = "RemoveCheckAll_CCRLoadChartFilter_Location()";

 

 

if (!CheckBoxesLocationIds.Contains(chk.ClientID))

CheckBoxesLocationIds += chk.ClientID +

 

",";

}

}

 

 

protected void ddlLocation_OnSelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)

{

 

List<String> selectedLocation = new List<String>();

 

 

foreach (RadComboBoxItem item in ddlLocation.Items)

{

 

CheckBox chk = item.FindControl("chkDropLocationItem_CCRLoadChartFilter") as CheckBox;

 

 

HiddenField hdnField = item.FindControl("hdnDropLocationItem_CCRLoadChartFilter") as HiddenField;

 

 

if (chk != null && hdnField != null && chk.Checked && !String.IsNullOrEmpty(hdnField.Value))

{

 

if (hdnField.Value == Constants.AllLocation_Key)

{

selectedLocation.Add(

 

Constants.AllLocation_Key);  

 

 

break;

}

 

else

 

 

{

selectedLocation.Add(hdnField.Value);

}

}

}

FilterParameters filterParameters = (((IAdvanceSearch)Page).Parameters);  

 

 

List<string> courts = filterParameters.Courts; ;

 

CourtNodeTree courtNameTree = FiltersManager.CurrentUserCourtNodeTree.GetCourtNameTree(courts.ToArray());

 

 

List<LookupItem> lookupCourtType = new List<LookupItem>();

 

 

string[] classification = new string[1];

classification[0] = filterParameters.Classificaton;

lookupCourtType = courtNameTree.GetCourtTypeNodes(selectedLocation.ToArray(), classification);

 

if (lookupCourtType.Count > 0)

{

lookupCourtType.Sort(

 

new LookupItemComparer());

lookupCourtType.Insert(0,

 

new LookupItem(Constants.AllCourtsType_Key, Constants.AllCourtsType_Value));

FillDropDown(lookupCourtType, ddlCourtType);

}

 

else

 

 

{

ddlCourtType.Items.Clear();

ddlCourtType.ClearSelection();

}

}

yours comments and fix will be highly apprieciated,

Regards,
Samar hamdan.





Samar Hamdan
Top achievements
Rank 1
 asked on 19 Sep 2010
0 answers
178 views
Hello,
I am developing a web application with ASP.NET 3.5 with C# and telerik Ajax Control. I am using multiple custom control which I made from telerik style builder and custom css file and finally I compleated a custom theme. Now I want to use multiple theme in my web application and change the theme with theme dropdown list. Can I manage the multiple custom controls  from one files or css file? Application Image is bellow link project image
How can I make customize theme with multiple custom controls?


Thanks
Md Nasir Uddin
Nahid
Top achievements
Rank 1
 asked on 19 Sep 2010
2 answers
65 views
I'm trying to figure out how to report success or failure of backend operations to the user someplace on the grid. For instance, when the user tries to save changes to a record in the grid and the save fails, some place on the grid a message shows up in red and says "the changes to this record did not save" or "ERROR" or something like that.

I saw that you could do this awhile back using GridStatusBarItem but that was obsoleted in a 2009 release. How do I do something like this?
thanks for the great product,
rm
Ric
Top achievements
Rank 1
 answered on 18 Sep 2010
2 answers
88 views
How do I change the dock icon to an 'X' for close  in the slidingpane?  thanks
Jon
Top achievements
Rank 1
 answered on 18 Sep 2010
1 answer
144 views
Hi,

When I call the method "Autosize" on a RadWindow while a RadTextBox has the focus, the RadTextBox has not the focus anymore after the resize has been performed.

Is there a way to prevent that ?

Thanks a lot
Shinu
Top achievements
Rank 2
 answered on 18 Sep 2010
2 answers
121 views
I am using related combo box with filtering option. The last drop down load only after press outside click. It does not load automatically after selecting the previous combo.

So I could not able to combine both the related combo box  and filtering feature . Please suggest.

Advance thanks
gokul
Top achievements
Rank 1
 answered on 18 Sep 2010
1 answer
251 views
Is it possible to use the grid drop down without it being databound.  I'd like to use it where there are only a handful of selection items.  I'm at a loss how to do this.

Thanks,

Shinu
Top achievements
Rank 2
 answered on 18 Sep 2010
1 answer
247 views
Hi All ,

I have a Rad Grid which has the Rad Edit Functionality. When I am clicking on the Edit. It gets the Id and should checked the list box items (List box is an ascx file)as per the id . It is going through the process and and making the ckeckbox items checked in the Code but not showing up checked. I would really appreciate, if someone has the solution or sugesstions for this.

Here is the code that I am using ;-

 

For Each grdItem As Telerik.Web.UI.GridItem In GridAssignmentRelocationAssistance.Items

 

 

    For Each selectedFilesItem In selectedFiles

 

 

        If selectedFilesItem = GridAssignmentRelocationAssistance.MasterTableView.DataKeyValues(grdItem.ItemIndex)   
        (GridAssignmentRelocationAssistance.MasterTableView.DataKeyNames(2)).ToString()
Then

 

 

            Dim selectBox As CheckBox = grdItem.FindControl("chkRelocationAssistanceFiles")

 

            selectBox.Checked =

True

 

 

        End If

 

 

    Next

 

 

Next

Thanks,
Kapil

Shinu
Top achievements
Rank 2
 answered on 18 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?