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

I am having a struggle getting this to work...
A grid item looks like this:

<telerik:GridTemplateColumn DataField="PricePerBottle"   
DataType="System.Decimal" HeaderText="£/Unit" SortExpression="PricePerBottle"   
UniqueName="PricePerBottle">  
<ItemTemplate> 
   <asp:Label ID="PricePerBottleLabel" runat="server" Text=''></asp:Label> 
</ItemTemplate> 
 
and I am trying to set  values from code behind in the item databound event:

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles RadGrid1.ItemDataBound  
        If TypeOf e.Item Is GridDataItem Then  
              
                Dim label1 As Label = DirectCast(item("PricePerBottle").FindControl("PricePerBottleLabel"), Label)  
                  
                label1.Text = someMathFunction(item("PricePerBottle").Text) 

I am getting run time errors such as can't convert string "" to decimal. I have tried a number of variations but it seems I am not getting the column value.

Can you put me right?

Thanks

Clive
Shinu
Top achievements
Rank 2
 answered on 02 Jul 2010
1 answer
261 views
What would I need to change to make the calendar smaller?
I'm using it in MultiView and would like a reduction in size, as the months are a pretty decent chunk of real estate on the screen.
Is something simple like some settings, or complicated like editing css files?
Or can I apply new css classes to do this for me?

While I go adventuring down those possible paths [didn't see anything that stood out, but haven't hunted yet], maybe someone will give me an answer quicker.

Dimo
Telerik team
 answered on 02 Jul 2010
3 answers
174 views

I like the document manager functionalityfor uploading documents to a site.

I also like the hyperlink manager functionalitywhich allows me to use the Hyperlink, anchor and email tabs.

What I don't like is that I can't link toother document libraries in other sites in the same site collection without explicitlyspecifying those libraries URL's in the Rad configuration files. 

So I'd like to replace the document managerlink JUST INSIDE the hyperlink manager window so that the user canuse all of the functionality telerik supplies but when he clicks the documentmanager icon (just inside the hyperlink manager window) he get's displayed withthe SharePoint default link manager. can I do that?

kind of like using this <toolname="MOSSLinkManager" shortcut="CTRL+K" /> but onlyfrom within the hyperlink manager.

how can I do that?

Stanimir
Telerik team
 answered on 02 Jul 2010
7 answers
214 views
After adding radWindow to my web pages, I noticed that an additional 'title' tag appears in the < head > section of each page.  Since the extra title tag comes directly after a stylesheet link added by the rad controls, I'm assuming that the < title > tag was inserted by Telerik as well.  The extra title isn't a problem functionally, but it causes the page to fail strict XHTML validation.

See the sample below from my page.  The first title tag is actually found in the form's master page.

<head id="ctl00_head">
    <title> Sales Operations</title>

<style type="text/css" media="screen">
   @import url('/assets/stylesheet.css?lang=en&section=home&ignore_skin=0');
</style>
<!-- end styles -->

<link href="/WebResource.axd?d=RG9GbqBQXdBigncP9JT6WQE0Vs9NoO81ntAAhymzRWpelJ93aNf2M9jdYJUlFU-N0&amp;t=633674474000000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=RG9GbqBQXdBigncP9JT6WQE0Vs9NoO81ntAAhymzRWq5z4bDtQKWC40KfIzFm93Vmcl6VQ8d48D9uSiRfdkmAw2&amp;t=633674474000000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=RG9GbqBQXdBigncP9JT6WQE0Vs9NoO81ntAAhymzRWoR6rQrv17QpJO_nyZrC9kPGfaEn-hlTqvkD5iqmQdkRg2&amp;t=633674474000000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><link href="/WebResource.axd?d=RG9GbqBQXdBigncP9JT6WQE0Vs9NoO81ntAAhymzRWpEuI9IVDZy1XObHTQsZL0Gn9q0V-c6wJ50wxP4IiAggg2&amp;t=633674474000000000" type="text/css" rel="stylesheet" class="Telerik_stylesheet" /><title>

</title></head>


Dimo
Telerik team
 answered on 02 Jul 2010
1 answer
341 views
i have a captcha, text boxes , combo boxes in a page.
But the client side validation of the captcha is not working.

<telerik:RadCaptcha CaptchaImage-BackgroundNoise="Medium"  CaptchaImage-TextColor="DarkSlateGray" 
                                EnableViewState="true" ProtectionMode="Captcha" CaptchaImage-TextChars="LettersAndNumbers" 
                                ID="rcapContactUs" runat="server" ErrorMessage=" The code you entered is not valid." 
                                Display="Dynamic" SetFocusOnError="True" ValidationGroup="MyContact"   
                                EnableRefreshImage="true"    
                                Font-Size="Smaller" CaptchaTextBoxCssClass="pageTextbox"   
                                CaptchaTextBoxLabelCssClass="pageLabelsHead" Font-Names="Arial"   
                                IgnoreCase="False">  
                                <captchaimage backgroundnoise="Medium" textcolor="DarkSlateGray" /> 
                            </telerik:RadCaptcha> 
Pero
Telerik team
 answered on 02 Jul 2010
1 answer
116 views
I am creating a page. When I add the RadCaptcha I get an error.

The error is: The control with ID '' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

The code for the RadCaptcha is:

<

 

telerik:RadCaptcha ID="RadCaptcha1" runat="server" ValidationGroup="Group"

 

 

    ErrorMessage="Page not valid. The code you entered is not valid." >

 

</telerik:RadCaptcha>

 

 

 

 

Pero
Telerik team
 answered on 02 Jul 2010
1 answer
166 views
hi,

i want to know how to create column in RADGrid by using javascript (client-side)

it's very important to me and need asap.


Thanks
Selva
Rosen
Telerik team
 answered on 02 Jul 2010
9 answers
278 views

Hello,

I have a scrolling grid using static headers and no paging.  I need to have the grid expand inside it's container but I've gone through the forums for the splitter and grid as well as the code library and I can't seem to get it to work correctly. 
I want the grid to scroll, not the splitter pane so that the column headers stay on the screen.  Also, if it's not too much to ask I'd like to be able to have the grid resize when the screen resizes and causes the splitter to resize.

The page is set up with a splitter as the main control set for a horizontal orientation.  In the splitter there are 2 RadPanes.  The top one contains header text and a toolbar.  The bottom one contains the grid.  Around the grid I added a div just for padding.

What is happening with this setup is the splitter occupies 100% of the page correctly.  The bottom pane expands to fill the rest of the page under the header, which is correct.  But the grid opens to around 200px high and 40px wide and then immediatly snaps to full width (which is correct) but only shows the column headers and another 10px (around 30px total height).

Attached is a screen shot of the grid after it expands.

    <style type="text/css">  
        html, body, form  
        {  
            height: 100%;  
            margin:0;  
            padding:0;  
            overflow: hidden;  
        }             
    </style> 

<telerik:RadSplitter ID="rsMain" runat="server" Height="100%" Width="100%" Orientation="Horizontal">  
    <telerik:RadPane ID="rpTop" runat="server" Height="110px" Locked="true">  
        <div style="padding: 10px; padding-bottom:0;">  
            This is my page header  
            <div style="padding-bottom: 20px">  
                <telerik:RadToolBar ID="rtbToolbar" runat="server">  
                    <Items> 
                        <telerik:RadToolBarButton runat="server" SkinID="FolderUp" id="rtbbBack" PostBack="false"></telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton runat="server" SkinID="Refresh" id="rtbbRefresh" PostBack="false"></telerik:RadToolBarButton> 
                    </Items> 
                </telerik:RadToolBar> 
            </div>                   
        </div> 
    </telerik:RadPane>              
    <telerik:RadPane ID="rpBottom" runat="server" Height="100%">  
        <div style="padding: 10px; padding-top: 0;">  
            <telerik:RadGrid ID="rgMyGrid" runat="server" OnNeedDataSource="rgMyGrid_NeedDataSource" Height="100%" Width="100%">  
                <ClientSettings> 
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
                </ClientSettings> 
                <MasterTableView AutoGenerateColumns="false" TableLayout="Auto">                  
                    <Columns> 
                        <telerik:GridHyperLinkColumn UniqueName="Name" DataTextField="Name" DataNavigateUrlFields="DetailsUrl" HeaderText="Name">  
                        </telerik:GridHyperLinkColumn> 
                        <telerik:GridImageColumn UniqueName="IsCustom" HeaderStyle-Width="60px" HeaderText="Custom" DataImageUrlFields="IsCustomImageUrl" 
                            ItemStyle-HorizontalAlign="Center" /> 
                    </Columns> 
                </MasterTableView> 
            </telerik:RadGrid>                
        </div> 
    </telerik:RadPane> 
</telerik:RadSplitter>  

Anyone have any ideas?

Dimo
Telerik team
 answered on 02 Jul 2010
1 answer
66 views
hi everyone ...

i want show data  inside radtextboxs when double click on radgridview.. but i couldnt handle ..

any advice  ??

Shinu
Top achievements
Rank 2
 answered on 02 Jul 2010
1 answer
98 views
it seems all my issues are being referred to a post saying i need 2010.1.625 or newer of the telerek ajax controls. In downlloads q2 beta is 2010.1.623, so do i have to wait for the official q2 release to get 2010.1.625?
SamJ
Top achievements
Rank 1
 answered on 02 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?