Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
173 views
Hi,
I have a grid with some preselected items, and now when i click on a row the previous selections lost. i checked the following thread, it helped a bit not completely.
http://www.telerik.com/community/forums/aspnet-ajax/grid/row-selection-question.aspx

i am using client select column. allowing multiple row selection.


Daniel
Telerik team
 answered on 08 Dec 2008
3 answers
137 views
Hi,

This is the situation:

- I have a RadMenu with root menuitems and a single level of submenuitems (just as in this demo).
- the submenuitems have been styled using background images (using the skin's CSS file). Specifically, the .rmLink together with .rmFirst and .rmLast have been defined to use the correct images.

However, I run into a problem when there is only 1 submenuitem: the LI tag contains both .rmFirst and .rmLast, and the image defined in .rmLast is displayed. What I need is a way to set the background image using a CSS selector, so that I can use a image that is designed for a single submenuitem (the submenu's design  contains fancy rounded corners and fancy borders that cannot be created using CSS alone).

Unless it's possible to make a CSS selector based on two CSS classes in an element (i.e. <li class="rmFirst rmLast"></li>), I think the best solution would be two introduce a new CSS class, perhaps ".rmFirstLast"?

That way I could define the .rmFirstLast class in the Skin's stylesheet and use the correct image.
I hope I'm making any sense, otherwise I will provide visuals to make my point clear.

A Telerik Demo of RadMenu contains a sample to demonstrate my problem: http://demos.telerik.com/aspnet-ajax/Menu/Examples/Default/DefaultCS.aspx

If the submenu of "File" contained only a single item, you would see that the top border of the item is missing.
Yana
Telerik team
 answered on 08 Dec 2008
1 answer
110 views
hy friends,

i have a column that shows date data. when I need to add a new record I want to display a raddatepicker instead of a textbox. Whats the best way to achive this?

I created a template field with a datepicker inside the "edititemtemplate" and bounded it to the desired field, but when I click the add record in gridview button the following msg is displayed:

"Invalidcastexception was unhandled by user code"

thanks for the help

Dimo
Telerik team
 answered on 08 Dec 2008
3 answers
156 views
Hello,

As my menu with panelbar works Ok with IE 7, I get unexpected horizontal scrollbar for first level panelItems underb FireFox ??

My first level items each have a large image associated.
The panelbar iteself is implemented like theTlerik sample for sliding panelbar: inside a div with a fixed width, all generated codebehind with:
        Image Img               = new Image();
        HtmlGenericControl SlidingDiv   =   new HtmlGenericControl("div");
        RadPanelBar mnu      =   new RadPanelBar();

            Img.SkinID                  =   "FloatButton";
            Img.ID                      =   "tbimage";
            Img.AlternateText           =   "Menu";
          Controls.Add(Img);
            SlidingDiv.ID               =   "slidingDiv";
            mnu.ID                      =   "NavMen";
            mnu.ExpandMode              =   Telerik.Web.UI.PanelBarExpandMode.SingleExpandedItem;
            mnu.EnableTheming           =   true;
            mnu.PersistStateInCookie    =   true;
then
                Img.Style.Add("float","left");
                Img.Style.Add("outline","0");
                SlidingDiv.Style.Add(HtmlTextWriterStyle.Position,"absolute");
                SlidingDiv.Style.Add(HtmlTextWriterStyle.Display,"none");
                SlidingDiv.Style.Add(HtmlTextWriterStyle.Left,"50px");
                SlidingDiv.Style.Add(HtmlTextWriterStyle.Top,"0");
                SlidingDiv.Style.Add(HtmlTextWriterStyle.Width,"250px");
                SlidingDiv.Style.Add(HtmlTextWriterStyle.Height,"600px");

why should this generate horizontal scrolls in FF ?

Any help welcome
CS
Yana
Telerik team
 answered on 08 Dec 2008
1 answer
118 views
HI

When I open a open a window with the default skin and minimize it I can move the minimized title bar. When I set the skin to Office2007 I can't. What is determining this behaviour?

A similar thing happens in your examples using the Vista skin ...
http://demos.telerik.com/aspnet-ajax/Window/Examples/WindowManager/DefaultCS.aspx
... but in this example the title bar can be moved via sizing! The Office2007 skin has no ability to move.

Thanks
Russell Mason
Georgi Tunev
Telerik team
 answered on 08 Dec 2008
3 answers
154 views

I am trying to set the text of a node using Javascript. but its not setting it propertly.

After set_text() if I call get_text() it returns me the new value - but the value is not displayed on the tree. And the get_textElement() returns me the older value.

Do you know why this may be happening?

-Piyush
Yana
Telerik team
 answered on 08 Dec 2008
1 answer
141 views
Hi,

I am facing problem with radgrid ExportToExcel() method.

The scenario is as follows:

I have a report page, containing some radcomboboxes, search and download buttons.
After selecting the options the user will click on search button. We are displaying the records in a radgrid.
The user can download the records into excel by clicking on download button.
In the click() event of download button we have used the grid.ExportToExcel() method to export the records into excel.
When the user clicks on the download button, open save dialog is opened. When the user clicks on save/cancel buttons in open save dialog box, we are unable to select the options from any of the radcomboboxes available on the page.

Please let me know if anyone knows what was the problem and how to solve it ASAP

Thanks & Regards,
Chandra Kanth. K
Sebastian
Telerik team
 answered on 08 Dec 2008
2 answers
155 views
Hello,

I need to hve a dockable floating window which presents results in a radgrid.
Each time I select a new node in a RadTreeView, I do an AjaxCallBack to fill the grid.
The row number in the grid vary and the dock windo has to adapt its height according.
I am using same code as in the postit sample for RadDock.

<telerik:RadDockLayout runat="server" ID="RadDockLayout1">
    <telerik:RadDock ID="GridDock" Title="&nbsp;" Top="200px" Left="550px" DefaultCommands="All" Pinned="true" DockMode="Floating" runat="server" style="min-width:310px;min-height:200px;margin-left:auto;margin-right:auto;" >
        <ContentTemplate>
        <div style="width:300px;">
        <telerik:RadGrid ID="RadGrid2" runat="server" GridLines="None" Width="100%" AutoGenerateColumns="False">
        <MasterTableView>
            <ExpandCollapseColumn Visible="False" Resizable="False">
                <HeaderStyle Width="20px" />
            </ExpandCollapseColumn>
            <RowIndicatorColumn Visible="False">
                <HeaderStyle Width="20px" />
            </RowIndicatorColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="Name" HeaderText="<%$ Resources:ResourcesWTCRM,AM_NAME %>"
                    ItemStyle-Width='200px' UniqueName="Name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Parameter" HeaderText="<%$ Resources:ResourcesWTCRM,AM_PARAMETER %>"
                    ItemStyle-Width='200px' UniqueName="Parameter">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
        </telerik:RadGrid>
        </div>
        </ContentTemplate>
    </telerik:RadDock>
</telerik:RadDockLayout>

The dock opbject is added in codebehind as a dependency of the radTreeView.

During the ajax postback, my code is
                RadGrid RadGrid2    =   (RadGrid)GridDock.ContentContainer.FindControl("RadGrid2");
                if ( RadGrid2 == null )
                    return;
                RadGrid2.DataSource = InfoTb;
                RadGrid2.DataBind();


It seems to work until I select a node with a smaller row of information.
I get the following error:
"System.ArgumentException: Ivalid JSON primitive: {"Top":153,"Left":908,"DockZoneID":"","Collapsed":false......
at ...JavascriptObjectDeserialize.BasicDeserialize
at..ProcessPostData

Could we use radGrid, RadDock and RadAjax this way ??????
Thanks for not answering me an 'open a ticket', I have a long queue of pending request for this and I have no time left for.

Thanks fo help.
CS.
Petko
Telerik team
 answered on 08 Dec 2008
4 answers
161 views
Hi,
I can succesfully resize the chart within a radpane at run-time (clientside) using

 

function ResizeChart(sender, args)

 

{

 

var chart = $get("<%= RadChart1.ClientID %>");

 

 

var chartimg = chart.getElementsByTagName("img")[0];

 

chartimg.style.setAttribute(

"width", sender.get_width() + "px");

 

chartimg.style.setAttribute(

"height", sender.get_height() + "px");

 

} 

However, the image is stretched. How can i "repaint?" the chart image to its new size rather than just stretching ?

Thanks
Mark

Mark
Top achievements
Rank 1
 answered on 08 Dec 2008
1 answer
82 views
Hi,

I like to use Rad Menu in place for quick menu on my master page?.

Is ther somebody who have a small code sample for use the RAD menu?

Regards,

Wim Kuiper
Dimitar Milushev
Telerik team
 answered on 08 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?