Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
178 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
172 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
115 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
184 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
124 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
98 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
53 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
415 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
370 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
2 answers
148 views
I am building a treeview control which has X number of root nodes (from a database), each of which contain two static nodes which themselves contain Y number of dynamic nodes. Something like this:

  • Root Node #1 (database-driven)
    • Child Node #1 (static)
      • Sub Node #1 (database)
      • Sub Node #2
    • Child Node #2 (static)
      • Sub Node #3 (database)
  • Root Node #2
    • Child Node #3 (static)
      • Sub Node #4 (database)

I have implemented loading on demand for items at the "Child Node" level so it would automatically pull the sub-items when that node is expanded (using ServerSideCallBack) which works great. I have also implemented a context menu for each "Child Node" entry that has an "Add Category" option which adds a new item (at the Sub Node level) so a new entry can be added. This entire process works great and is surprisingly versatile.

The only issue I have is when the new item is added I want all the "Sub Node" entries for the parent "Child Node" item to be re-bound so the items appear in alphabetical order. I tried using the set_expanded() methods but it seems once a node has been expanded the items are cached and there isn't a way to forcefully tell it to go get the items again. Basically I'm looking for a client-side method call that tells the "Child Node" entry that it needs to go get a fresh copy of items once the adding process is complete.

Any idea on how to make this happen?

digitall
Top achievements
Rank 1
 answered on 21 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?