Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
339 views
Hello Telerik Team,

I have a column in a DataTable named "Total $ Value". I also have a RadGridView with the "EnableFiltering" property set to "True". I assign my DataTable to the DataSource of the RadGridView. At runtime, when I attempt to set a filter on this column, 
Not getting error bur filter is not working , even unable to click on filter dropdown (just filter image appear but dropdown is not).

Any ideas how I can have a "$" character in a column name and the filtering still works?

Its a requirement to have $ in a column name.

Please help me,

Thanks,
Preeti 
Pavlina
Telerik team
 answered on 11 Sep 2012
1 answer
124 views
hii,
I want to add a "do not show again option" in RadConfirm as shown in alert.How can I achieve that?

thnks
Princy
Top achievements
Rank 2
 answered on 11 Sep 2012
5 answers
101 views

 Hi,

My ELMAH is not Loging an errors which are occuring due to Telerik Ajax...But it is capturing the errors in .cs files and even .aspx page errors

can you plase assist on this?

Maria Ilieva
Telerik team
 answered on 11 Sep 2012
1 answer
83 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
283 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
257 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
113 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
403 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
87 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
118 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?