Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
153 views
Hi ..

I have a strange problem that effects all of my controls but mainly is buttons.. When my site loads it default to the root domain ie.. https://www.rootdomain
but none of the controls respond. Click a button and nothing happens.. but if you reload page https://www.rootdomain/Default.aspx everything works. I'm just wondering how to go about resolving this and anything obvious I've missed?

thanks
Marin Bratanov
Telerik team
 answered on 05 Feb 2015
1 answer
938 views
 Hi, I am facing problem in updating/ refreshing the controls which are in Rad ajax panel .I have a Rad ajax panel in which i have placed a grid, and RadPanelBar side to side by placing them in table.when the user selects any record in grid the details of that record will be shown in it's beside RadPanelBar. So in this process of selecting records i am refreshing the Entire Rad ajax panel for getting the correct selected record details.But additionally what i want is when the user sorts the records of grid i need to refresh the grid only , for this i placed Radgrid again in other radajaxpanel which is creating the problems.

      My Radgrid is not getting updated with the click events of grid, when i click on link button of grid it should highlight the clicked row. But when i placed grid in Ajax panel it is not getting highlighted untill unleass i refresh the Grid. when i placed it in another nested rad ajax panel. Please help me how can i achieve refreshing the only the Radgrid while sorting?My design:
 
<telerik:RadPageView ID="radPage1" runat="server">
       <telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server" EnableAJAX="True" LoadingPanelID="RadAjaxLoadingPanel1"
                        ClientEvents-OnRequestStart="onRequestStart">
                        <table width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                                <td style="width: 50%">
                              <%-- <telerik:RadAjaxPanel ID="RadAjaxPanel4" runat="server" EnableAJAX="True" LoadingPanelID="RadAjaxLoadingPanel1"
                               ClientEvents-OnRequestStart="onRequestStart"> --%>
 
                                   <telerik:RadGrid ID="radGrid" runat="server" AllowSorting="true" AllowFilteringByColumn="False"
                                        OnNeedDataSource="grdUnResolvedFaxes_NeedDataSource" Skin="Metro" CellSpacing="0"
                                        GridLines="None" Width="99%" PageSize="12" OnItemCommand="grdUnResolvedFaxes_ItemCommand"
                                        EnableViewState="true">....
                                         .....
                                         .....
                                  </telerik:RadGrid>
 
                             <%-- </telerik:RadAjaxPanel> --%>
 
                                </td>
 
                              <td style="width: 50%">
                                 <telerik:RadPanelBar runat="server" ID="pnlBar" ExpandMode="MultipleExpandedItems"
                                        Width="99%" Visible="false">
                                 <Items>
                             .................
                                 </Items>
                                  </telerik:RadPanelBar>
                               </td>
                              </tr>
                        </table>
                 </telerik:RadAjaxPanel>
 
              </telerik:RadPageView>

  For the Linkbutton click of the grid i added below code to update the grid   

         
      if (e.CommandName.ToLower() == "select")
         {
           RadAjaxPanel4.ResponseScripts.Add(String.Format("$find('{0}').ajaxRequest();", RadAjaxPanel3.ClientID));
         }

         
Maria Ilieva
Telerik team
 answered on 05 Feb 2015
1 answer
395 views
In FileExplorer  we can set MaxFileuploadSize to  "2147483647" .So that can upload maximum 2 GB files.But we want to upload very large files
up to 4 GB using FileExplorer  .
Vessy
Telerik team
 answered on 05 Feb 2015
5 answers
989 views
Hello,

Could you please advise? I get this error when trying to run my webpage.

The RadGrid code is:

<telerik:RadGrid ID="gridSurveys" runat="server" AutoGenerateDeleteColumn="True" AllowAutomaticInserts="True" AutoGenerateEditColumn="True" OnNeedDataSource="gridSurveys_NeedDataSource" OnItemDataBound="gridSurveys_ItemDataBound" AutoGenerateColumns="False" CellSpacing="-1" GridLines="Both">
    <MasterTableView>
        <Columns>
            <telerik:GridBoundColumn DataField="VesselDescription" HeaderText="Vessel" UniqueName="VesselDescription" ReadOnly ="true"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="VesselID" DataType="System.Int32" FilterControlAltText="Filter VesselID column" HeaderText="VesselID" SortExpression="VesselID" UniqueName="VesselID" Visible="false" ReadOnly="True"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="CruiseID" DataType="System.Int32" FilterControlAltText="Filter CruiseID column" HeaderText="Cruise" SortExpression="CruiseID" UniqueName="CruiseID" ReadOnly="True"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Year" DataType="System.Int32" FilterControlAltText="Filter Year column" HeaderText="Year" ReadOnly="True" SortExpression="Year" UniqueName="Year"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Amalgamation" HeaderText="Amalgamation" ReadOnly="True" UniqueName="Amalgamation" Visible ="false"></telerik:GridBoundColumn>
            <telerik:GridDropDownColumn DataField="TargetSurveyDescription" HeaderText="Target Survey" ListTextField="TargetSurveyDescription" ListValueField="TargetSurveyID" UniqueName="TargetSurveyDescription" ColumnEditorID="TargetSurveyDescription" DropDownControlType="DropDownList" Visible="false"></telerik:GridDropDownColumn>
            <telerik:GridBoundColumn DataField="TargetSurveyID" DataType="System.Int32" HeaderText="TargetSurveyID" UniqueName="TargetSurveyID" ReadOnly="true" Visible ="false">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
    </telerik:RadGrid>

And my VB.NET code for binding the dropdownlist is:

Protected Sub gridSurveys_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles gridSurveys.ItemDataBound
       ' Build up the Target Survey dropdown
       Dim editItemTargetSurvey As GridEditableItem = DirectCast(e.Item, GridEditableItem)
       Dim editManagerTargetSurvey As GridEditManager = editItemTargetSurvey.EditManager
       Dim editorTargetSurvey As GridDropDownListColumnEditor = DirectCast(editManagerTargetSurvey.GetColumnEditor("TargetSurveyDescription"), GridDropDownListColumnEditor)
       Dim dsTargetSurvey As New DSSurveyTableAdapters.spGetTargetSurveyTableAdapter
       Dim selectedTargetSurvey As Integer = DataBinder.Eval(editItemTargetSurvey.DataItem, "TargetSurveyID")
       Dim rComboBoxTargetSurvey As DropDownList = editorTargetSurvey.DropDownListControl
       ' Set the width of the dropdown
       rComboBoxTargetSurvey.Width = Unit.Pixel(165)
       ' Populate the dropdown
       rComboBoxTargetSurvey.DataTextField = "TargetSurveyDescription"
       rComboBoxTargetSurvey.DataValueField = "TargetSurveyID"
       rComboBoxTargetSurvey.DataBind()
       rComboBoxTargetSurvey.SelectedValue = selectedTargetSurvey
   End Sub
Eyup
Telerik team
 answered on 05 Feb 2015
2 answers
384 views
I have created a ListView that uses the Datapager, and have set them up as follows:

<telerik:RadListView ID="RadListImageAsset" ItemPlaceholderID="ImageAssetContainer" runat="server" AllowPaging="true" Width="100%">

</telerik:RadListView>
 
and 

<telerik:RadDataPager EnableEmbeddedSkins="false" ID="RadDataPager1"
                                            runat="server" PagedControlID="RadListImageAsset" PageSize="10">
                                            <Fields>
                                                <telerik:RadDataPagerPageSizeField PageSizeText="Show Results: " PageSizeComboWidth="40" />
                                                <telerik:RadDataPagerGoToPageField HorizontalPosition="RightFloat"  />
                                                <telerik:RadDataPagerButtonField FieldType="Numeric" HorizontalPosition="RightFloat" />
                                            </Fields>
</telerik:RadDataPager>

However, my RadDataPagerButtonField and RadDataPagerGoToPageField do not work. Only the RadDataPagerPageSizeField works when I increase or decrease the number of dataitems to be displayed. Does anyone have any ideas about what may be causing the Datapager not to work when I want to view the next page using the GoTopageField and ButtonField.

The datasource is being set each time, but the control isnt displaying the appropriate page.

Please let me know if you need me to provide anything.

Thanks,
Akin
Meet
Top achievements
Rank 1
 answered on 05 Feb 2015
6 answers
151 views
Hi,

I am having 50 columns in a row. In this 5 are frozen columns. When i am scrolling to end, suddenly scrollbar length increases and i can't scroll upto last column.I set width for each column.

The other problem is while scrolling at end suddenly scrollbar moves to start position.

Regards
Vignesh
Pavlina
Telerik team
 answered on 05 Feb 2015
5 answers
401 views
Hello Admins,

I'm having a location grid user control. Each grid item contains check boxes. I can select the multiple check boxes  and delete all at once when i click on the link button which i have defined. Everything is working fine. But, if i don't select any of the checkboxes to delete or there is no data in the grid, how to do the client side validation for this scenario. Please help me in this regard.

And also whenever i select any check boxes, post back is happening. How to overcome this problem as well.

My checkbox code:
   <telerik:GridTemplateColumn UniqueName="CheckboxId"  HeaderText="View"  DataField="View" > 
                             <ItemTemplate> 
                                 <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="true"/>  
                            </ItemTemplate> 
                          </telerik:GridTemplateColumn>

My checkbox code behind:

foreach (GridDataItem item in rgLocations.MasterTableView.Items)
                {
                    
                    chk = (CheckBox)item.FindControl("CheckBox1");
                    if (!chk.Checked)
                    {
                        DataRow newRowAdd = myDataTable.NewRow();
                        newRowAdd["Id"] = item["Id"].Text;
                        newRowAdd["Name"] = item["Name"].Text;
                        newRowAdd["CTID"] = item["CTID"].Text;
                        myDataTable.Rows.Add(newRowAdd);
                        myDataTable.AcceptChanges();
                    }
                }
                rgLocations.DataSource = myDataTable.DefaultView;
                rgLocations.Rebind();

My link button code:
<asp:LinkButton ID="lnkDeleteLoc" runat="server" OnClick="lnkDeleteLoc_Click">Delete the Location(s)</asp:LinkButton>
Eyup
Telerik team
 answered on 05 Feb 2015
2 answers
259 views
Is there any way to get the creation date of a file on upload? The control only exposes the last modified field not the creation date. I don't really understand why this is. Is this at all possible? It is a requirement for a project. Thanks for any help.
Hristo Valyavicharski
Telerik team
 answered on 05 Feb 2015
2 answers
159 views
Hi,

I am using the following RadToolBarSplitButton declaration:

<telerik:RadToolBarSplitButton runat="server" Value="textColor">
                        <Buttons>
                            <telerik:RadToolBarButton runat="server" Text="Black" Value="#text#000000" ImageUrl="Images/Navvia/standard_color_black_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="White" Value="#text#ffffff" ImageUrl="Images/Navvia/standard_color_white_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Dark Red" Value="#text#cc0000" ImageUrl="Images/Navvia/standard_color_dark_red_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Red" Value="#text#ff0000" ImageUrl="Images/Navvia/standard_color_red_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Orange" Value="#text#ffcc00" ImageUrl="Images/Navvia/standard_color_orange_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Yellow" Value="#text#ffff00" ImageUrl="Images/Navvia/standard_color_yellow_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Light Green" Value="#text#99cc66" ImageUrl="Images/Navvia/standard_color_light_green_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Green" Value="#text#009966" ImageUrl="Images/Navvia/standard_color_green_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Light Blue" Value="#text#0099ff" ImageUrl="Images/Navvia/standard_color_light_blue_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Blue" Value="#text#0066cc" ImageUrl="Images/Navvia/standard_color_blue_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Dark Blue" Value="#text#003366" ImageUrl="Images/Navvia/standard_color_dark_blue_16x16.png">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Purple" Value="#text#663399" ImageUrl="Images/Navvia/standard_color_purple_16x16.png">
                            </telerik:RadToolBarButton>
                        </Buttons>
                    </telerik:RadToolBarSplitButton>

When I select an item from the dropdown, the corresponding image is placed in the splitbutton automatically.

I would like to place a "different" image in the splitbutton (not the one from the child item).

I have tried the following in the OnClientButtonClicked event handler, but it does nothing:

var toolBar = $find("<%=RadToolBar1.ClientID%>");
var textColorButton = toolBar.get_items().getItem(16);
textColorButton.set_imageUrl('Images/Navvia/text_color_16x16.png');

I know I have the right index (16), because when I bump it to 17 I see the desired image appear in the next toolbar button.

Any suggestions?

Thanks in advance.

Jim
Nencho
Telerik team
 answered on 05 Feb 2015
1 answer
137 views
Hi all,
I am able to click only on the text area of radcombo box.
But the requirement is it should be easy enough to click on any area in the radcombo box. if i try this in a separate solution it is working. 
but not with in my project.
i am perplexed. please help.

-Thanks
Gayathri
Nencho
Telerik team
 answered on 05 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?