Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
314 views
Hi,

How do I modify the ListBox to allow the user to select / deselect (toggle) each item simply by clicking it, i.e. without pressing CTRL?

Thanks,

Rob
Tim Harker
Top achievements
Rank 2
 answered on 25 Apr 2011
1 answer
42 views
hi,
scenario is like this,
i have a radgrid  is populated successfully. on this grid a button is put.
when this button is clicked a radwindow is displayed. In this radwindow a grid is put and this radgrid fetch the record from database.
this child radgrid that is put in Radwindow when populated with 2000 records from the database using ORM, takes almost 10 min.
is there any way so that data can be populated in this grid in fast manner.


Thanks to all.
Daniel
Telerik team
 answered on 25 Apr 2011
4 answers
290 views

Hi
I Have the following DataSet structure:

Price__MakeID__SourceID__Day
100______1________1_______1 
101______1________1_______2 
101______1________1_______3 
101______1________1_______4 
101______1________1_______5 
101______1________1_______6 
102______1________1_______7 
102______1________1_______8 
102______1________1_______9 
100______1________2_______1 
102______1________2_______2 
102______1________2_______3 
102______1________2_______4 
103______1________2_______5 
103______1________2_______6 
102______1________2_______7 
101______1________2_______8 
100______1________2_______9 

100______2________1_______1 
101______2________1_______2 
101______2________1_______3 
101______2________1_______4 
101______2________1_______5 
101______2________1_______6 
102______2________1_______7 
102______2________1_______8 
102______2________1_______9 
100______2________2_______1 
102______2________2_______2 
102______2________2_______3 
102______2________2_______4 
103______2________2_______5 
103______2________2_______6 
102______2________2_______7 
101______2________2_______8 
100______2________2_______9 

Basically I am tracking the price of products from a number of sources over a number of days.

How would I bind this dataset to a Line Grid so that the y axis shows the price, the x axis shows the Day and lines on the grid show the variation in price by make (different color line for each source)

Any pointers would be great!

Thanks

Evgenia
Telerik team
 answered on 25 Apr 2011
8 answers
855 views

I have a pretty simple grid that I want the users to be able to expand the row for more information. The issue I am having is that the default ExpandCollapseColumn the grid drops in is something like 100px wide (maybe wider) and shows images of both a right-pointing icon and a left-pointing icon (e.g. " >      < ").

The following is my grid declaration:

<telerik:RadGrid runat="server" ID="grdResults" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" GridLines="None" OnNeedDataSource="grdResults_NeedDataSource" >
    <MasterTableView DataKeyNames="ClaimId" CommandItemDisplay="None" PageSize="50" Width="100%" HierarchyLoadMode="ServerOnDemand">
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </ExpandCollapseColumn>
        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" Position="Bottom" />
        <Columns>
            <telerik:GridBoundColumn UniqueName="claimIdColumn" DataField="ClaimId" HeaderText="" Visible="false"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="policyIdColumn" DataField="PolicyId" HeaderText="" Visible="false"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="carrierIdColumn" DataField="CarrierId" HeaderText="" Visible="false"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="fileNumberColumn" DataField="FileNumber" HeaderText="File Number"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="carrierNameColumn" DataField="CarrierFormattedName" HeaderText="Carrier Name"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="carrierPolicyNumberColumn" DataField="PolicyNumber" HeaderText="Policy Number"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="carrierClaimNumberColumn" DataField="ClaimNumber" HeaderText="Claim Number"></telerik:GridBoundColumn>
            <telerik:GridDateTimeColumn UniqueName="lossDateColumn" DataField="LossDate" HeaderText="Date of Loss" DataFormatString="{0:M/d/yyyy}"></telerik:GridDateTimeColumn>
            <telerik:GridBoundColumn UniqueName="insuredNameColumn" DataField="PolicyHolderDisplayName" HeaderText="Insured Name"></telerik:GridBoundColumn>
            <telerik:GridTemplateColumn UniqueName="lossCityStateColumn" HeaderText="Loss Location" SortExpression="Location">
                <ItemTemplate>
                    <%# Eval("LossCity"%>,&nbsp<%# Eval("LossState"%>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn UniqueName="lossPostalColumn" DataField="LossPostal" HeaderText="Loss ZIP"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="lossCatNumber" DataField="CatNumber" HeaderText="CAT No."></telerik:GridBoundColumn>
        </Columns>
        <NestedViewSettings>
            <ParentTableRelation>
                <telerik:GridRelationFields DetailKeyField="ClaimId" MasterKeyField="ClaimId" />
            </ParentTableRelation>
        </NestedViewSettings>
        <NestedViewTemplate>                                               
            <asp:Panel runat="server" ID="pnlDetails" BackColor="Ivory" >
                <fieldset style="padding:10px;">  
                    Details will go here.
                </fieldset>
            </asp:Panel>
        </NestedViewTemplate>
        <NoRecordsTemplate>
            No data found
        </NoRecordsTemplate>
    </MasterTableView>
</telerik:RadGrid>


Searched through the forum for answers and everything I have tried doesn't seem to work. There is one thread that suggests setting the MasterTableView-ExpandCollapseColumn-HeaderStyle-Width in the grid declaration but that was unsuccessful. In addition, there were various suggestions of changing the width on OnColumnCreated event but that too did not work.

I have the 2011 Q1 Release of the tools and am running IE8 (both compatibility mode on and off). Any kind of help would be greatly appreciated.

~ Jon

Jon Walsh
Top achievements
Rank 1
 answered on 25 Apr 2011
2 answers
131 views
Hi,

   I'm new to teletik. Today i installed rad controls .exe file in my system. when i click the desktop icon it will redirected to server and displays like below the error.

Could not load file or assembly 'System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

If anyother reason with it and i need to change any assembly's in my bin folder or anywhere.

Pls help me... Advance in Thanks

regards,

H.AL-MUBARAK
Andrés David Santacoloma Isaza
Top achievements
Rank 1
 answered on 25 Apr 2011
2 answers
54 views
Hi,

I followed the sample emoticon demo at
http://demos.telerik.com/aspnet-ajax/editor/examples/customdropdowns/defaultcs.aspx

The problem is, after selecting an emoticon via the dropdown, it is very hard to select another emoticon from the same dropdown because you have to click on the tiny dropdown arrow and it is very easy to click on the icon and get another of the same emoticon you previously selected.

Is there any way to make the EditorSplitButton always dropdown its items, even if you click on the icon?


Don Tian
Top achievements
Rank 1
 answered on 25 Apr 2011
2 answers
82 views

Hi,

I am having an issue getting the dialogs to work for the RadEditor.  When I click one of the icons that use Dialogs I get the dialog but the "Insert" button does nothing.  I added the path properties to the RadEditor and added images to those folders.  The dialog that shows has the formatted columns and the "insert" button but nothing else.

<telerik:RadEditor> 
    runat="server" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd" 
    Skin="Default" AllowScripts="true" EditModes="All"
    AutoResizeHeight="true" EnableResize="true" ImageManager-UploadPaths="~/Content/images/pages"
    DocumentManager-UploadPaths="~/Content/images/pages" MediaManager-UploadPaths="~/Content/images/pages"
    TemplateManager-UploadPaths="~/Content/images/pages">
    <Content>
    </Content>
    <ImageManager UploadPaths="~/Content/images/pages" />
    <DocumentManager UploadPaths="~/Content/images/pages" ViewPaths="~/Content/images/pages" />
    <MediaManager UploadPaths="~/Content/images/pages" />
    <TemplateManager UploadPaths="~/Content/images/pages" />
    <CssFiles>
      <telerik:EditorCssFile Value="~/Content/css/EditorContentArea.css" />
    </CssFiles>
</telerik:RadEditor>



Are there any links you can share that shows how to complete this task?

Thanks,
Reid
Reid
Top achievements
Rank 2
 answered on 25 Apr 2011
1 answer
71 views
Hi,
I have a grid in my web page with GridAttachmentColumn which displays download file link. When user click on link to download the file from server. I writes byte stream in response so that It shows download dialogue in user's browser. It works fine without using loading panel, but with loading panel enabled when I try to download a file clicking the download link of GridAttachmentColumn, it shows strange behavior with some javascript message "Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled Details: Error parsing near '". How can I disable loading panel behavior when user try to download file only and still works for other grid operations like insert/edit/delete and paging operation.
Ohh yes, I know we can not write file to response while sending Ajax request or response.

Thanks

Tejas
Pavlina
Telerik team
 answered on 25 Apr 2011
1 answer
363 views
Hello,

As do many, I use a RadListBox inside of a RadComboBox's ItemTemplate to implement multiple selections.

One thing I want to provide is a maximum height of the RadListBox, similar to a RadComboBox.

Purpose:
For site-wide consistency, at max the RadListBox can be 170px high.  If there are fewer rows than fill up the space, then the height should be automatic.

I'm not setting a height on the RadComboBox and/or RadListBox so that they render in their unaltered size.  In the RadComboBox OnClientOpened event, I capture the size of the rcbSlide, which is the only element that I see that holds the actual height of the dropdown when it's expanded.  If the value is greater than 170px then we need to limit the height by resizing the RadListBox and the rcbSlide.  (I tried OnClientOpening, but the height hasn't been set at that point...)

Here is the JavaScript that I have so far.   At this point it's setting the height of the dropdown, but the overflow scrollbars do not appear on the RadListBox as I'd expect...

function multiSelect_RadComboBox_Opened(sender) {
    var height = sender.get_dropDownElement().parentElement.style.height;
    if (height.length > 0) {
        height = height.substring(0, height.length - 2);
        if (height > 170) {
            sender.get_dropDownElement().parentElement.style.height = '170px';
            var items = sender.get_items();
            items.getItem(0).findControl('rlbItems').get_element().style.height = '170px';
        }
    }
}

Thoughts??
Thanks!
Thad



Thad
Top achievements
Rank 2
 answered on 25 Apr 2011
1 answer
56 views
I use the

RadDatePicker  ( RadControls for ASP.NET AJAX Q3 2010)
When i enter the date 25/4/2008  not accept this date and convert it automatically to 24/4/2008
When i select the date 25/4/2008 from the calender from the button of the control not accept the date and write 24/4/2008

the date format (dd/MM/yyyy)
please, help me

Pavlina
Telerik team
 answered on 25 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?