Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
Hi,

I need to make a help guide using RadTreeView.

For Example : http://www.telerik.com/help/aspnet-ajax/using-radcontrols-net20-30-35-projects-vs2008.html

However, the Help text load should load dynamically with Ajax straight from the database. I dont want the entire page to refresh, only the text content area on the right should load and show the new content. Also, all the nodes should load at once.

Request help on how I should go about the above. Any help - documentation/ code / instructions is welcome.

Many Thanks,
Ritika


Peter
Telerik team
 answered on 01 Feb 2010
1 answer
181 views

I have several questions regarding the Rad Image Editor:

 

1)      I would like to pass two values (crop x & y) from the main page code behind to the imageEditor? Thus allowing the user to select an area of the image they want to use in the calling page. In addition I would like crop to be enabled in the imageEditor (by default)

2)      Can the number of controls available to the user be reduced (e.g. remove opacity, flip, rotate and crop) what is the best way to customise the imageEditor.aspx file?

3)      Is it possible to have a maximise/restore default icon (in the top right of the window, next to ‘x’ Close) to increase the page size is the user has a large image?

4)       If the user uploads an image that is too big to fit in the imageEditor, is it possible to automatically resize the image to fit the available size?

 

Please note:

 

I am opening the image manager directly using the dialog opener.

 

Telerik Controls Q2 2009 Version 2009.2.826.20

 

I look forward to your reply

Rumen
Telerik team
 answered on 01 Feb 2010
1 answer
113 views
Due to accessability requirements, I was wondering if it is possible to add/edit grid records in a RadWindow with Javascript disabled? If so, could you please explain how to do so.

I can open a RadWindow outside of a RadGrid with javascript disabled, which opens in a normal popup window. However, I tried to use the same mechanism with an "Add New" button in the CommandItemTemplate of a RadGrid, but my asp:hyperlink control does not get declared in the code behind. I havn't even attempted to get the "Edit" and "Remove" operations working with Javascript disabled yet.

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

</asp:ScriptManager>

 

<telerik:RadWindowManager ID="ohsRadWindowManager" runat="server" KeepInScreenBounds="true" ReloadOnShow="true" ShowContentDuringLoad="false" VisibleStatusbar="false" >

 

<windows>

 

<telerik:RadWindow ID="radObserverAdd" NavigateUrl="Popup/Observer.aspx" OpenerElementID="<%# lnkObserverAdd.ClientID %>" OnClientClose="ReloadParent" runat="server" Title="Add observer">

 

</telerik:RadWindow>

 

</windows>

 

</telerik:RadWindowManager>

 

...
 

 

 

<telerik:RadGrid runat="server" GridLines="None" ID="rgObservedBy"  AutoGenerateColumns="False" EnableViewState="false" Visible="true">

 

<mastertableview CssClass="DataTable" CommandItemDisplay="Top" >

 

<Columns>

 

<telerik:GridBoundColumn HeaderText="Name"  HeaderTooltip="Name" ReadOnly="True"  UniqueName="colName" DataField="EmployeeNetworkUsername">

 

</telerik:GridBoundColumn>

 

<telerik:GridBoundColumn HeaderText="Contact Number" HeaderTooltip="Contact Number"  ReadOnly="True" UniqueName="colContactNumber">

 

</telerik:GridBoundColumn>

 

<telerik:GridTemplateColumn ReadOnly="True" UniqueName="colActions">

 

<ItemTemplate>

 

<asp:ImageButton ID="ibtnEdit" AlternateText="Edit" ImageUrl="/aspnet_client/system_web/2_0_50727/Themes/images/btn_vs_edit.gif" ToolTip="Edit" runat="server" AccessKey="e" />

 

<asp:ImageButton ID="ibtnRemove" AlternateText="Remove" ImageUrl="/aspnet_client/system_web/2_0_50727/Themes/images/btn_vs_remove.gif" ToolTip="Remove" runat="server" AccessKey="r" />

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

</Columns>

 

<CommandItemTemplate>

 

<asp:HyperLink ID="lnkObserverAdd" ToolTip="Add observer (opens new window)" Target="_blank" ImageUrl="/aspnet_client/system_web/2_0_50727/Themes/images/btn_vs_add.gif" runat="server" NavigateUrl="Popup/Observer.aspx"/>

 

</CommandItemTemplate>

 

</mastertableview>

 

</telerik:RadGrid>

***

Many Thanks,
Ryan Bartsch

 

 

Princy
Top achievements
Rank 2
 answered on 01 Feb 2010
2 answers
84 views

We bought the package of controls and enjoy your very use it!

In use Grid - are there a possibility to catch events of grid controls?

 We have two  GridDropDownColumn one of the city and other of the street - we want that on choice of the GridDropDown city  the GridDropDown  street, will be refresh by the selected city.

 The question is how catch  the event on server  side GridDropDown events?

 We tried to register to the event on  Grid_itemDataBound event but apparently it's too late  Because It did not register.

 

protected

 

void Grid_mdr_Midrasha_ItemDataBound(object sender, GridItemEventArgs e)

 

{

 

if (e.Item is GridEditableItem && e.Item.IsInEditMode)

 

{

 

 

RadComboBox list = (e.Item as GridEditableItem)["iCityId"].Controls[0] as RadComboBox;

 

list.MarkFirstMatch =

true;

 

list.SelectedIndexChanged +=

new RadComboBoxSelectedIndexChangedEventHandler(list_SelectedIndexChanged);

 

}

}

 

 

lea ginsberger
Top achievements
Rank 1
 answered on 01 Feb 2010
2 answers
127 views
hey~

I have a treeview with 200 records(per record with one picture, ex: folder.gif or trashcan,gif ), when we use Firefox, the page is running well(2-3 sec), but when we use IE6, the page is running vary slow(20 sec). It seems there are too many pictures(more than 400 pictures) to be loaded in IE, but this situation doesn't happen in Firefox.

so, there are two question:
1. Do we miss something to know when we use this treeview?
2. what's the cause there are so many picture need to de load? could we reduce the number of picture?

thanks.
Yana
Telerik team
 answered on 01 Feb 2010
1 answer
47 views
Hi ,

I am new to RAD Control.
I want to know ASP.NET 2009.1.311.20 version support to which Framework 2.0/3.0/3.5 ?
Or if I have RAD ASP.NET 2009.1.311.20 version , Can I use it in VS 2008 ,Framework 3.5 ?
I am quite confused.

Thanks & Regards,
Madhuri Nimse
Daniel
Telerik team
 answered on 01 Feb 2010
3 answers
176 views
i have changed my radTab strip to Q3 2009

the issue i am facing is all the page views are commming in one Tab whipe opening the page.

my aspx code is like this.. & i have attached the screen shot also.
pls give a solution on this
aspx Code:
           <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
            SelectedIndex="0" OnClientTabSelected="OnClientTabSelected" EnableEmbeddedSkins="false" >
            <Tabs>
                <telerik:RadTab Text="List" ImageUrl="~/App_Themes/kentz/images/list.png" PageViewID="BidLineDet"
                    Value="1">
                </telerik:RadTab>
                <telerik:RadTab Text="New" ImageUrl="~/App_Themes/kentz/images/New.png" PageViewID="NewLine"
                    Value="2">
                </telerik:RadTab>
                <telerik:RadTab Text="Custom Bid Entry Details" ImageUrl="~/App_Themes/kentz/images/list.png"
                    PageViewID="KentzBid" Value="3">
                </telerik:RadTab>
                <telerik:RadTab Text="Add Custom Bid Entry" ImageUrl="~/App_Themes/kentz/images/New.png"
                    PageViewID="NewKentzBid" Value="4">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" EnableEmbeddedBaseStylesheet="true">
            <telerik:RadPageView ID="BidLineDet" runat="server" CssClass="TabContent">
           ---
            ---
            ----
         </telerik:RadPageView>
           <telerik:RadPageView ID="NewLine" runat="server" CssClass="TabContent">
            ---
            ---
            ----
            </telerik:RadPageView>




on page load VB side, iam doing
    RadTabStrip1.selectedindesx = 0
    RadMultipage.SelectedIndex = 0


Kamen Bundev
Telerik team
 answered on 01 Feb 2010
1 answer
142 views
Having a issue with the Month/Year RadDatePicker script provided at http://www.telerik.com/community/code-library/aspnet-ajax/calendar/month-year-picker.aspx. It is working as expected for other cultures except  Chinese.

To reproduce this issue 
1) download the sample and add a Culture="zh-CN" attribute to the RadDatePicker tag
2) Run the project and pick a 2 character month (i.e. Jan-Oct).
The month in the input box changes to Jan always unless a 3 character month is selected (i.e. Nov or Dec)

The issue is in the RadDatInputScript.js at Token.FindIndex where it assumes all the abbreviated month names are at least 3 characters long.

Token.FindIndex=function(_7d,_7e){
if(_7e.length<3){
return -1;
}
for(var i=0;i<_7d.length;i++){
if(_7d[i].toLowerCase().indexOf(_7e)==0){
return i;
}

I changed the condition to check for at least 2 characters instead of 3 but the format of the month in the month/year select popup drops the last character of the 3 character month to the next line. It is not a proper fix but for the moment it seems fine but I would like to have a proper fix.

Thanks

Savinda
Dimo
Telerik team
 answered on 01 Feb 2010
2 answers
103 views
I have created a custom skin for the panel bar.  I have altered the  RootItemBg.gif.
I have added it to App_Themes and have added the theme to the Page.  I have Enabled EmbeddedSkins set to false and the skin set to my skin name.

The skin works except fo on thing.  It does not show the RootItemBg.gif.  Is there a step I am missing?


 

Kamen Bundev
Telerik team
 answered on 01 Feb 2010
1 answer
165 views
hi.
i am designing grid Dynamically like this with Detail Tables.

    RadGridAudioFileReport = New RadGrid 
        Dim boundColumnClientID, boundColumnClient, boundColumnTotal As New GridBoundColumn 
        Dim templatecolumnActive, templatecolumnSupport, templatecolumnFinal As New GridTemplateColumn 
        RadGridAudioFileReport.DataSource = Nothing 
        RadGridAudioFileReport.DataSource = Fill_Allocation_Report_Grid() 
        RadGridAudioFileReport.Width = Unit.Pixel(2600) 
        RadGridAudioFileReport.Skin = "Office2007" 
        RadGridAudioFileReport.AutoGenerateColumns = False 
        RadGridAudioFileReport.MasterTableView.DataKeyNames = New String() {"Client_ID"} 
        boundColumnClientID.HeaderText = "Client_ID" 
        boundColumnClientID.DataField = "Client_ID" 
        boundColumnClientID.UniqueName = "Client_ID" 
        boundColumnClientID.Visible = False 
        RadGridAudioFileReport.MasterTableView.Columns.Add(boundColumnClientID) 
        boundColumnClient.HeaderText = "Client" 
        boundColumnClient.DataField = "Client" 
        boundColumnClient.UniqueName = "Client" 
        RadGridAudioFileReport.MasterTableView.Columns.Add(boundColumnClient) 
        boundColumnTotal.HeaderText = "Total" 
        boundColumnTotal.DataField = "Total" 
        boundColumnTotal.UniqueName = "Total" 
    templatecolumnActive.HeaderTemplate = New MyTemplateActiveHeader() 
        templatecolumnActive.ItemTemplate = New MyTemplateActiveItems() 
        RadGridAudioFileReport.MasterTableView.Columns.Add(templatecolumnActive) 
     
 
    Dim tableViewAccounts As New GridTableView(RadGridAudioFileReport) 
        Dim boundColumnAccountID, boundColumnAccount As New GridBoundColumn 
        tableViewAccounts.DataSource = Accounts_FileAllocation_Report_Data() 
        tableViewAccounts.Width = Unit.Percentage(100) 
        tableViewAccounts.AutoGenerateColumns = False 
        tableViewAccounts.DataKeyNames = New String() {"accountid"} 
        Dim relationFields As GridRelationFields = New GridRelationFields() 
        tableViewAccounts.ParentTableRelation.Add(relationFields) 
        RadGridAudioFileReport.MasterTableView.DetailTables.Add(tableViewAccounts) 
 
        boundColumnAccountID.DataField = "accountid" 
        boundColumnAccountID.HeaderText = "accountid" 
        boundColumnAccountID.UniqueName = "accountid" 
        'boundColumnAccountID.Visible = False 
        tableViewAccounts.Columns.Add(boundColumnAccountID) 
        boundColumnAccount.DataField = "account" 
        boundColumnAccount.HeaderText = "Account" 
        boundColumnAccount.UniqueName = "Account" 
        tableViewAccounts.Columns.Add(boundColumnAccount) 
        RadGridAudioFileReport.DataBind() 
        Me.PlaceHolder1.Controls.Add(RadGridAudioFileReport) 
 
 
 Public Function Accounts_FileAllocation_Report_Data(ByVal client_id As String) 
 
        MsgBox(client_id.ToString()) 
        cmd = New MySqlCommand("SELECT id as accountid,accname as account FROM account_master where ccode='" & client_id & "' and delflag=0;", con) 
        myda = New MySqlDataAdapter(cmd) 
        AccountsActiveDT = New DataTable 
        myda.Fill(AccountsActiveDT) 
        Return AccountsActiveDT 
    End Function 
 
here i want the DatakeyNames to get the data for Detail Tables.
how can i get the DataKeyName("Client_ID") and how can i pass the DataKeyName to this function Accounts_FileAllocation_Report_Data().
can any one help me please.

Thank You.
Suresh K.






Princy
Top achievements
Rank 2
 answered on 01 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?