Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
Hello Telerik Team!

I need your help. I am creating a RadMenu where I wanted to take pictures of and ImageURL HoveredImageURL and use the CSS. But I just can not place at least one image using the CssClass RadMenuItem to bring in a single image, code below:
<telerik:RadMenu ID="RadMenu1" Runat="server">
            <Items>
                <telerik:RadMenuItem runat="server" Text="" CssClass="btnimage"   NavigateUrl="~/Default2.aspx" >
                </telerik:RadMenuItem>
            </Items>
</telerik:RadMenu>

The CSS File:

.btnimage
{
    background: url('img/unidades.jpg') no-repeat;
}

Note, I am using in my project "Theme", although a direct link in the css class without a path by Theme, did not work. I tried using also the EnableTheming = "true", but it still fails.

Please help me.

Thank you while

Raul
Princy
Top achievements
Rank 2
 answered on 05 Jul 2011
1 answer
101 views
Hi people
i have a grid which i add column in code behind.My problem is default scroll postion .I want default postion right of grid
my code is here
<telerik:RadGrid ID="grd"  runat="server"  AutoGenerateColumns="False" 
                    GridLines="None" Skin="Outlook" Width="1116px" 
                    Font-Bold="False" Font-Italic="False" 
                    Font-Overline="False" Font-Strikeout="False" Font-Underline="False" >
                    
<MasterTableView CommandItemDisplay="Top" EditMode="InPlace" Dir="RTL"  
                        NoMasterRecordsText="داده ای برای نمایش وجود ندارد" Width="100%" 
                        Font-Names="Tahoma" Font-Size="8.75pt" TableLayout="Fixed" >
    <CommandItemSettings AddNewRecordText="ثبت محل جدید" RefreshText="به روز رسانی" 
        ShowRefreshButton="False"    />
             
  
             
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
  
<ItemStyle Width="150px"></ItemStyle>
</RowIndicatorColumn>
             
  
             
    <Columns>
        <telerik:GridEditCommandColumn ButtonType="PushButton"  CancelText="انصراف" 
            EditText="ویرایش" InsertText="ذخیره" UpdateText="ویرایش">
            <HeaderStyle Width="150px" />
            <ItemStyle Width="150px" />
        </telerik:GridEditCommandColumn>
        <telerik:GridTemplateColumn  UniqueName="Places_ID_" DataField="Places_ID_" 
            HeaderText="محل"  >
         <EditItemTemplate>
            <telerik:RadComboBox ID="cmbPlaces" Width="200px" EnableItemCaching="true" LoadingMessage="صبر کنید" ShowWhileLoading="true"  ChangeTextOnKeyBoardNavigation="true" ShowDropDownOnTextboxClick="false"    Runat="server" AutoCompleteSeparator=","  AllowCustomText="true" Filter="Contains">
            </telerik:RadComboBox>
           
         </EditItemTemplate>
           <HeaderStyle Width="210px" />
            <ItemStyle Width="210px" />
        <ItemTemplate>
        <asp:Label ID="lblPlaces" CssClass="Lbl"   runat="server" Text='<%# Eval("Places_Place") %>'></asp:Label>
        </ItemTemplate>
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <ItemStyle HorizontalAlign="Right" Width="200px" />
        </telerik:GridTemplateColumn>
  
  
    </Columns>
             
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"  ></EditColumn>
</EditFormSettings>
    <ItemStyle Font-Names="Tahoma" Font-Size="8.75pt" HorizontalAlign="Center" 
        VerticalAlign="Middle" Width="150px" />
  
<EditItemStyle Width="200px"></EditItemStyle>
  
    <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Names="Tahoma" 
        Font-Overline="False" Font-Size="Small" Font-Strikeout="False" 
        Font-Underline="False" HorizontalAlign="Center" VerticalAlign="Middle"  
        Wrap="True" Width="150px" />
    <CommandItemStyle Width="150px" />
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True"  ScrollHeight="350px"  >
</Scrolling>
</ClientSettings>
  
<EditItemStyle CssClass="test"></EditItemStyle>
  
<ItemStyle CssClass="test" Width="150px"></ItemStyle>
  
<FilterMenu EnableImageSprites="False"></FilterMenu>
  
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Outlook"></HeaderContextMenu>
                </telerik:RadGrid>

please help to me for solve this problem.I use RadControls for ASP.NET AJAX Q1 2010 SP1
Princy
Top achievements
Rank 2
 answered on 05 Jul 2011
2 answers
32 views
Hi,

Almost finished this project with the old controls (phew). The problem I am having can best be seen in the two images in this zip file.

Upon a return to search, the PageSize TextBox in the pager is not being displayed on load. However, as soon as the user clicks on any of the page links, the PageSize TextBox re-appears.

This is not a catastrophic result. But it does look unprofessional and I would like to resolve it.

If anyone recognises these symptoms, your assistance will be greatly appreciated.

Cheers
David
Top achievements
Rank 1
 answered on 05 Jul 2011
2 answers
96 views
Hi

I have a page called LocationSearch.aspx that has RadGrid that lists Locations. 

If you have one selected and you click an Edit button at the top of the page a RadWindow appears.

In it, a separate page called AddEditLocations.aspx that gives you a form populated with the selected locations details.

My RadWindow declaration looks like this.

<telerik:RadWindow ID="rwAddLocation" NavigateUrl="AddEditLocation.aspx" Title="Add/Edit Location" Modal="true" runat="server" Width="700" Height="600" /> 
            

The Edit button has an OnClick event that calls this javascript on the LocationSearch page.

function showAddLocationForm(){
    var win = $find("<%#rwAddLocation.ClientID %>");
    win.show();
    win.center();
}

This works a treat.

However, now that I am in the RadWindow's AddEditLocation page, I need to do 3 things.

1. I need to have an OnClick event that posts back so I can write to the DB.

2. Next, I need the RadWindow to Close

3. I need to LocationSearch page to refresh it's RadGrid to reflect data that may have changed during the edit.

Point 1 I have sussed. However I can't work out how this RadWindow can close itself or how it can get the parent page to refresh.

The reason we put the edit form in a separate page is that we need to reuse it elsewhere on the site. It remains an option that I may have to put the AddEditLocation.aspx form in the RadWindow on the LocationSearch page. We would rather not do that but if I had to be that way let me know please.

Any tips would be appreciated.

Brad

Brad
Top achievements
Rank 1
 answered on 05 Jul 2011
5 answers
92 views
On the top of my page is a ribbon bar, when I execute some code on the page that executes an ajax postabck without the whole page posting back as a resullt it blanks all the buttons on the selected tab, they do return if I switch tabs and go back to it though. I should also add that the ribbonbar is in my master page and the ajax requests occur in the content page.
Albert
Top achievements
Rank 1
 answered on 05 Jul 2011
2 answers
66 views
Hi, I noticed the ability the make big buttons has been added but only 65px or greater. How do you make a button say 45px in height?
Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 04 Jul 2011
0 answers
39 views
Hi Team,

i am using Radtree and RadCombo(containing Radtree inside) in my project .some times when clicking on radtree or radcombo getting the following errror "message received from the server cannot be parsed".

i am using ajax setting in my project :
<telerik:AjaxSetting AjaxControlID="rdMasterAjaxManager" EventName="rdMasterAjaxManager_AjaxRequest">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdcmbTreeview" />
                    <telerik:AjaxUpdatedControl ControlID="Radtree1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
when ever AjaxRequest is firing i am updating both the controls.

please help me.

Regards,
Naveen M



Naveen
Top achievements
Rank 1
 asked on 04 Jul 2011
5 answers
115 views
Hello,

Is there a way to shrink the gaps between the buttons (first, prev, next, last) and the numbers of the DataPager? I've looked at the DataPage.xxxx.css file, but couldn't figure out how to achieve that. Any help would be greatly appreciated.

Tri.
Pavlina
Telerik team
 answered on 04 Jul 2011
4 answers
124 views
I'm creating a GridHyperLinkColumn programattically.

I'd need to add an attribute of rel="shadowbox" to the <a> tag which is created by this control.

and I added this code:

protected override void RdGridItemCreated(object sender, GridItemEventArgs e)
        {
            base.RdGridItemCreated(sender, e);


            if (e.Item is GridDataItem)
            {
                // enable shadowbox
                var item = (GridDataItem) e.Item;
                var link = (HyperLink)item["Code"].Controls[0];
                link.Attributes.Add("rel", "shadowbox");
            }
        }

which adds the shadowbox rel element.

But shadowbox control doesn't work with it.

Is there any known issues between RadGrid and ShadowBox?

Many thanks
Pooya
Top achievements
Rank 1
 answered on 04 Jul 2011
1 answer
1.4K+ views
I'm using the RadAjaxManagerProxy to ajaxify a control.

There are certain scenarios where I need to do a full page refresh when this control does a postback.  The logic that knows when the full page refresh is needed happens on the server.  So, what happens is the client initiates the partial page refresh, but then the server side code needs to override that and force a full page refresh.  I'm currently doing this by calling Response.Redirect to the same page, but that's causing some problems.  Is there another way for the server side code to override the partial page refresh and force it to refresh the full page? 
Maria Ilieva
Telerik team
 answered on 04 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?