Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
80 views
hi
can i  dont show filtering  for some columns?
Shinu
Top achievements
Rank 2
 answered on 13 Sep 2010
5 answers
267 views
i am  facing some problem to get the updated value.
Like , i have rad grid and editing this grid with Popup option.
the edit popup is coming. But in the updated event i am still getting the old value , not the updated one.
 
The code as belows... 
 
.... ASPX page code

</

 

telerik:RadCodeBlock>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None"

 

 

AllowPaging="True" PageSize="20" AllowSorting="True" AutoGenerateColumns="False"

 

 

ShowStatusBar="true" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"

 

 

AllowAutomaticUpdates="True" HorizontalAlign="NotSet" AllowMultiRowEdit="False" OnUpdateCommand="RadGrid1_ItemUpdated"

 

 

OnItemCommand="RadGrid1_ItemCommand"

 

>

 

 

 

<MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="ActionID" EditMode="PopUp">

 

 

<Columns>

 

 

<telerik:GridEditCommandColumn>

 

 

</telerik:GridEditCommandColumn>

 

 

<telerik:GridBoundColumn UniqueName="Action_Type_Name" HeaderText="Action" DataField="Action_Type_Name">

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="ValidFrom" HeaderText="ValidFrom" DataField="ValidFrom">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn UniqueName="ValidTo" HeaderText="ValidTo" DataField="ValidTo">

 

 

</telerik:GridBoundColumn>

 

 

 

</Columns>

 

 

 

<EditFormSettings InsertCaption="Add new item" EditFormType="Template">

 

 

<FormTemplate>

 

 

<table id="Table1" cellspacing="1" cellpadding="1" width="250" border="0">

 

 

<tr>

 

 

<td>

 

 

</td>

 

 

<td>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Action:

 

</td>

 

 

<td>

 

 

<asp:TextBox ID="TextBoxAction" Text='<%# Bind( "Action_Type_Name") %>' runat="server">

 

 

</asp:TextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Valid From:

 

</td>

 

 

<td>

 

 

<asp:TextBox ID="TextBoxValidForm" Text='<%# Bind( "ValidFrom") %>' runat="server">

 

 

</asp:TextBox>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Valid To:

 

</td>

 

 

<td>

 

 

<asp:TextBox ID="TextBoxValidTo" Text='<%# Bind( "ValidTo") %>' runat="server">

 

 

</asp:TextBox>

 

 

</td>

 

 

</tr>

 

 

 

</table>

 

 

 

<table style="width: 100%">

 

 

<tr>

 

 

<td align="right" colspan="2">

 

 

<asp:Button ID="Button1" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'

 

 

runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>

 

 

</asp:Button>&nbsp;

 

 

<asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel">

 

 

</asp:Button>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</FormTemplate>

 

 

</EditFormSettings>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<ClientEvents OnRowDblClick="RowDblClick" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

 

CS file code....

 

 

 

 

 

 

 

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

if (e.CommandName == RadGrid.UpdateCommandName)

 

{

 

//GridEditFormItem editItem = (GridEditFormItem)(e.Item as GridDataItem).EditFormItem;

 

 

//TextBox txtFirstName = (TextBox)editItem.FindControl("TextBoxAction"); //access TextBox

 

 

 

GridEditableItem editedItem = e.Item as GridEditableItem;

 

 

string abc = (editedItem.FindControl("TextBoxAction") as TextBox).Text;  ---- but , if i change the action value ...  still i am

 

}

}

 

 

 

Thanks ....

 

 

 

Regards
Mainak
Pavlina
Telerik team
 answered on 13 Sep 2010
5 answers
240 views
Hi..
I have a radcombox box in an ajax panel..
The Causesvalidation does not fire unless I set AutoPostBack to true.
Is this correct....?
I need to validation to fire but I don't want to post back.
thanks again
Kalina
Telerik team
 answered on 13 Sep 2010
3 answers
195 views
I have the following grid setup:

<telerik:RadGrid runat="server" ID="grMembers" OnNeedDataSource="grMembers_NeedDataSource" AutoGenerateColumns="false" ShowFooter="false" OnItemDataBound="grMembers_ItemDataBound" OnItemCommand="grMembers_ItemCommand" OnDataBound="grMembers_DataBound">
    <MasterTableView DataKeyNames="Id" CommandItemDisplay="Top" CommandItemStyle-Height="30px" ItemStyle-VerticalAlign="Top" AlternatingItemStyle-VerticalAlign="Top" HierarchyDefaultExpanded="false" HierarchyLoadMode="Client" AllowFilteringByColumn="true">
        <CommandItemTemplate>
            <asp:Button runat="server" ID="cmAddItem" CssClass="rgAdd" style="margin-left: 10px;" /><asp:HyperLink runat="server" ID="lkAddItem" Text="Add Member" NavigateUrl="javascript:;" />
        </CommandItemTemplate>
        <Columns>
            <telerik:GridTemplateColumn ItemStyle-Width="20px" ItemStyle-Wrap="false" AllowFiltering="false">
                <ItemTemplate>
                    <asp:Button runat="server" ID="cmEdit" Text="Edit" CssClass="rgEdit" CommandName="Edit" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Detail" DataField="Detail" ItemStyle-Width="150px" FilterControlWidth="100px">
                <ItemTemplate>
                    <%-- Layout --%>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Contact" DataField="Contact" ItemStyle-Width="150px">
                <ItemTemplate>
                    <%-- Layout --%>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridDateTimeColumn HeaderText="Join Date" DataField="SignupDate" ItemStyle-Width="125px" />
            <telerik:GridTemplateColumn HeaderText="Paid" DataField="Paid" ItemStyle-Width="50px">
                <ItemTemplate>
                    <asp:Image runat="server" ImageUrl='<%#(Convert.ToBoolean(Eval("Paid").ToString())) ? "~/_assets/images/accept.png" : "~/_assets/images/cancel.png" %>' />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn HeaderText="Seller #" DataField="SellerNumber" ItemStyle-Width="100px" />
            <telerik:GridButtonColumn ButtonType="ImageButton" HeaderStyle-Width="20px" ItemStyle-Width="20px" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Are you sure you wish to remove this item?" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Everything on the grid works great (including filtering), however in FF3 the filtering icons look like the attached image and in IE it's even worse. Any ideas? I tried using FilterControlWidth but it doesn't seem to make any difference at all. I also made the column widths larger and smaller and it still does the exact same thing, no matter the width of the column.
Dimo
Telerik team
 answered on 13 Sep 2010
2 answers
75 views
hi

I would like to show both edit and delete link or image on the scheduler. It would that the same as radgrid

I want user to click the edit or delete link to edit or delete an appointment. How should i go about it? Thanks
L
Top achievements
Rank 1
 answered on 13 Sep 2010
1 answer
89 views
HI Telerik Team,

I have been using  Telerik grid, but facing follwing issues.

(1)Telerik grid with skin is outlook with Static Headers is false, then the skin look is ok,but in some cells where data is not coming, in those positions cells does not getting any borders.

(2)If telerik grid with skin is outlook and static headers is true, then the skin is getting disappering and white background is coming to grid, and when i am scrolling grid with frozen columns gird is flickering when scrolling

(3)If telerik grid with static headers is true, then the textbox which is avilabe in grid filtering item autofill values are hiding behind the grid. Grid is overlapping the auto fill values of textbox.

So please provide me the solution for the above issues.

Thanks in advance.






Dimo
Telerik team
 answered on 13 Sep 2010
5 answers
164 views
hi

I came across the demo http://demos.telerik.com/aspnet-ajax/scheduler/examples/timelineview/defaultcs.aspx where the date header height is nicely done.

I tried it on the RowHeight="100px" and it seems that the date header height expanded accordingly.

How do i it? thanks
Veronica
Telerik team
 answered on 13 Sep 2010
5 answers
251 views
How can I disable all dates from being edited or having appointments inserted into that are earlier than the current date?  I've seen some suggestion of intercepting the insert / update events and checking condition, then setting event to cancel. 

Not sure if this route is the only solution, but seems like letting the user attempt to insert or update a record, only to cancel the event after the fact is not as desirable than just disabling the edit functionality all together.

Thanks-
Veronica
Telerik team
 answered on 13 Sep 2010
2 answers
220 views
Hi,
      
When I apply the frozen column for Master table, scrollbar is not displaying for details table.

How I display scroll bar for details table inside the master table?

Regards,
Rajesh
Sebastian
Telerik team
 answered on 13 Sep 2010
3 answers
210 views
I have a couple of questions regarding the frozen column feature of the RadGrid.

Are frozen columns and resizeable columns supported at the same time? I noticed that when I have both on at the same time, I am able to hide columns by resizing a few of the columns and then scrolling.

I was also wondering if it is possible to have columns with different widths while frozen columns. In my grid I would like to have the first two columns be 200px and then all of the columns after that be 50px. I tried setting this in the OnColumnCreated function, but when I set the widths, my first columns weren't frozen anymore.

Thanks
Pavlina
Telerik team
 answered on 13 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?