小编Sto*_*pid的帖子

SignalR(Hub)可以发送信号发生器以外的信息吗?

我正在学习SingalR(https://github.com/SignalR/SignalR).

我真的想向所有连接发送消息,除了发生事件的人.

例如,

在聊天应用程序中,有三个客户端(A,B,C).

客户端A键入消息"Hello"并提交clikc.

Clients.addMessage(数据); 发送"Hello"给All Cleint(包括提示A)

我想发送"Hello"只有客户B和C.

我怎样才能实现它?

// I think this can get all Clients, right?
var clients = Hub.GetClients<Chat>();
Run Code Online (Sandbox Code Playgroud)

asp.net signalr

7
推荐指数
2
解决办法
2108
查看次数

ExtJS 3.4 Radiogroup strech关闭

我有设置广播组中每个单选按钮的宽度的问题.

xtype: 'container',
id: 'cntCompany',
layout: 'hbox',
fieldLabel: 'Company',
items: [
    {
        xtype: 'radiogroup',
        id: 'rdogrpCompany',
        items: [
            { id: 'rdoIT', boxLabel: 'IT', name: 'rdoCompany', inputValue: 'IT', width: 40, checked: true },
            { id: 'rdoCOMMS', boxLabel: 'COMMS', name: 'rdoCompany', width: 40, inputValue: 'Comms' },
            { id: 'rdoGROUP', boxLabel: 'GROUP', name: 'rdoCompany', width: 40, inputValue: 'Group' },
            { id: 'rdoALL', boxLabel: 'ALL', name: 'rdoCompany', width: 40, inputValue: 'All', margins: '0 0 0 30' }
        ]
    }
]
Run Code Online (Sandbox Code Playgroud)

我设置每个单选按钮的宽度,但它无法正常工作.为什么这个radiogroup拉伸为相同宽度的列并忽略宽度:40?我如何设置每个单选按钮的宽度?

extjs

6
推荐指数
1
解决办法
5696
查看次数

标签 统计

asp.net ×1

extjs ×1

signalr ×1