Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
410 views
Hi

I have a RadPanelBar, and I can't find controls inside the ItemTemplate.
I read:Help documentation for accessing item: Accessing Items
Help documentation for accessing control inside: Accessing Controls Inside Templates
But it doesn't work for me.

here is my code:

 

<telerik:RadPanelBar ID="rpbAddFilters" runat="server">

    <Items>

        <telerik:RadPanelItem Text="RadPanelItem" runat="server">

            <Items>

                <telerik:RadPanelItem Value="test" runat="server">

                    <ItemTemplate>

                        <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">

 

                                        <asp:Panel ID="pnlValues" runat="server">

 

                                `       </asp:Panel>


                        </telerik:RadCodeBlock>

                  </ItemTemplate> 
                </telerik:RadPanelItem >
            </Items>
         </telerik:RadPanelItem >
    </Items>
</RadPanelBar>

 

 





function find()
{

    var panelbar = $find("<%= rpbAddFilters.ClientID %>");

 

  

    var item = panelbar.findItemByValue("test");

    var pnlValues = item.findControl("pnlValues");

}



I get null value for pnlValues.


Thanks.
Peter
Telerik team
 answered on 07 May 2012
1 answer
210 views
I can't find any examples or documentation on using asp.net validators with the RadCalendar (not the RadDatePicker).

Ideally, I'd like to have two calendars, and use the CompareValidator to ensure that one date is less than the other. Has anyone been able to do this?
Princy
Top achievements
Rank 2
 answered on 07 May 2012
8 answers
268 views
Hello,

I am unable to find any means to enable client editing of the grid as initial mode.

I wish to have several checkbox colums that can have items checked. As far as I know the table should be in edit mode. But there seems to be no other way than to have a command column, in which the user has to click "UPDATE" or such to enter the edit mode.
What I need is no command column, but just a grid that is in Edit mode from the beginning and has more than one check columns the user can check items in.

Hope you can help me out on this......

Kind regards,

Jack
Andrey
Telerik team
 answered on 07 May 2012
5 answers
498 views
I have a simple RadGrid where I need to create onclick attributes for various columns - these require my knowing the itemindex for the row being rendered.

Although I can find the item-index without issue with server-side binding, I am having a hard time getting the item-index with client-side binding.

I have tried various combinations of args.get_itemIndexHierarchical() with and without get_DataItem but to no avail.

I know this is probably a simple question, any ideas?

Thanks,
Motty
Antonio Stoilkov
Telerik team
 answered on 07 May 2012
3 answers
1.0K+ views
Hi,
I am tring to upload a file and save it in a folder using Rad upload but it doesn't work 
I have following the same steps hier : http://www.telerik.com/help/aspnet-ajax/upload-getting-started.html 
but it doesn't explain for the button submit so i search in the forum and I found that poste : http://www.telerik.com/community/forums/aspnet/upload/is-there-an-example-about-upload-a-file-with-radupload.aspx
but it doesn't work to and it's obsolete  
 SO HOW CAN WE DO IT ?
Thankx
Princy
Top achievements
Rank 2
 answered on 07 May 2012
1 answer
85 views
Hi

I got a problem that when I set numerictextbox.value = 0.0, it shows double zero in IE9 as screenshots. However it shows properly in Chrome. My telerik version is 2012 Q1. Could anyone help me with it? thanks.

Here is part of my code:
<td>
    <telerik:RadNumericTextBox ID="TaxRateTextBox"  CssClass="number"  MinValue="0"  MaxValue="100" Type="Percent" AutoPostBack="true" ButtonsPosition="Right"  ShowSpinButtons="true"  runat="server" OnTextChanged="TaxRateTextBox_OnTextChanged"></telerik:RadNumericTextBox>
    </td>
     
    <td>
    <telerik:RadNumericTextBox ID="CurrencyTotalTextBox" CssClass="number" Type="Number"  runat="server" Enabled="false" NumberFormat-DecimalDigits="2"></telerik:RadNumericTextBox>
    </td>
    
    <td>
    <telerik:RadNumericTextBox ID="NoTaxTotalTextBox"  CssClass="number" runat="server" Enabled="false" NumberFormat-Groupsizes="3"></telerik:RadNumericTextBox>
    </td>

                TaxRateTextBox.Value = double.Parse(q.q_taxpct.ToString());
                TaxTextBox.Value = double.Parse(q.q_taxamt.ToString());
                CurrencyTotalTextBox.Value = double.Parse(q.q_foretot.ToString());
                NoTaxTotalTextBox.Value = double.Parse(q.q_totamt.ToString());
                TaxedTotalTextBox.Value = double.Parse(q.q_totaxamt.ToString());
...
Vasil
Telerik team
 answered on 07 May 2012
1 answer
122 views
Hi,

I have a radTreeView where I am adding nodes dynamically in form load event. I am assigning a forecolor to it.

RadTreeNode nodeLevel3 = new RadTreeNode(nodeNameL3, nodeIDL3);
nodeLevel3.Checkable = true;
nodeLevel3.ContextMenuID = "ctxMenuDisabled";
nodeLevel3.ForeColor = System.Drawing.Color.Blue;
parentNode.Nodes.Add(nodeLevel3);

The nodes show up blue perfectly. but the problem is after the initial page_load is complete, whenever I am deleting/editing or adding a node in the tree, a ajax postback takes place and the blue color disappears. it changes back to default black color.

How can I keep the custom colored nodes across postbacks?
Manas
Top achievements
Rank 1
 answered on 07 May 2012
1 answer
147 views
I have this code:

sb.Append(RadDatePicker1.SelectedDate.Value.Date);

How Can I do to remove only hour. I need date part only.

Thanks.

Princy
Top achievements
Rank 2
 answered on 07 May 2012
2 answers
337 views
I have a simple grid and I want to have links to files and just show an image based on their file extension. The code below gets me close but the image is static.
<telerik:GridHyperLinkColumn AllowFiltering="False" DataNavigateUrlFields="Application_Key, File_Title, File_Name, FileExt" DataNavigateUrlFormatString="att/{0}/{2}" DataTextField="File_Title" ImageUrl="img/doc.png" ShowSortIcon="False" Target="_blank" UniqueName="FileCol">
</telerik:GridHyperLinkColumn>

The GridImageColumn has a property that would work perfectly DataImageUrlFormatString="IMG/{0}.png" but it does not have DataNavigateUrlFormatString  :(

How can I do this?

Thanks
Najid Hanif
Top achievements
Rank 2
 answered on 07 May 2012
1 answer
105 views
Hey Guys,

I have a curious issue. I have a RadMenu sitting in a RadPanelBar, which sits in a HTML table cell. It is the only item in the cell. When I expand the RadMenu, it is cropped by the border of the table cell. So you never see the expansion beyond the table cell borders. Is this the default behaviour? If so, was that intended? If so, does this mean that I have to redesign my page? Z-index won't rectify this issue since it's not rendering under any other control.

Thanks in advance.
Jonathan
Jonathan
Top achievements
Rank 1
 answered on 06 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?