Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
226 views

Hi to all,

it is possible to get the clicked button of a radprompt?

I try to check if the OK Button is clicked and the Textbox left blank to call another Alert with an error message.

My problem is that when i clicked the CANCEL Button i get the NULL Value and when i left blank the textbox and click the OK Button then i also geht the NULL Value.

    <script type="text/javascript">  
 
        function openPrompt(TitleText, Text, IText, IIndex) {  
            document.getElementById("<%= hdnIIndex.ClientID %>").value = IIndex;  
            radprompt(Text + '<br style="clear:both" /><strong>' + IText + '</strong>', promptCallBackFn, 330, 100, null, TitleText, null);  
        }  
 
        function promptCallBackFn(arg) {  
 
            document.getElementById("<%= hdnText.ClientID %>").value = arg;  
            if (arg != null && arg != '') {  
                document.getElementById("Refresh").click();  
            }  
            else {  
                radalert('You have clicked OK, but the text is blank', 330, 100, 'Error Msg'); return false;  
            }  
        }  
 
    </script> 
Vessy
Telerik team
 answered on 22 Oct 2019
10 answers
1.5K+ views

Hello,

I manually enter the text to be filtered in the textbox and click on the filter icon.

However, the same records are still displayed.

What is going wrong with my grid?

Here is the GridBoundColumn for the Lastname:

<telerik:GridBoundColumn DataField="Driver.LastName"  DataType="System.String" HeaderText="Fahrer" UniqueName="DriverLastName"  AutoPostBackOnFilter="true" ShowFilterIcon="true" AllowFiltering="true"  >
                       </telerik:GridBoundColumn>

 

And here is the whole Radgrid:     

<telerik:RadGrid Height="100%" runat="server" ID="RadGrid1" OnNeedDataSource="RadGrid1_NeedDataSource" AllowPaging="true" PageSize="12"
               Font-Size="Small" AutoGenerateColumns="False" Culture="de-DE" MasterTableView-CommandItemSettings-AddNewRecordText="Reisekostenerfassung"
               OnPreRender="RadGrid1_PreRender" OnUpdateCommand="RadGrid1_UpdateCommand" OnInsertCommand="RadGrid1_InsertCommand" OnDeleteCommand="RadGrid1_DeleteCommand" AllowFilteringByColumn="True" AllowSorting="True" >
               <MasterTableView DataKeyNames="OperationalTravelingExpensesId" runat="server" EditMode="PopUp" CommandItemDisplay="Top" ShowHeadersWhenNoRecords="true" AllowFilteringByColumn="True">
                   <Columns>
                       <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"></telerik:GridEditCommandColumn>
                       <telerik:GridBoundColumn DataField="OperationalTravelingExpensesId" HeaderText="sdf" UniqueName="OperationalTravelingExpensesId" Display="false">
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="Driver.LastName"  DataType="System.String" HeaderText="Fahrer" UniqueName="DriverLastName"  AutoPostBackOnFilter="true" ShowFilterIcon="true" AllowFiltering="true"  >
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="Driver.DriverNumber" HeaderText="Personalnr." UniqueName="DriverPersonalNumber" >
                       </telerik:GridBoundColumn>
 
                       <%--<telerik:GridBoundColumn DataField="TravelingDate" HeaderText="Datum" UniqueName="TravelingDate" DataFormatString="{0:D}" >
                       </telerik:GridBoundColumn>--%>
 
                         <telerik:GridDateTimeColumn DataField="TravelingDate" HeaderText="Datum" FilterControlWidth="110px"
                           SortExpression="Datum" PickerType="DatePicker" EnableTimeIndependentFiltering="true"
                           DataFormatString="{0:D}">
                       </telerik:GridDateTimeColumn>
 
                       <telerik:GridBoundColumn DataField="StartTime" HeaderText="Beginn" UniqueName="StartTime" DataFormatString="{0:HH:mm}" AllowFiltering="false">
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="EndTime" HeaderText="Ende" UniqueName="EndTime" DataFormatString="{0:HH:mm}" AllowFiltering="false">
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="Vehicle.LicencePlateNumber" HeaderText="Fahrzeug" UniqueName="VehicleLicencePlateNumber" AllowFiltering="false">
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="Tour.TourNumber" HeaderText="Tour" UniqueName="TourTourNumber">
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="Destination" HeaderText="Reiseziel" UniqueName="Destination" AllowFiltering="false">
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="Subject" HeaderText="Anlass" UniqueName="Subject" AllowFiltering="false">
                       </telerik:GridBoundColumn>
                   </Columns>
                   <EditFormSettings UserControlName="TravelExpenses.ascx" EditFormType="WebUserControl">
                       <EditColumn UniqueName="EditCommandColumn1"/>
                   </EditFormSettings>
               </MasterTableView>
           <ClientSettings>
               <ClientEvents OnRowDblClick="RowDblClick" OnPopUpShowing="onPopUpShowing" />
           </ClientSettings>
   </telerik:RadGrid>

 

 

Attila Antal
Telerik team
 answered on 22 Oct 2019
3 answers
137 views

Hi again all.  Another small issue.  My small player (in a raddockzone) all looks ok except for the slider, which looks strange and does not respond to mouse click/drag.  I will attach what it looks like.  Seems to be on all skins I have tried.  Any suggestions on what to look at?  The slider works on mobile view but the volume is not accessible through the desktop and also fullscreen looks fine.

Thanks for any suggestions.

Eyup
Telerik team
 answered on 22 Oct 2019
23 answers
2.9K+ views
I have a web site in ASP.NET 3.5 that runs fine using ver. 2009.1208.35 of Telerik.Web.UI.dll.

I only replace the Telerik.Web.UI.dll and Telerik.Web.Design.dll with the latest ver. 2009.1314.35 and viewing a page in the browser I get the Error: ASP.NET Ajax client-side framework failed to load.

I copy back ver. 2009.1208.35 of the dlls and viewing the same page in the browser works fine!

Using VS 2010 on Win 7 computer. Web.config does not have any version numbers for the Telerik settings.

Both versions are in the GAC.

Why does 1208 work and 1314 not work?


SSirica
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 21 Oct 2019
6 answers
506 views
I am looking at creating a menu that will display only specific elements to users in a specific role.  Is there an example of this?
Vessy
Telerik team
 answered on 21 Oct 2019
3 answers
148 views

Hello!

I am working on a site that is using version 2016.2.607.40 of Telerik.Web.UI and I would like to customize the dialogs for the RadEdior control. I do not have access to the installer for this version so I cannot get a copy of the EditorDialogs folder.

Could you link to the installer or a copy of the folder for me?

Thank you!

Rumen
Telerik team
 answered on 21 Oct 2019
3 answers
303 views

Hi!

I am looking for a way to add custom attributes to RadToolbarButton to be rendered in html

When I use following snippet

RadToolBarButton button = new RadToolBarButton();
button.Attributes["data-attr"] = "CustomText";
button.CssClass += "tipsylink";


I expect to see
<a class="tipsylnk ..." data-attr="CustomText"...>

But unfortunately I can see only
<a class="tipsylnk rtbWrap"...>
without data-attr attribute.
I do use jquery to read such attributes from web controls for my custom needs.
And that works for all standard asp.net controls but unfortunately
radtoolbar implementation is different - as I understand it stores
custom attributes in another place.

I know that it is possible to read such attributes on client side using
var toolBar = $find("<%=RadToolBar1.ClientID %>");
var button = toolBar.findItemByText("Button 1");
alert(button.get_attributes().getAttribute("DisplayName"));

but actually I'd like to use standard jquery $('.tipsylnk'). selector
and process all items in the same way.
So is it possible to render custom attributes to html element attribute
for RadToolbarButtons?
Peter Milchev
Telerik team
 answered on 21 Oct 2019
7 answers
2.4K+ views
Hello,

We are trying to update a Progress bar from a Callback function that returns progress on a printing job from a code behind function.

The code behind method is as follows:

  private  void ClientOnJobProgress(object sender, JobProgressEventArgs arguments)
        {
            Console.WriteLine("Progress: {0:000}% with job state {1}", arguments.Progress, arguments.State.ToString());
            Progress = arguments.Progress;
            ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "progress", "AdjustProgressBar('" + arguments.Progress + "');", true);

           //  RadProgressBar1.Value = arguments.Progress;       
        }
If I set the Progress Bar Value as in the comments line above , the progress is only updated when the job is 100% complete and does not update during the process.  I tried calling a JavaScript function from the codebehind that finds the progress bar element in the document and tries to update the progress bar value then. Which doesnt update at all.

  function AdjustProgressBar(progressValue) {
                    
                    var progressBar = document.getElementById('<%=RadProgressBar1.ClientID%>');
                    progressBar.value = progressValue;

                } 

What would be the proper way of updating a ProgressBar from a callback function where as to show the updates values? Please advise and thank you in advance.











Rumen
Telerik team
 answered on 21 Oct 2019
6 answers
327 views
Basically I have a rad grid, and the enter key is causing the delete confirm to popup.
Is there a way to cancel the delete before the confirm pops up?

Thanks,

Nate
Attila Antal
Telerik team
 answered on 21 Oct 2019
14 answers
1.6K+ views
HI,
Iam using Object data osurce to populate a RadGrid.
On button click Iam trying to access the GridDataItem's dataitem property and cast it to object .
But the dataitem is always null.
Please let us know how can we retrieve the object type of  a selected row  from the RadGrid on a button click event.
Thanks,
Bala
Attila Antal
Telerik team
 answered on 18 Oct 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?