Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
Hi i am using Link button under CommandTemplate, During runtime it shows only one link button as i am given.
But when i made an sorting or some filtering the Linkbutton repeats and shown two times at the area where i have placed.

Plz guide me to the result


Regards,
SA

          
Pavlina
Telerik team
 answered on 02 Jul 2009
1 answer
404 views
Hi,
I have a asp:button that calls the shopPopup() method of the datetimepicker as below.
Although this visibly works, the popup is only momentarily displayed before becoming hidden. This is so fast that it looks like a flicker.  I presume this is something to do with the postback from the page when the button is pressed resetting the datetimepicker but I am unsure of how to fix it.
If anyone can help it would be very welcome.

<script type="text/javascript">    
function ShowPopup()    
{  
    var datetimepicker = $find("<%= txtcalMeetingDate.ClientID %>");    
    datetimepicker.showPopup();  // Show Calendar popup       
}    
</script>   

 

<asp:button runat = "server" name= "View Calendar" id = "CalendarPopup1" visible = "false" />

and in code-behind:

 

CalendarPopup1.Attributes.Add(

"onClick", "ShowPopup();");

 

 

Daniel
Telerik team
 answered on 02 Jul 2009
1 answer
158 views
Hi,

i am using RadSlider and RadTooltip on my page. I am able to show a slider and save values in database. but in edit mode, when i have the value in database which user selected, i am not able to show it through slider.

In other words, i want to show db value in slider and let the user decide whether the old value is correct or if user wants to change this value, he should be able to do this.

i get following javascript error..

"Radtooltip" is undefined.

I wanted to know which property would be best to show already selected value in slider and how we can use that?

Any help is appreciated.

Thanks in advance,
Tsvetie
Telerik team
 answered on 02 Jul 2009
0 answers
167 views
Hi, everybody.

I just want to share a solution I found to one of my problem. I wanted to disable the backspace funtionality of returning to the previous page. This worked fine for me and I hope it helps anyone:

javascript code:

var

 

teclatextbox= false;

 

function

 

TeclaTextbox(presionada)

 

{

teclatextbox= presionada;

}

 

function

 

BodyKeyDown(e)

 

{

 

var key;

 

 

if (window.event)//IE

 

key= window.

event.keyCode;

 

 

else//Firefox

 

key= e.which;

 

if(!e) var e = window.event;//take event

 

 

if (key == 8 && !teclatextbox)//BACKSPACE and it is not inside a textbox

 

{//stop the default behavior

   e.cancelBubble =

true;

 

   e.returnValue =

false;

 

 

   if (e.stopPropagation)

 

   {

     e.stopPropagation();

     e.preventDefault();

   }

 

   return false;

 

}

 

return true;

 

}

textbox events to permit backspace only inside the textboxes:

 

<

 

asp:TextBox ID="txbComentarios" runat="server" onkeydown="javascript:TeclaTextbox(true);" onkeyup="javascript:TeclaTextbox(false);" onblur="javascript:TeclaTextbox(false);"></asp:TextBox>

 

 

 

Regards,
Daniel.
 

dany7487
Top achievements
Rank 1
 asked on 02 Jul 2009
7 answers
131 views
Hi,

I'm trying to build a grid with options to make some features of my website to become visible or invisible. I searched in your demos examples but I didn't find nothing. I don't know how can I do exactly this. If someone understands what I want to create and has a clue for me of how can I do this, please let me know!
Thanks!
Sebastian
Telerik team
 answered on 02 Jul 2009
1 answer
109 views
Hi Guys and Gals,

I am trying to figure out whether the RadScheduler would be ideal for our new application.Here are a few requirements that have left me scratching my head.Any help in solving them would be greatly appreciated.

1) I have a textbox to add certain notes.Once submitted it should be made read only but new notes should be added. 

2) Right-mouse clicking on any existing event from any view should allow the user to "Duplicate" that event and pre-populate the event entry form with the same values except for date/time-related fields.

3) Is it possible to display the no.of events booked on a particular date by hovering over it.

Has anybody incorporated these kind of requirements in their RadScheduler?Is it possible to customize the RadScheduler for these requirements programmatically?

Thanks in advance.
Peter
Telerik team
 answered on 02 Jul 2009
1 answer
104 views
Hi,

I have put a RadSlider as this :
<telerik:RadSlider ID="slideHeight" runat="server" LargeChange="30"  
                MaximumValue="320" MinimumValue="20" Orientation="Vertical"  
                TrackMouseWheel="False" Height="300px"  IsDirectionReversed="True" /> 

When rendered, the labels for increase/decrease handle are not swapped : top one shows "Decrease" instead of "Increase".

Can you tell me if I'm wrong please ?

Thanks.


Tsvetie
Telerik team
 answered on 02 Jul 2009
3 answers
120 views

 

Hello
Please can someone have a look at what i have done wrong below.  if i uncomment the line 'e.DetailTableView.DataBind()' it seems to go into an infinate loop and times out...if i remove that line i just get No child records to display. i have got 6 records in objMonitor that have loaded ok.

thanks so much as just cant seem to get it working.

Private
Sub radgridstats_DetailTableDataBind(ByVal source As Object, ByVal e As Telerik.Web.UI.GridDetailTableDataBindEventArgs) Handles radgridstats.DetailTableDataBind

 

 

    Dim dataItem As Telerik.Web.UI.GridDataItem = CType(e.DetailTableView.ParentItem, Telerik.Web.UI.GridDataItem)

 

 

    Select Case e.DetailTableView.Name

 

 

    Case "DivisionOne"

 

 

    Dim DemographicID As String = dataItem.GetDataKeyValue("DemographicID").ToString()

 

 

    Dim objMonitors As New Pearson.Monitors

 

    objMonitors.LoadStats(DemographicID, 1)

    e.DetailTableView.DataSource = objMonitors 

 

    'e.DetailTableView.DataBind()

 

 

 

 


End
Select

 

 

End Sub

 

Sebastian
Telerik team
 answered on 02 Jul 2009
6 answers
144 views
I am in the process of upgrading a fairly large project from the asp.net suite to the ajax suite, and have hit a rather strange bug.

I am attempting to upgrade the chart control and to test the functioanlity I am attempting to display a very simple graph from the demo's page

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Charting" tagprefix="telerik" %> 
 
<telerik:RadChart runat="server" Width="500px" ID="RadChart2" Skin="LightGreen" > 
     <Series> 
     <telerik:ChartSeries Name="series 1" Type="Bar">  
     <Items> 
     <telerik:ChartSeriesItem YValue="5" /> 
     <telerik:ChartSeriesItem YValue="50" /> 
     <telerik:ChartSeriesItem YValue="500" /> 
     <telerik:ChartSeriesItem YValue="5000" /> 
     </Items> 
     </telerik:ChartSeries> 
     </Series> 
     <PlotArea> 
     <Appearance> 
     </Appearance> 
            <YAxis IsLogarithmic="true">  
            </YAxis> 
     </PlotArea> 
        <ChartTitle> 
            <TextBlock Text="Logarithmic Axis">  
                <Appearance TextProperties-Color="70, 143, 190">  
                </Appearance> 
            </TextBlock> 
        </ChartTitle> 
</telerik:RadChart> 

The problem is when I try to display this in a ascx file I get the 'Error loading radchart image' message box... The strange thing is that when I copy the above code to an aspx file on the same site it works perfectly - which I guess indicates that the configuration is OK.  I have tired switching the DNN 'Supports Partial Rendering?' flag to no avail.

For the moment I will revert to the asp.net control, but if you can help it would be appreciated as I would prefer to only use one suite if possible.

Suite version : Q1 2009
DNN version : 4.6.2
Alex Lawson
Top achievements
Rank 1
 answered on 02 Jul 2009
2 answers
125 views

Hi,

I have a GridButtonColumn in my RadGrid which is a delete button for a tag and executes the deletecommand defined in my datasource. This delete actually deletes the pair "contentID" and "tagID" from my table tagsContents. However, as well as the delete of this pair from my table tagsContents, I also want to execute an update of my table tags where I decrease the count column of that tag by 1. This means that as I delete the pair tag - content, I also must decrease the count in the tags table. How can I execute this update command when I click the delete button? Can I associate both commands to the action of clicking the button? Here is my code:

This is the GridButtonColumn:

<telerik:GridButtonColumn ConfirmText="Tem a certeza de que pretende apagar esta tag deste conteúdo?" ConfirmDialogType="RadWindow" ConfirmTitle="Apagar" ButtonType="ImageButton" ButtonCssClass="pointer" CommandName="Delete" Text="Apagar" ItemStyle-Width="10%" UniqueName="ApagarTag" ImageUrl="~/imagens/bt_scorm_falhou.gif" ItemStyle-HorizontalAlign="Center" />

This is the datasource:

<asp:SqlDataSource ID="GET_TAGS_CONT" runat="server" ConnectionString="<%$ ConnectionStrings:lms_bibliotecaConnectionString1 %>"
                      SelectCommand="SELECT * FROM NL_LMS_BIB_tags INNER JOIN NL_LMS_BIB_tagsConteudos ON NL_LMS_BIB_tags.IDTag=NL_LMS_BIB_tagsConteudos.IDTag AND NL_LMS_BIB_tagsConteudos.IDConteudo = @idconteudo"
                      DeleteCommand="DELETE FROM [NL_LMS_BIB_tagsConteudos] WHERE IDTag = @IDTag AND IDConteudo=@idconteudo" >
    <SelectParameters>
        <asp:SessionParameter Name="idconteudo" SessionField="idconteudo" />
    </SelectParameters>
    <DeleteParameters>
        <asp:SessionParameter Name="idconteudo" SessionField="idconteudo" />
        <asp:Parameter Name="IDTag" />
    </DeleteParameters>
</asp:SqlDataSource>

Thanks!
Marta

Marta
Top achievements
Rank 1
 answered on 02 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?