Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
98 views
Hi,

I have a rad grid that is using EditFormSettings with a FormTemplate and in Popup mode.  It is displaying a couple of items in the popup for editing purposes that are not already displayed in the grid.  When a user is typing in information into these areas, I want to inform the user of any HTML tags they may mistakenly enter. 

As it stands now, in testing, when HTML tags are entered into one of the text boxes and save is clicked, the form just brings back what was on the screen  at submission and I record a HttpRequestValidationException in my event log.  Clicking on the cancel button also exhibits this behavior as it also performs a postback and will not let me cancel the edit without removing the offensive tags.

When I debug the page through Visual Studio, I get this error message from the ScriptResource.axd: "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500".

I cannot turn off page validation.  Not an option.  What I need is some way to display a message to the user that the data they have entered is incorrect and that they need to correct it to continue.

Thanks.
Pavlina
Telerik team
 answered on 21 Apr 2011
5 answers
339 views
i am displaying data inside the telerik grid using sqldatasource which has a select command to join data from 2 tables

now, in that grid i want to have a button, when clicked will add the corresponding row to ANOTHER table alongwith data from a text box (textbox appearing inside the grid row where the button was clicked)

im stuck and need help



<telerik:RadGrid ID="radgridLukkheUsers" runat="server" DataSourceID="lukkheusers"
    GridLines="None" AutoGenerateColumns="False">
    <MasterTableView DataSourceID="lukkheusers">
        <Columns>
            <telerik:GridBoundColumn DataField="displayname" HeaderText="User" SortExpression="displayname"
                UniqueName="displayname">
            </telerik:GridBoundColumn>
             
            <telerik:GridButtonColumn ButtonType="PushButton" Text="Add" CommandName="Add">
            </telerik:GridButtonColumn>
              
        </Columns>
    </MasterTableView>
     
</telerik:RadGrid>
prashant kamdar
Top achievements
Rank 1
 answered on 21 Apr 2011
1 answer
26 views
Hello, 

I found I quit interesting stuff with the grid... let me explain you. :)
I have a grid, with the culture="fr-FR". In the same grid, I have a date.
When I filter this column, I right click on the header and I select "Filtrer" than "Plus petit que". Here, I select my date, let's say First of april : 01/04/2011 in french culture. After this I click "Filtrer" and every thing is working.

But, when I go back to this filter, the date have changed to 04/01/2011... Not the french culture...

I found this interesting :p


In the same post I have 2 questions...
Is it possible to arrive on 'Contains' when we want to filter?
Is it possible to press Enter to apply a filter?


Thanks a lot

Jean-Yves
Martin
Telerik team
 answered on 21 Apr 2011
1 answer
63 views
I'd like to broaden this question, but the forum doesn't allow me to change the title, so I'm putting up a new posting instead here:  http://www.telerik.com/community/forums/aspnet-ajax/grid/cleanest-way-to-bind-non-datatable-source-to-dropdownlist-in-code-behind.aspx


FYI, Below is my original question, which I'm still curious about, but what I really need to do is answer the broader question in the other post.

I have a couple of fields in my ViewModel that are integer representations of the Ids of a field whose name should be displayed to the user.  I would like to have a GridBoundColumn to represent them in my RadGrid's view mode, but for that to work, I need there to be an intermediary class that does a conversion from the integer underlying value to the text value the user needs to see.  Is there any provision for this with RadGrid, or if not, then what is the recommended practice for such a case?

Thanks!
Marin
Telerik team
 answered on 21 Apr 2011
1 answer
95 views

Consider the following example:

The scheduler has a recurring appointment over three days with the following duration:
  09.00-10.00 wednesday
  09.00-10.00 thursday
  09.00-10.00 friday

How do I deny the creation of an earlier second recurring appointment? Like the one below:
  09.00-10.00 monday
  09.00-10.00 tuesday
  09.00-10.00 wednesday (conflict not trapped)

The example provided by Telerik, "ConflictsWithOccurrences", doesn't seem to handle this particular situation.
However, the following recurring appointment is trapped as expected:
  09.00-10.00 friday (conflict trapped)
  09.00-10.00 saturday
  09.00-10.00 sunday

 

 Has anyone done this?

Henric
Top achievements
Rank 1
 answered on 21 Apr 2011
3 answers
151 views
My goal is to have a sort of "source code viewer" control. I imagine it would be something like a rad panel. The panel must have hyperlink-able numbers down the left side (ie source line numbers, like lxr or opengrok).

I was hoping something would already exist but have not found much yet. I did find this project below from 2009 but it is out of date and looks to be not maintained. Plus i have a rad dev account so i'd rather use rad controls. Is something like the project i pointed out possible and how would i get started..any samples would be great. (i dont need a directory explorer part (ie tree control)), just some type of panel with source line numbers down the left and some nice CSS would be nice.

sample
http://sourceforge.net/projects/scv/


any ideas or help would be great.

thanks
jason
Sebastian
Telerik team
 answered on 21 Apr 2011
6 answers
142 views
Hey guys, I have a page with a radgrid setup with one detail table under my mastertableview and two detail tables under the first detail table. If there is no data in either of the second level of detail tables there will be a gridbutton column visible to add new data. If we add or edit that data, the adjacent detailtable row loses its datasource and we no longer see the column. How can i prevent this?

Here is how my grid is setup:

<telerik:RadGrid runat="server" ID="rgReportGrid" AutoGenerateColumns="False" 
            BorderColor="Navy" BorderWidth="2px" GridLines="None" AllowSorting="true" Width="100%">
            <MasterTableView DataKeyNames="BASE_ISSUE_ID" AutoGenerateColumns="false" CommandItemDisplay="Top">
                <CommandItemSettings ShowRefreshButton="false" AddNewRecordText="Add New Base Issue" />
                  
                <DetailTables>
                    <telerik:GridTableView Name="ChildDescription" DataKeyNames="ISSUE_ID, ISSUE_NUMBER" Width="100%">
                          
                        <DetailTables>
                            <telerik:GridTableView Name="CDNData" DataKeyNames="ID, BASE_ISSUE_NUM, LIST_ID" Width="100%">
                                  
                                <Columns>                                    
                                    <telerik:GridButtonColumn ButtonType="LinkButton" HeaderText="Add New Issue" Text="Add Issue" UniqueName="AddCDNIssue" Visible="false" 
                                        CommandName="AddNewIssue" CommandArgument="CDN">
                                    </telerik:GridButtonColumn>
                                    <telerik:GridEditCommandColumn HeaderText="Edit" UniqueName="EditCommandColumn" Visible="true">
                                    </telerik:GridEditCommandColumn>
                                    <telerik:GridButtonColumn ButtonType="LinkButton" HeaderText="Delete" UniqueName="DeleteCommandColumn" CommandName="DeleteSelectedSub" Text="Delete"
                                        ConfirmDialogType="Classic" ConfirmText="Delete Selected Known Issue?">
                                    </telerik:GridButtonColumn>
                                    <telerik:GridBoundColumn HeaderText="Affects CDN" DataField="CDN">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Identified In Version" DataField="IDENTIFIED_IN_VERSION">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Date Published" DataField="PUBLISHED_DT">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Category" DataField="CATEGORY">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="PR #" DataField="PR">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="EMS #" DataField="EMS">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Fixed Status" DataField="FIXED_STATUS">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Fixed Date" DataField="FIXED_DATE">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Ending Build" DataField="ENDING_BUILD">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Issue ID" DataField="ID"  Visible="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridboundColumn HeaderText="Base Issue ID" DataField="BASE_ISSUE_NUM" Visible="false">
                                    </telerik:GridboundColumn>
                                    <telerik:GridBoundColumn HeaderText="List ID" DataField="LIST_ID" Visible="false">
                                    </telerik:GridBoundColumn>
                                </Columns>
                                  
                                <EditFormSettings UserControlName="Known_Issue.ascx" EditFormType="WebUserControl">
                                </EditFormSettings>
                            </telerik:GridTableView>
                            <telerik:GridTableView Name="USAData" DataKeyNames="ID, BASE_ISSUE_NUM, LIST_ID" Width="100%">
                                  
                                <Columns>
                                    <telerik:GridButtonColumn ButtonType="LinkButton" HeaderText="Add New Issue" Text="Add Issue" UniqueName="AddUSAIssue" Visible="false"
                                        CommandName="AddNewIssue" CommandArgument="USA">
                                    </telerik:GridButtonColumn>
                                    <telerik:GridEditCommandColumn HeaderText="Edit" UniqueName="EditCommandColumn" Visible="true">
                                    </telerik:GridEditCommandColumn>
                                    <telerik:GridButtonColumn ButtonType="LinkButton" HeaderText="Delete" UniqueName="DeleteCommandColumn" CommandName="DeleteSelectedSub" Text="Delete"
                                        ConfirmDialogType="Classic" ConfirmText="Delete Selected Known Issue?">
                                    </telerik:GridButtonColumn>
                                    <telerik:GridBoundColumn HeaderText="Affects USA" DataField="USA">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Identified In Version" DataField="IDENTIFIED_IN_VERSION">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Date Published" DataField="PUBLISHED_DT">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Category" DataField="CATEGORY">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="PR #" DataField="PR">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="EMS #" DataField="EMS">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Fixed Status" DataField="FIXED_STATUS">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Fixed Date" DataField="FIXED_DATE">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Ending Build" DataField="ENDING_BUILD">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn HeaderText="Issue ID" DataField="ID" Visible="false">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridboundColumn HeaderText="Base Issue ID" DataField="BASE_ISSUE_NUM" Visible="false">
                                    </telerik:GridboundColumn>
                                    <telerik:GridBoundColumn HeaderText="List ID" DataField="LIST_ID" Visible="false">
                                    </telerik:GridBoundColumn>
                                </Columns>
                                  
                                <EditFormSettings UserControlName="Known_Issue.ascx" EditFormType="WebUserControl" >
                                </EditFormSettings>
                            </telerik:GridTableView>
                        </DetailTables>
                          
                        <Columns>
                            <telerik:GridBoundColumn HeaderText="Description" DataField="DESCRIPTION">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn HeaderText="Work Around" DataField="WORK_AROUND">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn HeaderText="Work Around Description" DataField="WORK_AROUND_DESCRIPTION">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn HeaderText="Issue ID" DataField="ISSUE_ID" Visible="False">
                            </telerik:GridBoundColumn>
                        </Columns>
                    </telerik:GridTableView>
                </DetailTables>            
              
                <Columns>
                    <telerik:GridEditCommandColumn HeaderText="Edit" UniqueName="EditCommandColumn">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn ButtonType="LinkButton" HeaderText="Delete" UniqueName="DeleteCommandColumn" CommandName="DeleteSelected" Text="Delete"
                        ConfirmDialogType="Classic" ConfirmText="Delete Selected Known Issue Base?">
                    </telerik:GridButtonColumn>
                    <telerik:GridBoundColumn HeaderText="Issue Number" DataField="BASE_ISSUE_NUM">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Title" DataField="TITLE">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Internal Status" DataField="INTERNAL_STATUS">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Internal Status Comments" DataField="INTERNAL_STATUS_COMMENT">
                    </telerik:GridBoundColumn>                   
                    <telerik:GridBoundColumn HeaderText="Severity" DataField="SEVERITY">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Affects CDN" DataField="CDN">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Affects USA" DataField="USA">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Issue ID" DataField="BASE_ISSUE_ID" Visible="false">
                    </telerik:GridBoundColumn>
                </Columns>
                  
                <EditFormSettings UserControlName="Known_Issue_Base.ascx" EditFormType="WebUserControl">
                </EditFormSettings>
            </MasterTableView>
        </telerik:RadGrid>
Veli
Telerik team
 answered on 21 Apr 2011
2 answers
83 views
Hi everybody,

i have a complex scenario webapge:
A MasterPage where the RadWindowManager is declared, a default webpage where content is loaded and the content pages.
I am working with RadAjaxPanels to ajaxifiy the whole thing. I have some trouble with changing the Windows-Collection of RadWindowmanager in codebehind of the contentpage (wrapped by an Radajaxpanel). The RadWindowManager (at masterPage, no radajaxpanel) is not updated after i add a window from codebehind/contentpage.

A similar Problem is described in the following article :
"RadWindow inside a RadAjaxPanel"

I understand that the problem is because there is no PostBack and the RadWindowManager is not inside the ajaxpanel
but all the hints and solutions are going for the RadAjaxManager and not for the panels.

Basically my question is: How to update RadWindowManager declared on masterpage from an contentpage wrapped by an RadAjaxpanel
 

Philipp
Top achievements
Rank 1
 answered on 21 Apr 2011
3 answers
151 views
I have a grid and I'm using the grid's FormTemplate to edit and insert records into the SQL database.
<EditFormSettings EditFormType="Template">
     <FormTemplate>
          .....
     </FormTemplate>
</EditFormSettings>

In this project that I'm working on I want to be able to select a record, take that data and populate the form WITHOUT adding the record first. Here is the button in the grid:
<telerik:GridButtonColumn 
     ButtonType="ImageButton" 
     CommandName="CopyPaste" 
     ConfirmDialogType="RadWindow" 
     ConfirmText="Copy information?" 
     ConfirmTitle="Copy" 
     ImageUrl="/Images/SmallRecycle.png"
     Text="Copy" 
     UniqueName="CopyColumn"/>

I can easily duplicate the record in the database, but the idea is that someone enters information and the next bit of information is the same with the exception of the person tied to the record. I don't want them to have to retype the information and I don't want to write a new record and have them edit it.

Does this make sense? I'm really stuck on expanding the grid's form and filling the fields.
Princy
Top achievements
Rank 2
 answered on 21 Apr 2011
2 answers
104 views
I am Binding Rad Grid.
And i am using Radcontext Menu.
Now i Want to retrive the ID of Selected Row.

How to do it. ?
Dhruval Dave
Top achievements
Rank 1
 answered on 21 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?