Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
62 views

Hi,

I have a RadTreelist inside a RadTreeview nodes.My requirement is to Retrieve  RadTreelist from a RadTreeview using javascript.My aim is to when clicking on the RadTreeview node ,my RadTreelist should be expand at level 1.How is it possible using javascript?How to iterate each nodes using javascript?

Thanks ,
Sindu.
Pavlina
Telerik team
 answered on 22 Nov 2011
6 answers
175 views
Hi,

1. ColorPicker always behind of jQuery UI Dialog.
2. ColorPicker appears with delay after first opening.

My code here:
<%@ Page Language="C#" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
  
    }
</script>
<head runat="server">
    <title></title>
        type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="myDialog" style="display: none; overflow:hidden;">
        <table>
            <tr>
                <td>
                    Value: </td>
                <td>
                    <telerik:RadColorPicker 
                        ID="RadColorPicker1" 
                        ShowIcon="true"
                        style="z-index:5000"  
                        runat="server">
                    </telerik:RadColorPicker>
                </td>
                <td>
                    <input id="Button1" type="button" value="Save" onclick="javascript:saveColor();" />
                </td>
            </tr>
        </table>
    </div>
    <div id="selectedColor"></div>
    <input id="Button2" type="button" value="New color" onclick="javascript:openDialog();" />
    </form>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js" type="text/javascript"></script>
    type="text/javascript"></script>
<script type="text/javascript">
  
    function saveColor() {
        var c = $find("RadColorPicker1");
        $("#selectedColor").html("Your selected color is: " + c.get_selectedColor());
        $("#myDialog").dialog("close");
    }
  
    function openDialog() {
        $("#myDialog").dialog({
            title: 'Choose color',
            width: '250',
            draggable: false,
            resizable: false,
            show: 'slow',
            hide: 'slow',
            modal: true
        });
    }
  
    $(document).ready(
        function () {
            //
        }
    );
  
</script>
</html>

Please solve this issue!

Thanks!
Niko
Telerik team
 answered on 22 Nov 2011
1 answer
157 views
<div class="product-grid">
<asp:DataList ID="dlProducts" runat="server" RepeatColumns="2" RepeatDirection="Horizontal"
RepeatLayout="Table" ItemStyle-CssClass="item-box">
<ItemTemplate>
<nopCommerce:ProductBox1 ID="ctrlProductBox" Product='<%#Container.DataItem%>'
runat="server" />
</ItemTemplate>
</asp:DataList>
</div>
<div class="clear">
</div>
<div class="product-pager">
<telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="dlProducts">
            <Fields>
                <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                <telerik:RadDataPagerButtonField FieldType="Numeric" />
                <telerik:RadDataPagerButtonField FieldType="NextLast" />
                <telerik:RadDataPagerGoToPageField />
                <telerik:RadDataPagerNumericPageSizeField />
                <telerik:RadDataPagerSliderField />
            </Fields>
        </telerik:RadDataPager>
</div>



please help me how can i use raddatapager with asp datalist ???

i tried this but its not working
???
Iana Tsolova
Telerik team
 answered on 22 Nov 2011
0 answers
117 views
i Deleted Css files from TFS and added new css files those i merged in to main.but if anyone take latest they are not getting latest means Css files are not including to Project wat is the problem please give me any suggestion
Abu
Top achievements
Rank 1
 asked on 22 Nov 2011
3 answers
176 views

Hi,

I have a radtreeview .it has 3 Treenode .I have a RadTreelist inside the node template .how to expand the treelist when I expand the treenode ? or In which treenode event should be used for this purpose?

Thanks

Sindu.
Tsvetina
Telerik team
 answered on 22 Nov 2011
1 answer
115 views
Hi,

We are using sharepoint 2007.
In one of our subsite we are facing error while trying to activate feature.

In Site Feature when we try to activate Feature  "Office SharePoint Server Publishing" then we get following error

The given key was not present in the dictionary.   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Microsoft.SharePoint.Publishing.PublishingWeb.get_VariationLabelsListId()
   at Microsoft.SharePoint.Publishing.Internal.VariationSettings.get_VariationLabelsList()
   at Microsoft.SharePoint.Publishing.PublishingWeb.<>c__DisplayClass19.<get_IsInVariationSourceHierarchy>b__18()
   at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
   at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
   at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
   at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
   at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
   at Microsoft.SharePoint.Publishing.PublishingWeb.get_IsInVariationSourceHierarchy()
   at Microsoft.SharePoint.Publishing.Internal.AreaProvisioner.InitializePublishingWebDefaults()

Kindly help me to remove this error.
Thanks in advance,
Rushikesh
Stanimir
Telerik team
 answered on 22 Nov 2011
1 answer
233 views

Hi,

 I have a RadTreelist inside RadTreeviewNodes.
 My requirement is to expand RadTreelist at first level when expanding the treeview node.
I have given the code below

function

 

 

ClientNodeExpanded()

 

{

 

 

var treeView = $find("<%= tree.ClientID %>");

 

 

 

 

var nodes = treeView.get_allNodes();

 

 

 

for (var i = 0; i < nodes.length; i++) {

 

 

 

if (nodes[i].get_nodes() != null) {

 

alert(

 

'hi');

 

 

 

var treelist = nodes[i].get_nodes().getNode(i).findControl("RadTreeList1");

 

treelist.ExpandAllItems();

 

}

}

 

}

treelist.ExpandAllItems() is not workng ...how can I expand treelist at clientside?

 

list.ExpandAllItems();list.ExpandItemToLevel(1) ; these are the C# code for expanding treelist to all items and expand the firstlevel only.
what are the corresponding functions in clientside (javascript)?

 

 

 

Iana Tsolova
Telerik team
 answered on 22 Nov 2011
10 answers
123 views
Hi,

I am creating a website, which needs to have the controls formatting and other stuff get loaded dynamically.Do the telerik control support this feature, out of the box.
Or alternatively do it have the options of creating some XML/XSL files from the controls layout, and loading from the same files to build the UI.

I have find the same utility in Dev-Ex controls for windows application, and was curious if the same is with telerik then it will encourage me to have your product on-board with us.


Thanks

Amit Kothari
Top achievements
Rank 1
 answered on 22 Nov 2011
4 answers
73 views
At least for me it was.  I have a generic list of data i'm binding to the RadChart, where each item contains:
  Name, Quarter, Value

I'd like to display a bar for each quarter, grouped on the Name's.  I can get it to display either by just name, or just Quarter, but not both.  There are variable numbers of items per name, if there is not data present for a quarter there is no item in the list.

I assume from the examples and documentation that I would set,
    series[0].DataYColumn to Value
    DataGroupColumn to Quarter
    PlotArea.XAxis.DataLabelsColumn to Name

But that only yields one bar per Name.  I also tried setting the DataManager.ValuesXColumn, but achieve only the same results.

For some reason though, not explicitly setting series[0].DataYColumn to anything gave me the output that I wanted.  Rather counterinuitive, but it seems to have worked.
Russ
Top achievements
Rank 1
 answered on 22 Nov 2011
0 answers
69 views
Hi,
Environment:
MOSS2007, Visual Studio2010. Target Framework:3.5, SQl Server2008

I am working with telerik controls in MOSS2007. I am able to get the controls by adding manually on the Application page (registering Telerik). when i am adding as a user control as the way we will add user controls in ASp.net its not populating on the page.  when i am trying to bind the Data to the RadGrid, i am getting the gridControl on the page but the data is not populating in the  Grid. I tried with all the ways of bindings as per the Telerik SDK. In all the ways i am facing the same issue. And i didnt find anything in the log's also.
Please provide me a solution step by step as soon as possible for these two issues.
1. Adding Telerik controls as Usercontrols on the Sharepoint2007 pages.
2. How to bind the data to the RadGrid to work in MOSS2007 pages




Regards  
mallikarjun
Mallikarjun Rao
Top achievements
Rank 1
 asked on 22 Nov 2011
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
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
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?