Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
278 views
I am aware of the ability to use a DB field for this, as well as this article which gets close to a solution, but neither is sufficient for my purposes. Is there a property like BackgroundColor for anything other than the items in a PieSeries? I just want to be able to set each piece of data's color separately. Thanks!
Stamo Gochev
Telerik team
 answered on 21 Aug 2013
3 answers
217 views
I'm using knockout to bind a view model to DOM elements.  This works great for basic HTML controls so I was wondering if their custom bindings feature could be used when TreeView nodes are checked/unchecked to update the underlying ViewModel or to check/uncheck TreeView checkboxes when the VM changes.

Thanks, Dave.
Genady Sergeev
Telerik team
 answered on 21 Aug 2013
3 answers
60 views
Please look into the below code snippet. Here I have RADAjaxPanels, splitter and some asp web controls.

Program compiles well, at runtime it goes into code behind execute all the code (in debug mode confirmed this) although
the issue i am having is the line of code gets executed it doesn't change Label color to red neither populates the Label with intended value.

ASP file code snippet

<!-- For Ajax Code Block -->
<telerik:RadCodeBlock ID="RadCodeBlockLeftPane" runat="server">
    <script type="text/javascript">
        function invokeAjaxrequestLeftPane() {
            $find("<%= RadAjaxPanelLeftPane.ClientID%>").ajaxRequestWithTarget("<%= RadAjaxPanelLeftPane.UniqueID %>", "LoadDocumentFromLibrary");
        }
    </script>
</telerik:RadCodeBlock>
 
<telerik:RadSplitter ID="RadSplitterForPanel" runat="server" Height="1300" Width="100%" EnableViewState="false">
 
        <telerik:RadPane ID="PaneLeft" runat="server" Height="100%" Width="60%" Scrolling="Y">
 
            <asp:Label ID="LabelTest" runat="server" Text="Left Panel">
                   Left Pane
            </asp:Label>
 
            <input type="button" value="Load Document" onclick="invokeAjaxrequestLeftPane();" />
 
            <telerik:RadAjaxPanel ID="RadAjaxPanelLeftPane" runat="server" OnAjaxRequest="RadAjaxPanelLeftPane_AjaxRequest">
 
            </telerik:RadAjaxPanel>
 
        </telerik:RadPane>
         
        <telerik:RadSplitBar ID="RadSplitbarForPane" runat="server" CollapseMode="Both">
        </telerik:RadSplitBar>
 
        <telerik:RadPane ID="PaneRight" runat="server" Height="100%" Width="40%">
            Right Pane
 
        </telerik:RadPane>
 
 
    </telerik:RadSplitter

Code Behind file method
/// <summary>
        /// Ajax panel for loading the document from the library
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void RadAjaxPanelLeftPane_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            switch (e.Argument)
            {
                case "LoadDocumentFromLibrary":
                    LabelTest.Text = " I am clicked at " + System.DateTime.Now;
                    LabelTest.BackColor = System.Drawing.Color.Red;
                    break;
                default:
                    break;
            }//switch
        }//RadAjaxPanelLeftPane_AjaxRequest

Thanks, Amit
Eyup
Telerik team
 answered on 21 Aug 2013
1 answer
44 views
I have 3 telerik tabs:

I have 3 telerik tabs:
 
<telerik:RadTabStrip ID="tabStrip" runat="server" MultiPageID="multiPage"">
    <Tabs>
        <telerik:RadTab runat="server" Text="Pending Invoices" PageViewID="PageView1">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Paid Invoices" PageViewID="PageView2">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="My Payment Account" PageViewID="PageView3">
        </telerik:RadTab>               
    </Tabs>
</telerik:RadTabStrip>
 
with 3 page view:
 
<telerik:RadMultiPage ID="multiPage" runat="server"
    <telerik:RadPageView ID="PageView1" runat="server"></telerik:RadPageView>
    <telerik:RadPageView ID="PageView2" runat="server"></telerik:RadPageView>
    <telerik:RadPageView ID="PageView3" runat="server"> </telerik:RadPageView>
</telerik:RadMultiPage>
 
Now, the contents of PageView1 is showing up in PageView2 and PageView3 after I added the below code:
 
<telerik:RadAjaxManager ID="radAjaxManager" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="tabStrip">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="tabStrip" />
                <telerik:AjaxUpdatedControl ControlID="multiPage" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="multiPage">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="tabStrip" />
                <telerik:AjaxUpdatedControl ControlID="multiPage" />
            </UpdatedControls>
        </telerik:AjaxSetting>           
    </AjaxSettings>
</telerik:RadAjaxManager>
 
 
Please give me an advise, i'm lost in this telerik control. TIA!
Nencho
Telerik team
 answered on 21 Aug 2013
2 answers
102 views
Hi Team,

I am trying to display the AjaxLoading Panel on page load, but it is not displaying. I have some other controls(buttons) and on their click event it is displaying the loding image.

I am using the below code:


<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server"/>
                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel">
                <telerik:RadTreeList ID="RadTreeListAssigment" runat="server" DataKeyNames="ObjectId"
                        AllowRecursiveSelection="true" OnItemCreated="RadTreeListAssigment_ItemCreated"
                        AllowPaging="true" PageSize="50"  ParentDataKeyNames="EntityObjectId"
                        Width="100%" AllowMultiItemSelection="true" OnChildItemsDataBind="RadTreeListAssigment_ChildItemsDataBind"
                        OnItemDataBound="RadTreeListAssigment_ItemDataBound" GridLines="None" AutoGenerateColumns="false"
                        OnNeedDataSource="RadTreeListAssigment_NeedDataSource"  AllowSorting="true"    
                        OnItemCommand="RadTreeListAssigment_ItemCommand">
                        <Columns>
                            <telerik:TreeListSelectColumn HeaderStyle-Width="12px" UniqueName="chkBox" HeaderText="">
                            </telerik:TreeListSelectColumn>
                        </Columns>
                        <ClientSettings>
                        <Scrolling AllowScroll="true" ScrollHeight="454px" UseStaticHeaders="true" />
                        </ClientSettings>                       
                        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
                    </telerik:RadTreeList>
                    </telerik:RadAjaxPanel>
I am also using the RadAjaxManager in master page, so cannot use it here as soln provided by other website.

Could anybody help on this.

Regards,
Hitesh

Eyup
Telerik team
 answered on 21 Aug 2013
12 answers
1.0K+ views

I have a user control in which I have several repeaters. In two of the repeaters, I have two RadNumericText boxes that on a change event does some server side code. The controls themselves are triggers to an Ajax update that updates other controls on other repeaters.

So far I have the logic working with other RadNumericText boxes on the same page but every so often two of these controls will raise the text change event of the other control.

<telerik:RadNumericTextBox ID="DesiredCreditLineTextBox" Runat="server" MinValue="0" Skin="Vista" AutoPostBack="true" OnTextChanged="DesiredCreditLine_TextChanged" />

<telerik:RadNumericTextBox ID="DesiredTermPaymentTextBox" Runat="server" MinValue="0" Skin="Vista" AutoPostBack="true" OnTextChanged="TermPayment_TextChanged" Type="Currency" Width="100px" />

The two controls exist in two different repeaters. In only this one case (I have it working on other controls), the "DesiredTermPaymentTextBox" is raising the "DesiredCreditLine_TextChanged" event.

Any ideas why this anomaly would occur?

 

Vasil
Telerik team
 answered on 21 Aug 2013
1 answer
74 views
Hi,

I have a datagrid with a custom filter column defined that gets a distinct list of values to use for the filter.  I have a second dropdownlist on the page that has a list of countries and I want to filter my grid filter list down by the value from this country drop down list..

So my filter column has names : fred, tom, harry, bill, betty, but fred, tom and harry are from Australia, and Bill and Betty are from USA..
The names are coming from a database table, so they can't be hardcoded..  they have a country id value against them in the database table.

Currently I have a grid with:
<custom:MerchCustomFilteringColumn HeaderText="Added By" DataField="SubmittedByInitials" UniqueName="Source" SortExpression="SubmittedByName">
  <ItemTemplate>
    <%# Eval("User Name")%>
  </ItemTemplate>
</custom:MerchCustomFilteringColumn>

I have a MerchCustomFilteringColumn class defined:
Public Class MerchCustomFilteringColumn
  Inherits GridTemplateColumn
    Dim db As New MerchandisingRepoDataContext
    Private _CountryGroup As String = "2"
    Public Property CountryGroup() As String
      Get
        Return _CountryGroup
      End Get
      Set(ByVal value As String)
        _CountryGroup = value
      End Set
  End Property
 
  Private lDataSource As Object = Nothing
  'RadGrid will call this method when it initializes the controls inside the filtering item cells
 
  Protected Overrides Sub SetupFilterControls(ByVal cell As TableCell)
    MyBase.SetupFilterControls(cell)
        list.DataSource = (From i In db.Items Where i.CountryGroupID = _CountryGroup Group By i.itemLocationCountryCode Into code = Group Order By itemLocationCountryCode Select itemLocationCountryCode).Distinct().ToList()
  End Sub
End Class

This works great if I go to the page, select the country, the dropdown list has autopostback enabled, and the filtering dropdown works fine.

If I select a new country, it "should", set the country Group property of the filter column class, change the list of names in the filter column based on _CountryGroup and show a different list of names to filter by..

In the Pre_Render event of the Grid, I have a rgdMerchItemList.MasterTableView.Rebind() statement, that then fails at this point because the datasource is nothing.

Have I gone about this the wrong way...???  Well I guess the answer to that is "YES, cause it doesn't work"...

Does my explanation of what I'm trying to achieve make sense...??  I've tried to cut down the example code for ease of reading..

If there is an example of this somewhere, can you point me in the direction and I'll see if I can change my code to match it..

Many thanks.
Angel Petrov
Telerik team
 answered on 21 Aug 2013
1 answer
47 views
I want to display paging on a tree list i am using pager template for that but i could not find the code to implement page page size drop down in pager template plzz help..
Eyup
Telerik team
 answered on 21 Aug 2013
1 answer
123 views
i have a treelist which has a parent and some child nodes when i am expanding the parent the child nodes exceed the page size limit and the child nodes are shifted to next page but on the next page i am not able to see the parent to which these child nodes belong.
Kostadin
Telerik team
 answered on 21 Aug 2013
1 answer
317 views
Hi,

We have a dropdown and add button inside edit template of radgrid column, We have a functionality wherein inside the edit mode of a row of radgrid we populate the dropdown and then on clicking the add button open a radwindow to add a new item to dropdown. When the radwindow is closed the dropdown inside the edit template should refresh and show this new item.

Can someone please guide me in achieving the above functionality.

Thanks 
Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?