Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
195 views
I have a RadGrid which have DatasourceID="1" as default and I need that GridHyperlinkColumn to have the text from DataSourceID="2", because my first datasource don't contain the "Name" field.
Here is my code:
k:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" 
    AllowAutomaticUpdates="True" AutoGenerateColumns="False" AutoGenerateDeleteColumn="True" 
    AutoGenerateEditColumn="True" DataSourceID="LinqDataSource1" OnItemDataBound="RadGrid1_ItemDataBound" 
    GridLines="None" AllowSorting="True" Skin="Vista" OnItemCreated="RadGrid1_ItemCreated" 
    OnItemUpdated="RadGrid1_ItemUpdated" EnableLinqExpressions="false" ShowFooter="True" 
    DataKeyNames="ProductID"> 
    <MasterTableView DataKeyNames="CartID,ProductID" DataSourceID="LinqDataSource1"> 
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridBoundColumn DataField="CartID" HeaderText="CartID" ReadOnly="True" SortExpression="CartID" 
                UniqueName="CartID" Visible="False"> 
            </telerik:GridBoundColumn> 
            <telerik:GridHyperLinkColumn HeaderText="Name" UniqueName="Name" DataTextField="Name" 
                DataType="System.String" DataNavigateUrlFields="ProductID" DataNavigateUrlFormatString="/Product.aspx?ProductID={0}"> 
            </telerik:GridHyperLinkColumn> 
            <telerik:GridDropDownColumn DataField="ProductID" DataSourceID="LinqDataSource2" 
                HeaderText="Name" ListTextField="Name" ListValueField="ProductID" ReadOnly="True" 
                UniqueName="column"> 
            </telerik:GridDropDownColumn> 
            <telerik:GridDropDownColumn DataField="Quantity" HeaderText="Quantity" UniqueName="Quantity1"> 
            </telerik:GridDropDownColumn> 
            <telerik:GridBoundColumn DataField="DateAdded" DataType="System.DateTime" HeaderText="DateAdded" 
                ReadOnly="True" SortExpression="DateAdded" UniqueName="DateAdded" Visible="False"> 
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="Price" DataFormatString="{0:c}" DataType="System.Double" 
                HeaderText="Price" ReadOnly="True" SortExpression="Price" UniqueName="Price" 
                Visible="True" /> 
            <telerik:GridCalculatedColumn HeaderText="Subtotal" DataFormatString="{0:c}" UniqueName="TotalPrice" 
                DataType="System.Double" DataFields="Quantity, Price" Expression="{0}*{1}" FooterText="Total : " 
                Aggregate="Sum" /> 
        </Columns> 
    </MasterTableView> 
    <ClientSettings EnableRowHoverStyle="True"> 
        <Selecting AllowRowSelect="True" /> 
    </ClientSettings> 
    <FilterMenu EnableTheming="True"> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </FilterMenu> 
</telerik:RadGrid> 
<asp:LinqDataSource ID="ShippingDataSource" runat="server" ContextTypeName="LinqCommerceDataContext" 
    TableName="lc_RegionShippingTables"> 
</asp:LinqDataSource> 
<br /> 
<asp:Label ID="statusLabel" ForeColor="Red" runat="server" CssClass="style1" /><br /> 
<asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="LinqCommerceDataContext" 
    EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="lc_ShoppingCarts" 
    Where="CartID == @CartID" OnDeleted="LinqDataSource1_Deleted" OnUpdated="LinqDataSource1_Updated"> 
    <WhereParameters> 
        <asp:CookieParameter CookieName="BalloonShop_CartID" Name="CartID" Type="String" /> 
    </WhereParameters> 
</asp:LinqDataSource> 
<asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="LinqCommerceDataContext" 
    Select="new (ProductID, Name)" TableName="lc_Products"> 
</asp:LinqDataSource> 
<asp:LinqDataSource ID="LinqDataSource3" runat="server" EnableUpdate="True" TableName="lc_ProductInventory" 
    Where="ProductID == @ProductID" ContextTypeName="LinqCommerceDataContext" Select="new (ProductID, Name)"> 
</asp:LinqDataSource> 
I need that GridHyperlinkColumn to have the "Name" field as text. Can you help me? Thanks
Radoslav
Telerik team
 answered on 30 Mar 2010
1 answer
57 views
Hello,

I am using 2009 Q3 SP1 with the CDN activated from the web.config file.
I have also enabled the IIS 7 dynamic compression for my site and all the pages are sent compressed to the client.

But all the files from telerik CDN are served uncompressed : all the JS and CSS are pointing to the "ajax" folder and not the "ajaxz"
With the same client, I have tested your webmail demo and the files from your CDN are served compressed.

Is there anything special to configure to get compressed file from the CDN ?

Thanks
T. Tsonev
Telerik team
 answered on 30 Mar 2010
3 answers
184 views
Hi there,

I try to style with RadFormDecorator

<asp:ListBox DataTextField="Naam" DataValueField="id" SelectionMode="Multiple" id="Golfbanen" rows="6" runat="server"></asp:ListBox>

Now MultiSelect is not working anymore.

is this a bug or by design?

Marc




Georgi Tunev
Telerik team
 answered on 30 Mar 2010
1 answer
167 views
I am using the RadProgressManager to manage a custom progress. I've set every timeout I can think of 

    IIS AppPool from 20 to 360 min
    forms timeout to 1200
    httpruntime executiontimeout to 12000
    sessionstate timeout to 1200

Yet, no matter what I do, the page displays "Page cannot be displayed" when it gets to 60 minutes exactly. Progress Monitor works flawlessly until then, or on smaller processes.

When this happens, the process DOES continue in the background until finished.

Any ideas where there could be another timeout that is set to 60 minutes?

Thanks in advance.
Genady Sergeev
Telerik team
 answered on 30 Mar 2010
1 answer
299 views
We are using the RadScheduler for Asp.net AJAX. Here are my questions about RADScheduler.
1. How can I add public holidays to the scheduler? I just want to show with different background color.
2. Is there any way to create yearly view?
3. Can we customize the appointment to show Lunch/Tea break. 
Eg.,  An event will start 9:00 to 5:00 from 1st April to 5th April.
09:00 AM - 12:00 PM  - morning section
12:00 PM - 01:00 PM  - Lunch break
01:00 PM - 03:00 PM  - Evening Section
03:00 PM - 03:30 PM  - Tea break
03:30 PM - 05:00 PM  - Evening Section


Peter
Telerik team
 answered on 30 Mar 2010
7 answers
273 views
Hi, another issue I'm facing is, when user selects an invalid file to upload such as size over limit, wrong file type...etc. An exclamation mark displays (see attached) as it supposes to. Then, user tries to remove that error entry by clicking on remove button, they got a JavaScript error "Permission denied" (see attached).

Please help!
 
Genady Sergeev
Telerik team
 answered on 30 Mar 2010
6 answers
175 views
Hi,

With treeviews that have checkboxes on them is there a simple way to turn on and off the ability to check/uncheck the boxes?

I've tried setting the nodes to enabled=false but when doing that the text goes grey. 

I want to turn my admin form into a non admin form with as little fuss as possible.  Obviously I could use a node template but then the complexity of the page ramps up for a basic requirement.

I'm just hoping that I've missed some basic setting!

Regards,

Jon

Veronica
Telerik team
 answered on 30 Mar 2010
3 answers
97 views
I have a few full day events that I want to show in the all day slot, how do I do that?         
Peter
Telerik team
 answered on 30 Mar 2010
3 answers
154 views
Hello,

I am trying to create two custom attributes of which are named "PublishAt" and "RemoveAt" they are both DateTime's. So far here is my code:

<telerik:RadScheduler ID="RadScheduler1" EnableCustomAttributeEditing="True"
        CustomAttributeNames="PublishAt, RemoveAt">
        <AdvancedForm Modal="true" />
       
        ...
       
        <TimeSlotContextMenuSettings EnableDefault="true" />
        <AppointmentContextMenuSettings EnableDefault="true" />
</telerik:RadScheduler>

<asp:EntityDataSource runat="server" ID="EntityDataSource1" ... EntitySetName="Notices" EnableDelete="true"
        EnableInsert="true" EnableUpdate="true" OnInserting="EntityDataSource1_Inserting">
        <UpdateParameters>

            ...

            <asp:Parameter Name="PublishAt" Type="DateTime" />
            <asp:Parameter Name="RemoveAt" Type="DateTime" />
        </UpdateParameters>
        <InsertParameters>

            ...

            <asp:Parameter Name="PublishAt" Type="DateTime" />
            <asp:Parameter Name="RemoveAt" Type="DateTime" />
        </InsertParameters>
</asp:EntityDataSource>
The main problem with this is for one, the fields for "PublishAt" and "RemoveAt" do show up in the form, but they appear as textboxes and I wish for them to be formatted as the default "Start" and "End" properties. What is the best way to do this?

Another question I have is, what would be the best way to make it so that "PublishAt" and "RemoveAt" work so that an end-user can only see scheduled events once the "PublishAt" time has passed and they can not see scheduled events after the "RemoveAt" time has passed?

Hopefully I've included all the details in the code required. If anything else is necessary please let me know.

Thanks

Ramie

EDIT: If anyone thinks I am asking too much, could you perhaps just tell me how to create my own DateTime form?
Peter
Telerik team
 answered on 30 Mar 2010
5 answers
200 views
hi all,

I am new to telerik rad controls. i have a rad grid and a griddropdowncolumn in it. my requirement is i want this griddropdowncolumn as editable when i try to insert a new record. and the same column as readonly when i try to edit the record. i dont even know how to differentiate the insertmode and the editmode. kindly help me, by telling which handler to write the logic and also giving a small code snippet.

Regards,
Saravanan.K
Princy
Top achievements
Rank 2
 answered on 30 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?