Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
116 views
I am prototyping a new project where users will navigate a dynamically generated list of hierarchically nested assets (bound to a RadTreeView). I want the users to be able to drill down into the tree to the actual asset item in the list. On clicking the asset item:

1. I want to reload the page using the ID VALUE (not the text displayed) of the item clicked. This will load all sorts of unique info for that item. I was going to simply use querystring variables so the users can bookmark their searches. I'd like to grab the selected ID, put it in querystring, and reload the page. What's the best practice for having an ID VALUE attached to a node (in XML)? What is the best way to access it in C#?

2. I also want to persist on refresh what the user clicked, so it the selected item is active (because navigating thousands of items all over again isn't acceptable). We're dealing with a nationwide list of assets.

3. I DON'T want anything to cause a postback except the final child element in the hierarchy. How do I control what causes postback and what doesn't in a dynamically generated RadTreeView list of items?

Please provide sample code if you can. NOTE: For the prototype, I've already connected to an XML file using the .LoadContentFile() method. I'm using dummy data to get started.

Thanks much for your assistance!
A
Alex
Top achievements
Rank 1
 answered on 10 Feb 2012
2 answers
162 views
Hi,

Preamble:
I've managed to successfully wire up a radgrid with an external edit form by working from the demo here:
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx?product=grid 

Concerns:
However, to create the "Add New Record" and "Refresh" buttons, similar to other Edit Modes, I've had to use the CommandItemTemplate. 
I used a number of other RadGrids in my application, but most of them either use inline or popup edit modes... and these buttons are generated automatically. 

I have the following complaints with the CommandItemTemplate approach:
1. The text labels generated by the demo do not align with the automatically generated labels for other grids. This makes all of my Grids with CommandItemTemplate controls to "look funny". I can tweak them with CSS, but this is time consuming and difficult to maintain.

2. I have to use my own copies of the RadGrid images for the buttons to make them visually consistent with all of the other RadGrids with automatically generated Command buttons.

3. Due to the complications of the above two complaints, it becomes extremely difficult to apply new skins without also involving a significant amount of editing, tweaking, and rework to maintain consistent visual style across all RadGrids in my application.

Question:
Is there any way to wire up an external edit form without using the CommandItemTemplate to create insert and refresh buttons?

All I really need is to wire the OnClick event of the generated "Add New Record" to my custom RadGrid_OnInsertCommand() event without it trying to create an in-grid edit form or a popup edit form. All of the rest of the wireup already works (i.e. the submit button on the external edit form).

Dave
Top achievements
Rank 1
 answered on 10 Feb 2012
2 answers
84 views
I would like to know how to hide and show the next and previous arrows in the navigation pane based on requirements. My requirement is a customer can only look at the scheduler for previous month, current month and next month. So if they are in next month view them i should disable to hide the next month arrow in the navigation pane and if they are in previous month view i should hide or disable the previous month arrow in the navigation pane. I searched around but couldn't find a solution for this problem anywhere.
Mona
Top achievements
Rank 1
 answered on 10 Feb 2012
1 answer
240 views
Hi Telerik Team,

I am using the Rad Split bar in my application, as follows:

<div style="width: 700px; height: 500px; border: 2px solid orange;">
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="100%" Width="100%">
            <telerik:RadPane runat="server" ID="RadPane1" Width="30%">
                Left Pane
            </telerik:RadPane>
           
<telerik:RadSplitBar runat="server" ID="RadSplitbar1" CollapseMode="Both" CollapseExpandPaneText="Click Here To Collapse/Expand" >
            </telerik:RadSplitBar>

           
<telerik:RadPane runat="server" ID="Radpane2" Width="70%">
                Right Pane
            </telerik:RadPane>
        </telerik:RadSplitter>
    </div>


Now my requirement is to put some text on the radSplit Bar vertically so that it will be help for the user,
for example "Click here Collapse/Expand".
I have referred the following link for help:
http://www.telerik.com/community/forums/aspnet-ajax/splitter/customized-radsplitbar.aspx 
but i was not help full to me
Please help me in doing this.

Thanks & Regards
N Aravinda Chary.







Niko
Telerik team
 answered on 10 Feb 2012
11 answers
174 views
Hi All,

So am I missing a trick somewhere.

At the moment the main skin that I use is Office2010Blue.  When using RadDock the background is mediumish blue but I want it to be white.  I can change the content cell css to white but the surrounding cells stay as blue.  I can understand this when using rounded corners as the image padding is needed but when not using rounded corners there is no need to provide the image.

Is there a work around for this?

Regards,

Jon
Slav
Telerik team
 answered on 10 Feb 2012
2 answers
110 views
I have Q1 2009 version currently problem is that In my application I am using multicolum, load on demand and filtering functionality in rad combobox now Microsoft lunched IE 9 and combobox is not working when I clicked on comparability mode its work but my page themes will distrube I want to fix radcombo box kindly help me thanks.

<telerik:RadComboBox ID="ddlProject" runat="server" Height="190px" Skin="Outlook"
                    DataValueField="Project_ID" AutoPostBack="true" Width="500px" AllowCustomText="True"
                    ShowToggleImage="True" EmptyMessage="Choose Project Name" ShowMoreResultsBox="true"
                    EnableLoadOnDemand="True" MarkFirstMatch="True" HighlightTemplatedItems="true"
                    OnItemsRequested="ddlProject_ItemsRequested" EnableVirtualScrolling="true">
                    <HeaderTemplate>
                        <table class="style1">
                            <tr>
                                <td width="50%">
                                    Customer Name
                                </td>
                                <td width="30%">
                                    Project Name
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table class="style1">
                            <tr>
                                <td width="50%">
                                    <%# DataBinder.Eval(Container.DataItem, "ModelCustomer.Customer_Name")%>
                                </td>
                                <td width="30%">
                                    <%# DataBinder.Eval(Container.DataItem, "Project_Name") %>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </telerik:RadComboBox>
Rebecca Campbell
Top achievements
Rank 1
 answered on 10 Feb 2012
1 answer
53 views
Hello, Telerik Team.

I have been developing a web application in the following environment:
- Windows XP Professional Version 2002 Service Pack 3
- Microsoft .Net Framework Version 4.0.30319 RTMRel
- Visual Studio 2010 Version 10.0.30319.1 RTMRel
- RadControls for ASP.NET AJAX Q2 2011 SP1

While testing the application, launched from Visual Studio, no errors are reported.
After deploying the application to my local IIS, no errors are reported as well.
However, after deploying the application to IIS in a computer running Windows Server 2003 R2 Standard Edition Service Pack 2, the attached error message is displayed when one of the aspx pages is launched.

Using remote debugging, I have added a breakpoint at the very beginning of each method implemented on the server side of the page that crashes. Without any exception, all of them are executed without errors.
The last method successfully executed before the application crashes is the following:
protected void RadScheduler1_ResourcesPopulating(object sender, ResourcesPopulatingEventArgs e)
// Description: this methods initializes the extended properties of the scheduling information.
{
    String aux = System.Web.HttpContext.Current.Session["ClubId"].ToString();
    Int16 clubId = Convert.ToInt16(aux);
  
    e.SchedulerInfo = new SchedulerInfoExt(e.SchedulerInfo, clubId, System.Web.HttpContext.Current.Session["ResourceType"].ToString());
}

On the client side of the page that crashes, "debugging" has been added at the very beginning of all JavaScript functions. None of the breakpoints are reached.

Based on the error message, would it be possible to identify why the application crashes?
Are there methods I should create on the server side that could identify the problem?
Are there functions I should create on the client side that could identify the problem?

Thank you in advance.
Paulo
Plamen
Telerik team
 answered on 10 Feb 2012
2 answers
115 views
I've been searching and experimenting for a long time but cannot figure this one out. I have a modal RadWindow popup on my page. I have a javascript function to set the size of the window that I call in the onload event of the body of my popup (<body onload="ResizeRadWindow();"). That works great.

I also have a RadComboBox on the page and a Label below that combo. These controls are both included in a RadAjaxManager such that when the SelectedIndexChanged event of the combo fires it will update the text within the label below it. Sometimes the text in this label will be long and shift the rest of the controls on the popup page down and cause the popup to display scrollbars. This is my problem. I already have this wonderful ResizeRadWindow javascript function that I would love to call AFTER the controls on the popup page have shifted down but I cannot figure out how to do it at the right time.

I have tried using a Literal control on the page and setting the text of that control to "ResizeRadWindow();" within the SelectedIndexChanged event of the combo (where I set the text of the label) but the size of the page hasn't changed at that point yet so nothing appears to happen.

Any suggestions would be great!

Thanks,
Dan
Daniel
Top achievements
Rank 1
 answered on 10 Feb 2012
1 answer
73 views
Hello,

I am using radrotator having xml datasource to load thumb images in ratator also rotator is having scroll using javascript which rotates thumb images horizontally when I click on scroll button and then click on image in rotator its original image get visible on top of this rotator but the problem is thumb rotator starts again from first image. Even I used the rad ajax panel for this but the problem is same.

Can someone help me how to stop this reloading of radrotator it should show the clicked image.
Slav
Telerik team
 answered on 10 Feb 2012
2 answers
137 views

My requirements are as follows:

A grid with inline add capability.
A column with delete capability.
No edit capability. In line or otherwise.

My problem is twofold. One it seems the only way to get the Insert/Cancel buttons to show up on inline add is to have an edit column defined. If this is not accurate please let me know.

The second problem is once I have a edit column the add works. But I do not want to edit. I have figured out how to hide the edit button but an empty column doesn't satisfy the customer either.

I have figured out how to direct the edit column to my delete function.... but my only problem remaining is I cannot change the edit pencil sprite to be the delete X sprite or delete Trashcan sprite.. In fact what I get is both icons overlaid on top of one another. Perhaps there is a property I am unaware of to remove the edit pencil image?

Please help with either how to get the correct image to display in my hijacked edit column or if there is a simpler approach to meet my requirements that I am unaware of.

Here is my code:

<telerik:RadGrid ID="Grid" runat="server" AutoGenerateColumns="False"
       CellSpacing="0" GridLines="None" Skin="Outlook" OnNeedDataSource="GetDataSource"
       AllowAutomaticDeletes="True" AllowAutomaticInserts="True" OnItemCommand="GridOnCommand"
       OnPreRender="GridPreRender">
       <MasterTableView IsFilterItemExpanded="True" CommandItemDisplay="Top" EditMode="InPlace">
           <CommandItemSettings ShowAddNewRecordButton="true" AddNewRecordText="Add Record" />
           <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
           </RowIndicatorColumn>
           <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
           </ExpandCollapseColumn>
           <Columns>
               <telerik:GridBoundColumn FilterControlAltText="Filter Col1 column" HeaderText="Col1"
                   UniqueName="Col1" DataField="Col1">
               </telerik:GridBoundColumn>
               <telerik:GridBoundColumn FilterControlAltText="Filter Col2 column" HeaderText="Col2"
                   UniqueName="Col2" DataField="Col2">
               </telerik:GridBoundColumn>
               <telerik:GridBoundColumn FilterControlAltText="Filter Col3 column" HeaderText="Col3"
                   UniqueName="Col3" DataField="Col3">
               </telerik:GridBoundColumn>
               <telerik:GridBoundColumn FilterControlAltText="Filter Col4 column" HeaderText="Col4"
                   UniqueName="Col3" DataField="Col4">
               </telerik:GridBoundColumn>
               <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditColumn">
               </telerik:GridEditCommandColumn>
           </Columns>
       </MasterTableView>
   </telerik:RadGrid>

Code Behind:


protected void GridPreRender(object sender, EventArgs e)
       {
           foreach (GridDataItem item in Grid.MasterTableView.Items)
           {
               ImageButton btn = (ImageButton)item["EditColumn"].Controls[0];
               btn.CommandName = "Delete";
               btn.CssClass = "rgDel";
               btn.ToolTip = "Delete";
           }
       }

See the attached file for a picture of how this is currently outputting. The add in line column is expanded.
Mike
Top achievements
Rank 1
 answered on 10 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?