Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
87 views
Hello,

I am using a RadRotator to display one item at a time. I have my own controlbuttons (using ImageButtons) to navigate the RadRotator left and right. 

I want to perform a server-side action on my page whenever a user clicks the left or right navigation buttons. Unfortunately, the onclick event for my ImageButton is not working whenever the ImageButton is used as a controlbutton for the RadRotator. 

How do I accomplish my scenario? 

Thanks,
Zeyad
Zeyad
Top achievements
Rank 1
 answered on 19 Apr 2011
2 answers
81 views
hi all

how are you

i wish anyone could help me in this problem

i have an aspx page deployed on sharepoint as an edit form of an SPList item in a custom list

the aspx page contain a custom user control

in the custom user control i have one button

when the button is clicked it open a RadAjaxLoadingPanel that is spanned over the whole page

my problem is if i press the first time on the button the panel is displayed successfuly and the OnRequestStart and OnRequestEvents
fires successfuly

but when i press for the button on the second time the OnRequestStart doesnt fires

can anyone help me in this problem

i have read so many posts and tried all what is mentioned in them but nothing worked for me

thanks a lot

H.
Top achievements
Rank 1
 answered on 18 Apr 2011
1 answer
113 views
I have a RadGrid with a hierarchy view (about 5 levels deep).  I bind programmatically in the OnPreRender event.  EnableViewState=false.  The ItemCommand event fires for any item in the first three levels of the hierarchy but when I try to expand something beyond that level, the event doesn't fire anymore.  Any ideas?

Trevor 
Trevor
Top achievements
Rank 1
 answered on 18 Apr 2011
1 answer
97 views
My problem realated with Office2007 Custom Style.I created my custom skin from default Office2007 css files.
And I changed Alternative row backcolor from html.But When I select row.Problem with background color.In
white rows there is no problem.How can I redesign css file.Please look image what is my problem
I have changed just

.RadGrid_MyCustomSkin

.rgRow td ,

 

.RadGrid_MyCustomSkin

 

 

.rgAltRow

td

 

{

border-color:#d0d7e5 ;

 

 

border-width:0px ;

 

 

padding: 0 !important

; }

 

<
telerik:RadGrid ID="grdGidis" Width="720px" Skin="MyCustomSkin" AlternatingItemStyle-BackColor="#F2F2F2"
                                        EnableEmbeddedSkins="false" Height="720px" runat="server" AutoGenerateColumns="False"
                                        OnItemCommand="grdGidis_ItemCommand">
                                        <MasterTableView TableLayout="Fixed" DataKeyNames="UcusID,D_UcusID">
                                            <NoRecordsTemplate>
                                                Sefer Bulunamadı...
                                            </NoRecordsTemplate>
                                            <Columns>
                                       
                                                <telerik:GridTemplateColumn ItemStyle-VerticalAlign="Middle" UniqueName="HavayoluLogo">
                                                    <HeaderTemplate>
                                                        Header...
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        Items...
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                                
                                            </Columns>
                                        </MasterTableView>
                                        <PagerStyle Mode="NumericPages"></PagerStyle>
                                        <ClientSettings EnableRowHoverStyle="true" AllowRowsDragDrop="false" Selecting-AllowRowSelect="true"
                                            AllowColumnsReorder="False">
                                            <Resizing AllowRowResize="False" EnableRealTimeResize="False" ResizeGridOnColumnResize="False"
                                                AllowColumnResize="False"></Resizing>
                                            <Selecting AllowRowSelect="false" />
                                            <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />
                                        </ClientSettings>
                                    </telerik:RadGrid>
Galin
Telerik team
 answered on 18 Apr 2011
7 answers
233 views
Hello,

I need to build same code as in this sample but I have no declarative datasources.
Is there somewhere some samples off a full code behind version.

How to have the master grid triggering an ajax event to rebind details when a row is changed, how to select first row and, if exists, first details row.


Thanks for help.
CS
Vasssek
Top achievements
Rank 1
 answered on 18 Apr 2011
2 answers
54 views
I've created a system for importing images, where each image is "processed" during the import process.  This process allows you to resize, crop, flip, rotate, add whitespace, etc.  For the whitespace, I allow the user to select a color (so that the whitespace can be blue, for example).  To do this, I use a RadColorPicker.  (My first time using this control!)

My problem occurs when I import a lot of images.  (I'm using the multi-file upload control - thank you!)  For each uploaded image, I show a processing panel that allows them to manipulate the image.  If there are a lot of images, there are a lot of panels.  Each panel is probably about 400-500 px high, which can make for a long page.  When it's over 9999 px high, you start seeing these hidden sliders.  In the HTML source, I see the following:

<div id="Main_gob_CustomForm3_gob_ctl04_BGColorThumb_label" title="Background Color (Current Color is #FFFFFF)" class="rcpIcon">
<a href="#">Background Color</a><em id="Main_gob_CustomForm3_gob_ctl04_BGColorThumb_icon" style="background-color:#FFFFFF;">(Current Color is #FFFFFF)</em>
</div><div id="Main_gob_CustomForm3_gob_ctl04_ctl11" class="RadSlider RadSlider_Default" style="position:absolute;top:-9999px;height:22px;width:200px;">

If you look, you can see there is a slider (class="RadSlider RadSlider_Default" style="position:absolute; top:-9999px ...)

Is there a way to get rid of this?  Obviously, you're hiding this.  Can't you do a style="display:none;" instead of shoving it up so high?

I've uploaded a screen snapshot to show this.  Note the slider stuck in the middle.  This is actually related to another color picker that is in a similar window/tile farther down the page - like 9999px farther down.

Thank you.
LeBear
Top achievements
Rank 1
 answered on 18 Apr 2011
1 answer
81 views
How can I prevent a user from uploading two files with the same filename using the asyncupload control?
Peter Filipov
Telerik team
 answered on 18 Apr 2011
3 answers
110 views
How can i validate the *.mp4 format only in RadUpload?

I tried like AllowedFileExtenstion=".mp4";  But it doesnt work for me.
Peter Filipov
Telerik team
 answered on 18 Apr 2011
1 answer
58 views

I am relatively knew to the Telerik controls but have been a developer for several years. I want to implement a load on demand combo box for my newest project(well several really), the control will load from a page method. I got the control to load initially, but as you type the dropdown just bounces a little without narrowing the search or showing any type of error. Below is the code that is currently being used for the control, and page method.

private const int ItemsPerRequest = 20;

[WebMethod]
public static RadComboBoxData GetContributors(RadComboBoxContext context)

     DataTable data = GetContributors(); 
     RadComboBoxData comboData = new RadComboBoxData();
     int itemOffset = context.NumberOfItems;
     int endOffSet = Math.Min(itemOffset + ItemsPerRequest, data.Rows.Count);
     comboData.EndOfItems = endOffSet == data.Rows.Count;

     List<RadComboBoxItemData> results = new List<RadComboBoxItemData>(endOffSet - itemOffset);
     for (int i = itemOffset; i < endOffSet; i++)
     {
          RadComboBoxItemData itemData = new RadComboBoxItemData();
          itemData.Text = data.Rows[i]["Contributor"].ToString();
          itemData.Value = data.Rows[i]["ContributorID"].ToString();
          results.Add(itemData); 
     }

     comboData.Message = GetStatusMessage(endOffSet, data.Rows.Count);
     comboData.Items = results.ToArray();
     return comboData;

}

private static string GetStatusMessage(int offSet, int total)

     if (total <= 0)
     {
         return "No matches";
     } 
     else
     { 
         return string.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", offSet, total);
     }
}

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px"> 
<telerik:RadComboBox ID="radcboAutoContributorNames" EmptyMessage="Please enter contributor name" Width="200px"            MaxHeight="140px" EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" Runat="server">
<WebServiceSettings Method="GetContributors" Path="Default.aspx" />
</telerik:RadComboBox>
</telerik:RadAjaxPanel>
Adam
Top achievements
Rank 1
 answered on 18 Apr 2011
2 answers
173 views
I have a page with several editors and I would like to have a single toolbar to use with all the editors. This toolbar should always be visible.

I have created a sample page that is CLOSE to what I want. However, the toolbars are being duplicated - one for each RadEditor. I know that I will have to use to javascript change which Editor is active when the toolbar is clicked. That's no problem, though.

What do I need to change to only have 1 toolbar that's always visible?

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <div style="display: none;">
        <telerik:RadEditor runat="server" ID="MasterEditor" SkinID="DefaultSetOfTools" EnableViewState="false"
            Height="100px" ContentAreaMode="Div">
            <Tools>
                <telerik:EditorToolGroup DockingZone="divToolbar">
                    <telerik:EditorTool Name="Bold" />
                    <telerik:EditorTool Name="Italic" />
                    <telerik:EditorTool Name="Underline" />
                    <telerik:EditorSplitButton Name="ForeColor" />
                </telerik:EditorToolGroup>
            </Tools>
        </telerik:RadEditor>
    </div>
    <div id="divToolbar" style="background-color: Silver; height: 100px;">
    </div>
    <div>
        <telerik:RadEditor ID="RadEditor1" runat="server" ToolProviderID="MasterEditor" Height="50"
            Width="100" ContentAreaMode="Div" EditModes="Design" EnableViewState="false"
            BorderStyle="None" AutoResizeHeight="True" OnClientLoad="RadEditorLoad" />
    </div>
    <div>
        <telerik:RadEditor ID="RadEditor2" runat="server" ToolProviderID="MasterEditor" Height="50"
            Width="100" ContentAreaMode="Div" EditModes="Design" EnableViewState="false"
            BorderStyle="None" AutoResizeHeight="True" OnClientLoad="RadEditorLoad" />
    </div>
    <script type="text/javascript">
        function RadEditorLoad(editor, args) {
            editor.removeShortCut("InsertTab");
        }
    </script>
Chris
Top achievements
Rank 1
 answered on 18 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?