Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
137 views
Hello,
how can i use a checkboxlist in the grid?
I have created a grid with inside a EditItemTemplate:
<telerik:GridTemplateColumn DataField="TypeObjectTypes"
    FilterControlAltText="Filter TypeObjectTypes column" HeaderText="Object Type"
    UniqueName="TypeObjectTypes">
    <EditItemTemplate>
        <asp:CheckBoxList ID="CblObjectTypes" runat="server">
            <asp:ListItem Value="DynamicImage">Dynamic Image</asp:ListItem>
            <asp:ListItem Value="StaticURL">Static URL</asp:ListItem>
            <asp:ListItem>Static Text</asp:ListItem>
            <asp:ListItem Value="DynamicScrolltext">Dynamic Scrolltext</asp:ListItem>
            <asp:ListItem Value="FreeText">Free Text</asp:ListItem>
            <asp:ListItem>Object List</asp:ListItem>
        </asp:CheckBoxList>
    </EditItemTemplate>
    <ItemTemplate>
        <asp:Label ID="TypeObjectTypesLabel" runat="server"
            Text='<%# Eval("TypeObjectTypes") %>'></asp:Label>
    </ItemTemplate>
</telerik:GridTemplateColumn>
...
</telerik:RadGrid>
<asp:ObjectDataSource ID="ObjectDataSource2" runat="server"
    DeleteMethod="DeleteLayoutType" InsertMethod="InsertLayoutType"
    SelectMethod="GetLayoutTypes"
    TypeName="LayoutTypesBLL" UpdateMethod="UpdateLayoutType" >
    <DeleteParameters>
        <asp:Parameter Name="TypeID" Type="Int32" />
    </DeleteParameters>
    <InsertParameters>
        <asp:Parameter Name="TypeName" Type="String" />
        <asp:Parameter Name="TypeText" Type="String" />
        <asp:Parameter Name="TypeObjectTypes" Type="String" />
        <asp:Parameter Name="TypeMenu" Type="String" />
        <asp:Parameter Name="TypePriority" Type="Int32" />
        <asp:Parameter Name="ProjectID" Type="Int64" />
    </InsertParameters>
    <UpdateParameters>
        <asp:Parameter Name="TypeName" Type="String" />
        <asp:Parameter Name="TypeText" Type="String" />
        <asp:Parameter Name="TypeObjectTypes" Type="String" />
        <asp:Parameter Name="TypeMenu" Type="String" />
        <asp:Parameter Name="TypePriority" Type="Int32" />
        <asp:Parameter Name="ProjectID" Type="Int64" />
        <asp:Parameter Name="TypeID" Type="Int32" />
    </UpdateParameters>
</asp:ObjectDataSource>

When I create a new record i need this format in the database field "TypeObjectTypes" from the selected items from the CheckBoxList:
"DynamicScrolltext,FreeText".
How can i save the selected items in the DataBase and which event can i use for this?
When i show the EditItemTemplate, how can i select the right items in the CheckBoxList from this format ("DynamicScrolltext,FreeText")?

Best regardsReiner
Marin
Telerik team
 answered on 03 Apr 2012
1 answer
68 views
Hi,
EnableRootItemScroll causes an issue in Chrome. When set to true, all sub menu's display horizontally instead of vertically. See demo
http://demos.telerik.com/aspnet-ajax/menu/examples/functionality/scrolling/defaultcs.aspx
Any solution to correct this?
Kate
Telerik team
 answered on 03 Apr 2012
1 answer
97 views
Hello,
I'm building my radgridview programmatically. The source is datatable which I build too. 
When I'm in editmode (I use InPlace) how can I get the new data in the on the update?

I can retrieve the row of the edited item but how can I get the column?
I tried to do something like that:

 e.Item.DataItem("Unique_Name")

but I can't get it work... 

Can you help?
Thanx
Blop
Top achievements
Rank 1
 answered on 03 Apr 2012
3 answers
305 views
Hi,

Is there a way to deploy RadCaptcha on a load balanced servers, instead of using session as imagestorageloacation can we use cookies?

Thanks,
Jessie
Slav
Telerik team
 answered on 03 Apr 2012
1 answer
125 views
Hi,

Can someone explain to me why I can do something like this in the page_load event:

Editor.CssClasses.Add("", "")

to clear all classes from the dropdown.

But calling a sub with the exact same code doesn't work?

As I am using the editor in many different pages in this project, I've set up global editor settings which I can call from each page, instead of pasting the same code in all pages.

Some / most settings work from there, but these css settings seem to be very flimsy to say the least.

Any help would be appreciated.

Regards,
-DJ-
Rumen
Telerik team
 answered on 03 Apr 2012
3 answers
88 views
Hi,

We have run into a problem with the new controls (version 2011.1.315). It appears that EnableRootItemScroll causes an issue in Chrome. When set to true, all sub menu's display horizontally instead of vertically. See demo page:

http://demos.telerik.com/aspnet-ajax/menu/examples/functionality/scrolling/defaultcs.aspx

When running in IE 8  it's fine, try it in Chrome 10 and it displays wrong. Turning off EnableRootItemScroll seems to cure the issue but we need this turned on within our application.

Many Thanks,

Fiona.
Helen
Telerik team
 answered on 03 Apr 2012
1 answer
213 views
I have my grid on the following hierarchy:

RadAjaxPanel
RadPanelBar(Contains 2 RadPanelItem)
RadPanelItem(2nd)
RadPanelItem
Panel
UpdatePanel(Tried with Panel too)
Panel
RadGrid

When I click on 'Edit' image of RadGrid, it is not going to edit mode immediately. In other words, it is going to edit mode but not updates itself(I can see it on the edit mode, when I do some other action).

Also, I have a RadAjaxManager which points to the outer RadAjaxPanel. I am aware that we should not use both RadAjaxManager and RadAjaxPanel on the same page.  However, I used RadAjaxManager  to set the RadAjaxLoadingPanel(I have no idea to set RadAjaxLoadingPanel without using RadAjaxManager).

Could you please help me to resolve this issue?

Regards,
-Akshay
Andrey
Telerik team
 answered on 03 Apr 2012
3 answers
577 views
Hi,

We are using 2011 Telerik Controls. Need to align the pager control (numeric + next/prev) to the center of grid and hide rest of
the paging information

1. How  can we hide rest of paging information? (like page size combo box, item 1 of 20 etc)
2. How align the pager control to the center of visible Grid. Our grid sitting inside a Div with horizontal scrollable.

                                                                             <<  <  1 2 3 4 5 6 7 8 9... >  >>

The gird pager should have only the above display and centered to the grid.

We are using the below settings: but these settings are now bringing the pager to the center of gird, it is still Top-Left

PagerStyle-Position

 

 

="Top" PagerStyle-HorizontalAlign="Center"

 

Thanks,

Gopi
Tsvetina
Telerik team
 answered on 03 Apr 2012
1 answer
232 views
I want to set the default filter function for a column on the client side. Please tell me how I can do that.
Shinu
Top achievements
Rank 2
 answered on 03 Apr 2012
7 answers
1.4K+ views
Hi Telerik
How can I change dynamically ItemStyle.Font.Bold of

GridBoundColumn


I am trying with this code but does not work ?

GridBoundColumn

gc = RadGridDocument.MasterTableView.Columns.FindByUniqueName("Index") as GridBoundColumn;

foreach (var item in Items)

{

 

if (item.ParentID > 0)

gc.ItemStyle.Font.Bold =

 

true;

 

else

gc.ItemStyle.Font.Bold =

 

false;

}

Nurietin
Top achievements
Rank 1
 answered on 03 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?