Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
54 views
hi,
How can I show inplace editing of radgrid items on checked of a checkbox inside template column?

thnks
Shinu
Top achievements
Rank 2
 answered on 11 Sep 2012
1 answer
254 views

I have EditFormSettings inside the radgrid how i find in pageload and RadGrid2_ItemDataBound,
Reply soon
<EditFormSettings CaptionFormatString="Create" EditFormType="Template" PopUpSettings-Width="600px">
                  <EditColumn UniqueName="EditCommandColumn1">
                  </EditColumn>
                  <FormTemplate>
                      <div style="margin-left: 3%; margin-right: 3%">
                          <table width="100%">
                              <tr>
                                  <td style="height: 75px; width: 75%;">
                                      <table style="float: right;">
                                          <tr>
                                              <td>
                                                  <asp:Label ID="Label3" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                                                  <asp:Label ID="Label2" Text="Mandatory Field(s)" runat="server"></asp:Label>
                                              </td>
                                          </tr>
                                      </table>
                                      <br />
                                      <br />
                                      <fieldset>
                                          <legend style="margin-bottom: 10px">CERTIFICATION</legend>
                                          <table cellspacing="1" cellpadding="1" width="100%" border="0">
                                              <tr>
                                                  <td>
                                                      <asp:TextBox Width="200px" ID="SERVNOTF" AutoCompleteType="Disabled" runat="server"
                                                          Text='<%# Bind("SERVNOTF") %>' Visible="false"></asp:TextBox>
                                                  </td>
                                              </tr>
                                              <tr>
                                                  <td>
                                                      <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                                                      Certification No.
                                                  </td>
                                                  <td>
                                                      <asp:TextBox Width="150px" ID="PROJTITL" AutoCompleteType="Disabled" runat="server"
                                                          Text='<%# Bind("PROJTITL") %>'></asp:TextBox>
                                                  </td>
                                                  <td>
                                                      <asp:Label ID="Label4" runat="server" Text="Certification Date  "></asp:Label>
                                                  </td>
                                                  <td>
                                                      <telerik:RadDatePicker ID="RadDatePicker1" AutoCompleteType="Disabled" runat="server"
                                                          DbSelectedDate='<%# Bind("SUBMDATE") %>'>
                                                      </telerik:RadDatePicker>
                                                  </td>
                                              </tr>
                                              <tr>
                                                  <td>
                                                      Project Title
                                                  </td>
                                                  <td>
                                                      <asp:TextBox Width="150px" ID="TextBox1" AutoCompleteType="Disabled" runat="server"
                                                          Text='<%# Bind("PROJTITL") %>'></asp:TextBox>
                                                  </td>
                                                  <td>
                                                      Main Contractor
                                                  </td>
                                                  <td>
                                                      <asp:TextBox Width="150px" ID="TextBox2" AutoCompleteType="Disabled" runat="server"
                                                          Text='<%# Bind("PROJTITL") %>'></asp:TextBox>
                                                  </td>
                                              </tr>
                                              <tr>
                                                  <td>
                                                      Route Name
                                                  </td>
                                                  <td>
                                                      <%--<telerik:RadComboBox ID="combo_routname" runat="server" Width="150px" DataValueField="ProviderCode"
                                                          DataTextField="ProviderName">
                                                      </telerik:RadComboBox>--%>
                                                      <telerik:RadComboBox runat="server" Width="150px" ID="SERVTYPE" SelectedValue='<%# Bind("SERVTYPE") %>'
                                                          DataSource='<%# (new string[] { "Babu Street", "Club Road", "1st Cross"}) %>'>
                                                      </telerik:RadComboBox>
                                                  </td>
                                                  <td>
                                                      Total Certification Amount
                                                  </td>
                                                  <td>
                                                      <telerik:RadNumericTextBox Width="150px" ID="TextBox3" AutoCompleteType="Disabled"
                                                          runat="server" Text='<%# Bind("PROJTITL") %>'>
                                                      </telerik:RadNumericTextBox>
                                                  </td>
                                              </tr>
                                              <tr>
                                                  <td>
                                                      <table width="100%" class="ourtertable">
                                                          <tr>
                                                              <td class="pageflow" style="height: 20px">
                                                                  <asp:Label ID="Label10" runat="server" Text="SERVICE PROVIDER DETAILS:"></asp:Label>
                                                              </td>
                                                          </tr>
                                                          <tr>
                                                              <td align="center">
                                                                  <telerik:RadGrid ID="RadGrid2" runat="server" OnItemDataBound="RadGrid2_ItemDataBound"
                                                                      Width="350px" Skin="Office2007">
                                                                      <MasterTableView AutoGenerateColumns="False" IsFilterItemExpanded="false">
                                                                          <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                                                                          <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                                                          </RowIndicatorColumn>
                                                                          <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                                                          </ExpandCollapseColumn>
                                                                          <Columns>
                                                                              <telerik:GridTemplateColumn HeaderText="S.No">
                                                                                  <ItemTemplate>
                                                                                      <asp:Label ID="Sno" runat="server" Text="Label" Width="35px" Style="text-align: center">
                                                                                      </asp:Label>
                                                                                  </ItemTemplate>
                                                                              </telerik:GridTemplateColumn>
                                                                              <telerik:GridTemplateColumn HeaderText="Service Type">
                                                                                  <ItemTemplate>
                                                                                      <telerik:RadTextBox ID="servicetype" runat="server" Width="110px">
                                                                                      </telerik:RadTextBox>
                                                                                  </ItemTemplate>
                                                                              </telerik:GridTemplateColumn>
                                                                              <telerik:GridTemplateColumn HeaderText="Service Provider">
                                                                                  <ItemTemplate>
                                                                                      <telerik:RadTextBox ID="serviceprod" runat="server" Width="150px">
                                                                                      </telerik:RadTextBox>
                                                                                  </ItemTemplate>
                                                                              </telerik:GridTemplateColumn>
                                                                              <telerik:GridTemplateColumn HeaderText="Submission / Rec. Date">
                                                                                  <ItemTemplate>
                                                                                      <telerik:RadDateInput ID="subrecdate" runat="server" Width="115px" DateFormat="dd/MM/yyyy">
                                                                                      </telerik:RadDateInput>
                                                                                  </ItemTemplate>
                                                                              </telerik:GridTemplateColumn>
                                                                          </Columns>
                                                                          <EditFormSettings>
                                                                              <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                                                              </EditColumn>
                                                                          </EditFormSettings>
                                                                      </MasterTableView>
                                                                      <ClientSettings EnablePostBackOnRowClick="false" AllowDragToGroup="true">
                                                                          <Selecting AllowRowSelect="true" />
                                                                      </ClientSettings>
                                                                      <FilterMenu EnableImageSprites="False">
                                                                      </FilterMenu>
                                                                      <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_">
                                                                      </HeaderContextMenu>
                                                                  </telerik:RadGrid>
                                                              </td>
                                                          </tr>
                                                      </table>
                                                  </td>
                                              </tr>
                                          </table>
                                      </fieldset>
                                  </td>
                              </tr>
                          </table>
                          <table>
                              <tr>
                                  <td>
                                      <telerik:RadButton ID="Button3" runat="server" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                          CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                          Icon-PrimaryIconCssClass="rbOk">
                                      </telerik:RadButton>
                                      <telerik:RadButton ID="Button4" runat="server" Text="Cancel" CausesValidation="false"
                                          CommandName="Cancel" Icon-PrimaryIconCssClass="rbCancel">
                                      </telerik:RadButton>
                                  </td>
                              </tr>
                          </table>
                      </div>
                  </FormTemplate>
                  <PopUpSettings Modal="True"></PopUpSettings>
              </EditFormSettings>



Regards,
mohamed
Shinu
Top achievements
Rank 2
 answered on 11 Sep 2012
3 answers
186 views
I use the ItemTemplate of my RadGrid to host a DetailsView.  I also have enabled RadGrid to employ drag-and-drop functionality.  When I select the desired row, I can start the drag-and-drop action if I select a region of the actual Radgrid row but not if I am inside the region of the DetailsView.  If I replace the DetailsView with an asp:Label, I can initiate the drag-and-drop functionality so this issue must be associated with the mouse related events.  I also get this same behavior if I replace DetailsView with a second RadGrid, I must select the region of the row corresponding to the primary RadGrid hosting the second RadGrid in order to initiate the drag-and-drop. 

Would anyone in the community have some advice for forcing the selection of a row to correspond to the primary or hosting RadGrid, regardless of the internal set of controls?

As a secondary question, when I do use a primary RadGrid hosting the second RadGrid, I need to force the second RadGrid to not accept drag-and-drop items. 

I will diligently search the event models but your advice would be appreciated.
Antonio Stoilkov
Telerik team
 answered on 11 Sep 2012
1 answer
90 views
So, I have two comboboxes, both databound... the second one's datasource a function of the selected value of the first although I doubt that has anything to do with it.  Neither of them will fire the selected index changed event.  They're both set to autopostback.  What else could be causing this?  I see a number of people in the past with this problem, such a simple function can't be this problematic?


EDIT:  Don't know what was causing it but I finally got worn out, stripped out the 2 comboboxes, redid them, rebuilt everything and it works. 
Nencho
Telerik team
 answered on 11 Sep 2012
1 answer
372 views
Hi.
I have a problem with Telerik RadWindow.
If a PostBack is sent by the RadWindow the whole page containing the RadWindow will get refreshed. How can this be prevented?
Here is a picture of the structure of my project.

And a little explanation of the problem (with the code):

JS Code: gets executed when a link is clicked inside the webpart.ascx
<script type="text/javascript">
        function OpenWindowOfThisShit() {
            var layoutsPageUrl = SP.Utilities.Utility.getLayoutsPageUrl('PopupWindowTest/PopupWindowTestLayoutPage.aspx');
            var options = {
                url: layoutsPageUrl,
                title: 'Popup Webpart',
                allowMaximize: false,
                showClose: true,
                width: 550,
                height: 550
            }
            SP.UI.ModalDialog.showModalDialog(options);
        }
</script>


The PopupWindowTestLayoutPage: This gets loaded inside the ModalDialog
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <telerik:RadAjaxPanel runat="server">
            <asp:PlaceHolder runat="server" ID="placeHolder" Visible="True"></asp:PlaceHolder>
    </telerik:RadAjaxPanel>
</asp:Content>


PopupWindowTestLayoutPage codebehind:
protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
 
            try
            {
                UserControl userControl = (UserControl)Page.LoadControl(@"~/_CONTROLTEMPLATES/PopupWindowTest/PopupWindowControlPage.ascx");
                placeHolder.Controls.Add(userControl);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }


PopupWindowControlPage
: This file gets loaded inside the placeholder of the LayoutPage
<%@ Register TagPrefix="RKWindows" TagName="InputDialogControl" Src="~/_controltemplates/PopupWindowTest/InputWindow.ascx" %>
<%@ Register Assembly="Telerik.Web.UI,Version=2011.3.1305.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadWindowManager ID="rwmInfo" runat="server">
    <Windows>
        <telerik:RadWindow runat="server" ID="rwContractInput" VisibleStatusbar="False" VisibleTitlebar="True" Behaviors="None" IconUrl="~/_layouts/images/BLANK.GIF" AutoSize="True" EnableShadow="True">
            <ContentTemplate>
                <RKWindows:InputDialogControl runat="server" ID="contractInputControl" Width="400px" Height="500px" />
            </ContentTemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
<asp:Panel runat="server" ID="ContainerPanel">
    <asp:Button runat="server" Text="Show Popup Dialog" ID="ShowPopup" OnClick="OnShowPopupClick"/>
</asp:Panel>


InputWindow: contains a inputField and a button
<asp:TextBox runat="server" ID="tbInput"></asp:TextBox>
<asp:Button runat="server" ID="FillTextbox" Text="Fill Textbox" OnClick="OnFillTextboxClick"/>

InputWindow codebehind

protected void OnFillTextboxClick(object sender, EventArgs e)
        {
            tbInput.Text = "Filled!";
        }



When the "Fill Textbox" button is clicked the Layoupage.ascx refreshes and resizes.
This is just an example of the real project where several RadGrids are used which will disappear for a short amount of time after a button was clicked inside a RadWindow.

I hope you can point me in the right direction.

Thank you in advance,
Frank
Marin Bratanov
Telerik team
 answered on 11 Sep 2012
1 answer
74 views
Hello,

I am working on some automated UI tests, and would like to automate some uploading with the RAD AsyncUploader.  It is my understanding that the uploader renders as <input type="file">  I was wondering if anyone knows what the ID for this input is?  Does it use the ID you gave to the RadAsyncUpload control itself? 

Any insight on this would be greatly appreciated.

Thanks,
Tim
Princy
Top achievements
Rank 2
 answered on 11 Sep 2012
3 answers
56 views
I have some Metro-skinned radbuttons with a handful extra of CSS.  I've included the picture of the standard button (default size button).

When I add an Icon and change the height to 24px, the old border on the right hand side re-appears (24px button with icon).

I've tried increasing the strength of my CSS:

.RadButton_Metro.rbSkinnedButton

 {

     background-color: #0077cc !important;

 }

 but to no avail...

Any ideas? 
Slav
Telerik team
 answered on 11 Sep 2012
1 answer
99 views
I am getting an object reference error when using FindControl("RadTabStrip1").

I followed the Telerik Wizard demo to achieve this and I can see from other people's questions in the forum that this is a very common error to have. However none of the recommended solutions seemed to work for me.

I have attached 2 screenshots of the relevant code.

TabTestCS.png shows the code behind for the default page (not the Site.Master) showing the creation of tabs and pageviews.

Step2CS.png shows the code-behind for the "Next" button (from Step1.ascx.cs control page) which will be for the transition of Step1 to Step2 in the wizard.

TabTestASPX.png shows the TABTEST.aspx page where the RadTabStrip1 control is created.

I have tried assigning values to the tabs and locating them that way, but that didn't work either.

Any help you can provide would be much appreciated,

Thank you.
 
GARY078
Top achievements
Rank 1
 answered on 11 Sep 2012
1 answer
189 views
Ok, I'm really  new to Telerik and I'm trying to do a few things with the .NET AJAX controls to get my feet wet. I'm already hitting a wall with something that I'd like to put on a website of mine.

Here's what I want. I hope that someone can tell me how to get here or point me in the right direction. (The online documentation for the Scheduler control isn't helping me so far):

I have a SQL database with some projects. These projects have start and end dates, and can last from months to a year or so. I want to make a project schedule of my active projects, showing the start and end dates along side each other for reference with a scale of maybe 2 years total. I'm not having any luck configuring the TimeLine view for the Scheduler object to do this. Help!
Boyan Dimitrov
Telerik team
 answered on 11 Sep 2012
1 answer
45 views
Can I use SavedOldValues() for a GridEditableDataItem if I am using External Form ? If not, how do I create a business object with the old values from Selected Grid Data Item that is up for Editing ?

Shinu
Top achievements
Rank 2
 answered on 11 Sep 2012
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?