Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
62 views
I have a TreeList with Client-Side single-select turned on.  I am able to access the selected item in the PostBack, but want to be able to access the parent items (and their DataKeyValues) backwards through the top of the tree.  Is there a way to do this?
Marin
Telerik team
 answered on 20 Jun 2011
3 answers
594 views
Hi,

i am working on grid. 

<telerik:GridTemplateColumn UniqueName="display" HeaderText="Select">
<ItemTemplate>
<asp:ImageButton CommandName="select" runat="server"  ImageUrl="Images/geofence.png" OnClientClick= '<%# String.Format("javascript:EditItem();return false;",DataBinder.Eval(Container.DataItem,"LastName"))%>' />
</ItemTemplate>
</telerik:GridTemplateColumn>


 function EditItem() {
//want to get here clicked image button row index
}

i want to get clicked image button row index in Edititem().

plz help me

Regards,

Faisal
faisal
Top achievements
Rank 1
 answered on 20 Jun 2011
1 answer
88 views
Hi,
I have a radgrid with paging. Currently on right side it is displaying something like "91 items in 19 pages". I want to display also something like "items 1 to 10 of 91"(10 is page size). Also I want to add feature that allows entering a specific page number and display it. The desired pager style is in image "PagerStyle.jpg". Thanks.   
Shinu
Top achievements
Rank 2
 answered on 20 Jun 2011
1 answer
56 views
Hello,

When I am using RadPanelbar all expanding and collapsing functions work well in IE and/or Chrome. But when I try it in Firefox 4 no expanding or collapsing occur. Here is my code :

   <telerik:RadPanelBar ID="RadPanelBar1" runat="server" EnableEmbeddedSkins="false"
                Height="100%" ExpandMode="SingleExpandedItem" Skin="ShowCategory" Width="100%"
                AllowCollapseAllItems="false" OnClientItemClicking="OnClientItemClicking">
            </telerik:RadPanelBar>

I am programmatically creating the items. 

One more thing, in all other browser I can call OnClientItemClicking event but in FireFox 4.0 its not firing. FYI, added script below :

 <script type="text/jscript">
        function OnClientItemClicking(sender, args) {
            debugger;
            if (args.get_item().get_level() == 0) {
                args.set_cancel(true);
               args.get_item().set_expanded(!args.get_item().get_expanded());
            }
       }            
    </script>

I am using Telerik  2010.1.519.35.

What can cause that problem? Any Idea?


Veselin Vasilev
Telerik team
 answered on 20 Jun 2011
0 answers
143 views
Hello,telerik?
   In my project,I use the toolbar of telerik controls
  How to control the width of toolbar?
  My scenario is : navigator using the toolbar is under of banner consisting of pictures?
  How to make the toolbar size following the size of banner ?
  i.e.the width of banner is equal to the width of toolbar.
  I use the table to control the size of banner.\
when I use the "100%" of the toolbar width property ,  the size of the banner and toolbar can not fill the screen of window.
how to solve it?
thanks.hope your reply
songsp
Top achievements
Rank 1
 asked on 19 Jun 2011
1 answer
86 views
Hi,
I have a radgrid that need paging. The problem is that it can only display 1 page even if there are more than 1 page. Also on right side displaying "0 item in 1 page" is not correct.  Also I want to add feature that can go to specific page entered. The problem is in image "Pager_problem.jpg". The desired pager style is in image "PagerStyle.jpg". Thanks.    The code is:
<telerik:RadGrid ID="RadGrid1" runat="server" style="margin-left:5px"
    AllowPaging="True" AllowCustomPaging="True"
    AllowFilteringByColumn="True"  AllowSorting="True"                
    DataSourceID="SqlDataSource1" GridLines="None">
 
    <MasterTableView DataSourceID="SqlDataSource1" AutoGenerateColumns="False"
         PagerStyle-Position="TopAndBottom"
         PagerStyle-AlwaysVisible="true" PagerStyle-Mode="NextPrevAndNumeric" PageSize="10">
    <RowIndicatorColumn>
    <HeaderStyle Width="20px"></HeaderStyle>
    </RowIndicatorColumn>
         
    <ExpandCollapseColumn>
    <HeaderStyle Width="20px"></HeaderStyle>
    </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="OrderDate" DataType="System.DateTime"
                HeaderText="Order Date" SortExpression="OrderDate"
                CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" UniqueName="OrderDate">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name"
                SortExpression="FirstName" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" UniqueName="FirstName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Email" HeaderText="Email"
                SortExpression="Email" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" UniqueName="Email">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="GreetingCode" HeaderText="Greeting Code"
                SortExpression="GreetingCode" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" UniqueName="GreetingCode">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ChildFirstName" HeaderText="Child's FirstName"
                SortExpression="ChildFirstName" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" UniqueName="ChildFirstName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ChildLastName" HeaderText="Child's LastName"
                SortExpression="ChildLastName" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" UniqueName="ChildLastName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ChildGender" HeaderText="Child's Gender"
                SortExpression="ChildGender" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" UniqueName="ChildGender">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>


york
Top achievements
Rank 1
 answered on 19 Jun 2011
1 answer
88 views
I am following the Demo Project

AsyncUpload / Ajax Processing


In the demo, it states to setup the RadAjax Manager as such:

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Thumbnail" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>


Since my Asych Upload control is in a Content Page, I am using an RadAjaxManagerProxy.  My problem is if I set the AjaxContorlID to the Proxy's ID, I get a javascript error that I have nested Update Panels.  If I set it to the MasterPage's RadAjaxManager ID, I get a javascript error that ID can't be found.
    
Here is my code.

MasterPage:
 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientIDMode="Static"
        DefaultLoadingPanelID="ralpDefault">
        <ClientEvents OnRequestStart="centerLoadingPanel"></ClientEvents>
        <AjaxSettings>
        </AjaxSettings>
    </telerik:RadAjaxManager>
     
Content Page:
 
<telerik:RadAjaxManagerProxy ID="rampMyAccount" runat="server" ClientIDMode="Static">
    <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rbiAvatar" />
                </UpdatedControls>
            </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

Peter Filipov
Telerik team
 answered on 19 Jun 2011
1 answer
105 views
Hi,

I put the Multiple File upload sample from The demo site to my project. And in my case, I tried to host the code inside a html table as below. However, it seems that the table cannot automatically expand to show the progress box. Something wrong in my css. Pls. kindly advise.

Thanks,
Elton

 

 

<table border="0" cellpadding="0" cellspacing="0" class="mainGTbl">

 

 

 

<colgroup>

 

 

 

<col width="100px" />

 

 

 

<col width="" />

 

 

 

</colgroup>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:Label ID="lblFileType" runat="server" EnableViewState="false"></asp:Label>:<span class="asterisk">*</span>

 

 

 

</td>

 

 

 

<td>

 

 

 

<telerik:RadComboBox ID="ddlFileType" runat="server" Width="300px"/>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:Label ID="lblFileName" runat="server" EnableViewState="false"></asp:Label>:<span class="asterisk">*</span>

 

 

 

</td>

 

 

 

<td>

 

 

 

<div>

 

 

 

<telerik:RadProgressManager runat="server" ID="RadProgressManager" />

 

<%

 

-- For the purpose of this demo the files are discarded. In order to store the uploaded files permanently set the TargetFolder property to a valid location. --%>

 

 

 

 

<telerik:RadAsyncUpload runat="server" ID="AsyncUpload" MultipleFileSelection="Automatic" />

 

 

 

<telerik:RadProgressArea runat="server" ID="RadProgressArea" />

 

 

 

</div>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td class="searchBtnTD" colspan="2">

 

 

 

<asp:Button ID="btnOK" runat="server" CssClass="srchBtn" OnClick="btnOK_Click" />

 

 

 

<asp:Button ID="btnCancel" runat="server" CssClass="srchBtn" OnClientClick="CloseCurrentRadWindow();" />

 

 

 

</td>

 

 

 

 

</tr>

 

 

 

</table>

 

Peter Filipov
Telerik team
 answered on 19 Jun 2011
4 answers
130 views
Hi,

I used to work with Telerik's controls some time ago, but after a few years of gap it seems I have forgotten some...

I have a Grid bound to a List<myTypeClass>. When I click on Edit/Delete, in the event handlers (RadGrid1_UpdateCommand and RadGrid1_DeleteCommand) I can't seem to figure out how to get the item that was edited/deleted.
I have custom stored procudures doing all the CRUD operations and to delete an item, for example, I need to know it's ID (which is one of the properties of the items in the list.
Any idea?
Any ideas are much appreciated
v
Viktor Takacs
Top achievements
Rank 2
 answered on 18 Jun 2011
2 answers
191 views
Hi..

How can i reload the TreeView using javascript in client side..?
sumither
Top achievements
Rank 1
 answered on 18 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?