Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 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
166 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
152 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
98 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
168 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
114 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
1 answer
92 views
I searched the forum but couldn't find an answer. There is answer to get the COUNT of the filtered row but not the data. Could anyone help? I need to do some processing at the server on the filtered rows. Thanks a lot!
Princy
Top achievements
Rank 2
 answered on 21 Apr 2011
1 answer
45 views
Does there exist a source solution that shows by example the use of the RADGrid (AJAX) using a web service (preferably with the passing a parameter)?
Shinu
Top achievements
Rank 2
 answered on 21 Apr 2011
1 answer
393 views
I would like to know how I can check (via JavaScript) if a given combobox is enabled or not.  I see how to enable or disable it, but not how to check the status.
Shinu
Top achievements
Rank 2
 answered on 21 Apr 2011
1 answer
361 views
Hi,

I call a RadConfirm box from a JavaScript function like:

$get("<%=btnNoVr.ClientID%>").onclick = function()
                {
                    CallRadConfirm(stat, id,  'Can you Confirm?');
                };


function CallRadConfirm(status, ID, message)
    {  
        radconfirm(rmessage, confirmCallBackFn, 350, 10, '', 'Confirm');
        
        function confirmCallBackFn(arg)
        {
            if(arg == true)
            {
                $get("<%=hfIsNoVR.ClientID%>").value = "Y";
                if (status == "true")
                {
                    return true;
                }
                else
                {
                    window.location.href = '/_layouts/test/test.aspx?ID=' + ID + '&PageFrom=Select&Action=NO';
                    window.event.returnValue=false;
                }
            }
        }      
    }

here i get the Confirmation box but postback happens immediatelly before i chose ok or cancel.
How do i stop that?

Thanks,
Varun R
Shinu
Top achievements
Rank 2
 answered on 21 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?