Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
470 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
74 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
96 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
127 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
303 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
92 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
0 answers
62 views
that's what i did:

1. create asp.net web application (.net 3.5)
2. create ashx hanler wich generate excel file using Open XML SDK

It is work. I can download excel file and open it.

3. I add to my application telerik ajax control. 

It is not work. I can download excel file but cant open it.

if i try generate and download excel file by button click or .aspx insted .ashx that it is work.


Петряков
Top achievements
Rank 1
 asked on 06 May 2012
3 answers
107 views
Hi, I try using jquery function in content page,$telerik functions that shown in master page is OK, but it doesn't show in content page ?
Any help?
 
Duy
Top achievements
Rank 1
 answered on 06 May 2012
1 answer
106 views
Hi, I want to combine Rotator with ticker and Menu. 
As exapmle I want to insert http://demos.telerik.com/aspnet-ajax/rotator/examples/ticker/defaultcs.aspx this example into http://demos.telerik.com/aspnet-ajax/menu/examples/megadropdown/defaultcs.aspx this example's one of the dropdowns (For Example News part).

<telerik:RadMenuItem Text="Spor" PostBack="false">
                   <Items>
                        <telerik:RadMenuItem CssClass="News" Width="640px">
                            <ItemTemplate>
                                <div id="NewsWrapper" class="Wrapper">
                                    <h3>
                                        Spor Etkinlikleri & Haberler</h3>
                                    <div class="newsLeft">
                                        <telerik:RadRotator ID="RadRotator1" DataSourceID="XmlDataSource1"
                                        runat="server" Width="400" ItemWidth="400" Height="250" 
                                        ItemHeight="250" FrameDuration="10000" ZIndex="5000">
                                            <ItemTemplate>
                                                <div class="jewelryImage">
                                                    <img src="<%# XPath("Image") %>" height="250" width="150" alt="Image"  />
                                                </div>
                                                <div class="jewelryRightPane">
                                                    <div class="jewelryDescription">
                                                        <div class="jewelryDescription_Text">
                                                            <telerik:RadTicker ID="RadTicker1" runat="server">
                                                                <Items>
                                                                    <telerik:RadTickerItem Text='<%# XPath("Title")%>' />
                                                                </Items>
                                                            </telerik:RadTicker>
                                                        </div>
                                                    </div>
                                                    <div class="jewelryName">
                                                        <asp:Label ID="Label1" runat="server" Text='<%# XPath("ItemName") %>'  height="35" width="250" alt="" Font-Names="Consolas"></asp:Label>
                                                    <div class="addToCart">
                                                        <a href="#" onclick="return false;">
                                                            <img src="images/HaberinDevami.png" height="22" width="250" style="border: 0px" alt="Haberin Devamı"
                                                                title="Haberin Devamı" />
                                                        </a>
                                                    </div>
                                                </div>
                                            </ItemTemplate>
                                        </telerik:RadRotator>
                                    </div>
                                    <a class="moreLink" href="#">Hepsini Gör &raquo;</a>
                                </div>
                            </ItemTemplate>
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>

İt seems fine, I can see the images or other stuff in page's source code but i can't see it in menu there is a white blank. When i put rotator outside of the menu it works well but in menu not. I have tried to put zindex=5000 to rotator but didnt work.
You can want any further information.
Barışcan
Top achievements
Rank 2
 answered on 05 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?