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

I have a calendar date picker control which the user can select a single date from or multiple dates.

Is it possible to render particular dates as read only so that the user is unable to select those dates?  I'd like to be able to pass either a date or range of dates to the date picker which the user will be unable to select.

Thanks.
Princy
Top achievements
Rank 2
 answered on 19 Jun 2009
1 answer
128 views
Hello,
i try to modify your sample : "http://demos.telerik.com/aspnet-ajax/dock/examples/dynamicdocks/defaultcs.aspx" for using radajaxmanager but in some case i receiv this error:
Errore di run-time di Microsoft JScript: 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 'Telerik.Web.UI 2009.'.

thanks.
Giovanni
Pero
Telerik team
 answered on 19 Jun 2009
2 answers
134 views
Hi ,
       When we click AddNew Record , Add Mode goes to the begining of the RadGrid (First Row ) , Can this be made at the bottom of the RadGrid (Last Row)

Is it possible to achive this , kindly show me some samples ,Please

Thanks In advance

Regards
Vinodh
Vino
Top achievements
Rank 1
 answered on 19 Jun 2009
1 answer
297 views

 

 

I've got the following code in place to check the GridClientSelectColumn from my code behind and it indeed fires and the check boxes are checked but when the page finally renders none of the check boxes are checked. I've tried both the ItemDataBound and the ItemCreated events and neither produce a different result. The following article is were I got my code: http://www.telerik.com/community/code-library/aspnet-ajax/grid/gridclientselectcolumn-select-all-rows-with-enabled-check-boxes-only.aspx


<
telerik:RadGrid ID="StepsGrid" runat="server" AllowSorting="True" EnableAJAX="true"

 

 

 

 

 

ClientSettings-Selecting-AllowRowSelect="true" GridLines="None" Skin="Sunset"

 

 

 

 

 

HeaderStyle-Wrap="false" AutoGenerateColumns="False"

 

 

 

 

 

AllowMultiRowSelection="true" onitemdatabound="StepsGrid_ItemDataBound"

 

 

onitemcreated="StepsGrid_ItemCreated">

 

 

 

 

 

<HeaderStyle Wrap="False"></HeaderStyle>

 

 

 

 

 

<ClientSettings EnableRowHoverStyle="true" Selecting-AllowRowSelect="true">

 

 

 

 

 

<Selecting AllowRowSelect="true" />

 

 

 

 

 

</ClientSettings>

 

 

 

 

 

<ItemStyle Wrap="False" />

 

 

 

 

 

<MasterTableView CommandItemDisplay="TopAndBottom" CellSpacing="-1" DataKeyNames="StepGuid">

 

 

 

 

 

<CommandItemTemplate>

 

 

 

 

 

<asp:Button CssClass="CustomButton" runat="server" ID="AddSteps" Text="Add Steps" OnClick="AddSteps_Click" />

 

 

 

 

 

</CommandItemTemplate>

 

 

 

 

 

<RowIndicatorColumn Visible="False">

 

 

 

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

 

 

 

</RowIndicatorColumn>

 

 

 

 

 

<ExpandCollapseColumn Visible="False">

 

 

 

 

 

<HeaderStyle Width="19px"></HeaderStyle>

 

 

 

 

 

</ExpandCollapseColumn>

 

 

 

 

 

<EditItemStyle CssClass="GridEditStyle" />

 

 

 

 

 

<Columns>

 

 

 

 

 

<telerik:GridBoundColumn UniqueName="StepGuid" DataField="StepGuid" HeaderText="StepGuid"

 

 

 

 

 

Visible="false" />

 

 

 

 

 

<telerik:GridClientSelectColumn ButtonType="ImageButton" UniqueName="SelectedCheckbox" />

 

 

 

 

 

<telerik:GridBoundColumn DataField="Name" HeaderText="Name" />

 

 

 

 

 

<telerik:GridBoundColumn DataField="Command" HeaderText="Command" />

 

 

 

 

 

<telerik:GridBoundColumn DataField="ServerArguments" HeaderText="Server Arguments" />

 

 

 

 

 

<telerik:GridBoundColumn DataField="WorkingDirectory" HeaderText="Working Directory" />

 

 

 

 

 

<telerik:GridBoundColumn DataField="CreateTime" HeaderText="CreateTime" ReadOnly="true" />

 

 

 

 

 

</Columns>

 

 

 

 

 

<EditFormSettings>

 

 

 

 

 

<EditColumn UniqueName="Edit1">

 

 

 

 

 

</EditColumn>

 

 

 

 

 

</EditFormSettings>

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

</telerik:RadGrid>

 

 

 

Code behind:

protected

 

void StepsGrid_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)

 

{

 

// get the package guid for the current iteration

 

 

if (e.Item is GridDataItem)

 

{

 

DataRowView dataRow = (DataRowView)e.Item.DataItem;

 

 

GridDataItem item = (GridDataItem)e.Item;

 

 

CheckBox checkBox = (CheckBox)item["SelectedCheckbox"].Controls[0];

 

checkBox.Checked = (((

int)dataRow["Selected"]) == 1);

 

 

if (checkBox.Checked)

 

{

 

string t = "";

 

}

}

}

 

protected void StepsGrid_ItemCreated(object sender, GridItemEventArgs e)

 

{

 

// get the package guid for the current iteration

 

 

if (e.Item is GridDataItem)

 

{

 

DataRowView dataRow = (DataRowView)e.Item.DataItem;

 

 

GridDataItem item = (GridDataItem)e.Item;

 

 

CheckBox checkBox = (CheckBox)item["SelectedCheckbox"].Controls[0];

 

checkBox.Checked = (((

int)dataRow["Selected"]) == 1);

 

 

if (checkBox.Checked)

 

{

 

string t = "";

 

}

}

Joey
Top achievements
Rank 1
 answered on 19 Jun 2009
1 answer
52 views
how can i not display the add and delete buttons for adding or deleting additional file input fields?
Shinu
Top achievements
Rank 2
 answered on 19 Jun 2009
1 answer
117 views
How to apply a skin to a Combobox? Somehow I can't get it done.

Thanks.


Shinu
Top achievements
Rank 2
 answered on 19 Jun 2009
1 answer
129 views
I have a form with a lot of textarea controls. Because of the space constraints we have limited the size of the textareas.  I was thinking of having a button next to the textarea which would show the a pop-up window with a singe text field to make it easy for the user to view/edit the data. Note that the data will be passed from the parent window to the pop-up window and vice-versa.

I would like to use the RadWindow to show the pop up. Is this possible.

Thanks




Princy
Top achievements
Rank 2
 answered on 19 Jun 2009
3 answers
139 views
I have Item Drag and Drop workng for row reorder.  I also need to make a commandItem that can reorder rows (up arrow button and down arrow button).  How can I do this.
Princy
Top achievements
Rank 2
 answered on 19 Jun 2009
1 answer
119 views
Hi All,
              I am using RadAjaxLaodingPanel for loading the RadGrid. I am using the image for loading. This image should come on the center of the Grid. But it is always coming on the top of the Grid. Can any one pls let me know how i can postion the image so that when clicked on the expand collapse button it should come on the center of the Grid.
          
  <telerik:RadAjaxLoadingPanel id="RadAjaxLoadingPanelGrid" Runat="server" EnableSkinTransparency="true"  Transparency="10"  BackgroundPosition="Center"  > 
                                                                                        <div> 
                                                                                        <asp:Image id="Image2" runat="server" ImageUrl="~/Images/Web20.gif" /> 
                                                                                        </div> 
                                                                                    </telerik:RadAjaxLoadingPanel> 


Pls let me know, as it s very urgent.

Regards
Asra.
Shinu
Top achievements
Rank 2
 answered on 19 Jun 2009
3 answers
132 views
Hi,

I am creating a menu all in the client side. Is there a way to add a custom class style to certain RadMenuItems? There may be a way to do it without worrying about adding a class name to the RadMenuItem.

What I want is the first layer to appear with a custom class style (different bgColor), while the sub-menus use the normal styles. It is a breadcrumb menu, the first layer is horizontal and for each breadcrumb there is a menu which lists all options for the next level. It looks a bit like the following:

test 1 > test 2 > test 3
menu test 1 1
menu test 1 2
menu test 1 3

Then each test item has a menu. I want that the test items have a different bg color than the menus, which will use one of the default styles (outlook in my case).

Thanks,
Eduardo
Eduardo
Top achievements
Rank 1
 answered on 18 Jun 2009
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?